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.
Code: Select all
print( file( "C:\Tempdata\"+GetSymbolName+"_data.txt"), FormatDate("yyyyMMdd", ELDateToDateTime(Date))," ",O," ",H," ",L," ",C);
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,