Hello all, I am new here.
I have a few questions about print().
1) If I am trying to get strategy/indicator data out of tradestation en mass into csv files in order to analyze it with other programs (excel, SAS etc) is print() the most efficient way to do this? Or is there some better way I can get all of my charts to print data automatically?
2) Is there a way to get column names to show up? E.g. "Date" "Close" "Moving Average" etc.?
I have tried the following:
If Currentbar = 1 then
print(file("C:\User\filename.txt"),"Date",",","Close",",","MA")
else
print(file("C:\User\filename.txt"),ELDateToString(Date),",",c,",",MA);
It works well enough (although it does skip the first bar of data) but it seems there must be a better built-in way?
3) I'd like to create an indicator called "PrintData" whose inputs include the file name and data to be printed. But easylanguage doesn't appear to let you treat the file name as an input. So print(file(FileNameInput),...) returns the error "File name expected here".
Is there any way I can get around this?
Side note: I only need end of day data, not intra-day, so computation time isn't a major concern.
Thanks,
Investor