Thanks for the article. For a long time I wanted to create something like this, but all hands did not come up. And now... I'm already using it.
I liked the article too, thanks. Because MT prints with skips and it is very inconvenient.
I was more into this or similar things:
void PrintDebugInfo(string InputString) { CopyTime(Symbol(),Period(),0,1,Time); ArraySetAsSeries(Time,true); FileWrite(FileHandle,Time[0]," ",InputString); }
Thanks for the code, we'll use it....
Thanks for the article. For a long time I wanted to create something like this, but all hands did not come up. And now... I'm already using it.
As you use it, I will improve the class and the program, because I wrote first for myself, and then the article came to mind))))
Very useful material!
If you forget to use flush, data loss may occur.
A better solution would be the following:
private: void flush(void); // Flushing cache into file
//+------------------------------------------------------------------+ //| Deinitialization | //+------------------------------------------------------------------+ void CLogger::deinit(void) { flush(); // Flush data FileClose(handleFile); // Close file }
So that the data save is automatically.
ps.: I'm sorry if I offended spelling, the google translator helped me...
Dmitry Alexandrovich, thank you for your work, I have been looking for something like this for a long time and finally found it ))
suggestion to improve logmon.exe, to make a setting that would be able to specify the paths where to look for files with logs, because to have two copies in different folders (for the tester and standard work) somehow amateurish ))
although maybe I'll finish it myself when I get my hands on it ))
if you have anything else useful - post it, your style of programming and presentation of material is very braindead )).
I get an error when debugging on historical data: "MQL5 debugger failed to start debugging 'testlogger.ex5' on history". On real data it works fine.
Can you please tell me what I need to tweak to make it work on history?

- Free trading apps
- Over 8,000 signals for copying
- Economic news for exploring financial markets
You agree to website policy and terms of use
New article Finding Errors and Logging is published:
Author: Дмитрий Александрович