I have isLogging parameter in EA to indicate whether calling Print() or not.
I turned it off but failed to pass validation of MQL5.
Then I removed this parameter, I can pass the validation.
But I want to log something instead of turn it off.
May someone advise how to fix it wisely? e.g. can I clean up testing log while running Back Test, etc?
use this :
if(!MQLInfoInteger(MQL_TESTER) || MQLInfoInteger(MQL_VISUAL_MODE)) Print("some logs");
I have isLogging parameter in EA to indicate whether calling Print() or not.
I turned it off but failed to pass validation of MQL5.
Then I removed this parameter, I can pass the validation.
But I want to log something instead of turn it off.
May someone advise how to fix it wisely? e.g. can I clean up testing log while running Back Test, etc?

- Free trading apps
- Over 8,000 signals for copying
- Economic news for exploring financial markets
You agree to website policy and terms of use
I have isLogging parameter in EA to indicate whether calling Print() or not.
I turned it off but failed to pass validation of MQL5.
Then I removed this parameter, I can pass the validation.
But I want to log something instead of turn it off.
May someone advise how to fix it wisely? e.g. can I clean up testing log while running Back Test, etc?