Hi, I am exporting some data with the following which works fine:
Code: Select all
print( file( "C:\Tempdata\"+GetSymbolName+"_data.txt"), FormatDate("yyyyMMdd", ELDateToDateTime(Date))," ",O," ",H," ",L," ",C);
The problem is that I have to manually delete the indicator or close the chart for it import properly in the target application. Is there way to close the indicator automatically after it has executed the code? Ideally it would run at a certain time and I would run a batch file to processes the different symbols. I was lost yesterday trying to figure out why these files were not importing properly and by acident closed Multicharts and like magic, everything worked.
I now know why it did not work but still don't know how to make it work.
Any suggestions would be great,
Thanks in advance,
Alex