Hello everyone, trying to see if anyone can help me with some coding. I am using the download script from the manual
http://www.zorro-trader.com/manual/en/export.htm
function run()
{
BarPeriod = 1440;
StartDate = 2008;
EndDate = 2012;
LookBack = 0;
char line[100];
sprintf(line,
"%02i/%02i/%02i %02i:%02i, %.5f, %.5f, %.5f, %.5f\n",
day(),month(),year()%100,hour(),minute(),
priceOpen(),priceHigh(),priceLow(),priceClose());
if(is(INITRUN))
file_delete("Data\\export.csv");
else
file_append("Data\\export.csv",line);
}
this code exports the data as follows...
Date Time, Open, High, Low, Close
and saves the file as export.csv
here is what I want to do.
export the data so there is a comma between the Date and Time and also if possible to export the Volume as well. so end data will look like
Date, Time, Open, High, Low, Close, Volume
and want to save the file as the Symbol and BarPeriod used for export. For Example, if symbol is EUR/USD and BarPeriod is 60 I want the exported file to be called EURUSD_60.csv
is that possible? thanks in advance
KK