use File functions to write your own logs for instance:
int ExtHandle=-1; void init() { ExtHandle=FileOpen("MyLog.txt",FILE_WRITE | FILE_CSV,";"); } void deinit() { if(ExtHandle>0) FileClose(ExtHandle); } int start() { if(ExtHandle>0) { FileWrite(ExtHandle,TimeToStr(Time[0]),TimeToStr(CurTime()),Open[0],High[0],Low[0],Close[0],Volume[0]); FileFlush(ExtHandle); } ... }
ExtHandle=FileOpen("MyLog.txt",FILE_WRITE | FILE_CSV,";");
Thank s lot Slawa. Any attmept to fix a path to the file fails. I've tried
ExtHandle=FileOpen("C:\MyLog.txt",FILE_WRITE | FILE_CSV,";");
and
ExtHandle=FileOpen("C:\\MyLog.txt",FILE_WRITE | FILE_CSV,";");
Both returned 4101 "Wrong file name" error. Could I change somehow the directory or where will be written the file is no path has been specified?
Ivo
All Your files are opened in the local directory "Experts\files"
You are missing trading opportunities:
- Free trading apps
- Over 8,000 signals for copying
- Economic news for exploring financial markets
Registration
Log in
You agree to website policy and terms of use
If you do not have an account, please register
Does anybody knows how could I open a log file without closing the MT terminal?
It's nice that a Print function exists, but my MT logs are locked until terminal client is open. Are yours also locked? Is there any why to read log contents without closing the terminal? Do I miss something?
Ivo