Hi .
i know there are a lot of scripts for exporting the quotes of different stocks
of all days to different files.
But i want to export f.i. 30 stocks O/H/L/C... data for the last weeks to only
"1" csv file.
Anybody can give me a solution for this ?
Thats what i have so far.
_SECTION_BEGIN("EXPORT-CSV");
fh = fopen( "X:\\MySQL Indizes\\dax.csv", "w");
CloseYTDCheck = Year() != Ref( Year(), 1);
CloseYTD = ValueWhen( CloseYTDCheck, Close);
TimeFrameSet( inWeekly );
CloseWeek = Ref( Close, -1);
TimeFrameRestore();
YTDPerf = (100 * Close / CloseYTD) -100;
LASTWEEKPerf = (100 * Close / CloseWeek) -100;
NumColumns=8;
Filter=InWatchListName("DAX");
Column0=Close;
Column0Name="Close";
Column1=Open;
Column1Name="Open";
Column2=High;
Column2Name="High";
Column3=Low;
Column3Name="Low";
Column4=FullName();
Column4Name="NAME";
Column5=Low;
Column5Name="ISIN";
Column6=YTDPerf;
Column6Name="CloseYTD";
Column7=LASTWEEKPerf;
Column7Name="Close5D";
Line=Name()+
StrFormat(";%02.0f.%02.0f.%04.0f;%g;%g;%g;%g;%g;%g;%0.2f;%0.2f\n",
Now(),
Close,
Open,
High,
Low,
Low,
Low,
YTDPerf,
LASTWEEKPerf);
fputs(Line,fh);
fclose( fh );
_SECTION_END();
I need to find the way to export 30 different stock data from last week or this
week into only one CSV file!
Thanks in advance.
Thomas