Tradestation - downloading data?

Here's my code to download to different files based on telozo:

vars: fileName("");

fileName = "C:\TradestationExport\" + GetSymbolName + ".csv";
if BarNumber = 1 then FileDelete(fileName);
FileAppend(fileName, numtostr(date,0) + "," + numtostr(time,0) + "," + numtostr(open,2) + "," + numtostr(high,2) + "," + numtostr(low,2) + "," + numtostr(close,2) + newline);​
 
Back
Top