Anyone to assist with rectification of this error.
Backup your original code first
Then Replace all Print( with NonTesterPrint(
then
create this function :
void NonTesterPrint(string message){ if(MQLInfoInteger(MQL_TESTER)==0){ Print(message); }}
It seems that you have not read "The checks a trading robot must pass before publication in the Market", nor applied it to your own EA's code.
Pay attention to the following:

- www.mql5.com
You have already been given a link, which includes example code, on how to correct and improve your EA. Have you read it and applied it to your EA?
If you take the easy way out, you will never learn or improve your own coding.
Moderator's note: This post moved from deleted double topic.Forum on trading, automated trading systems and testing trading strategies
Expert Advisor failed validation process
Fernando Carreiro, 2022.11.28 21:27
It seems that you have not read "The checks a trading robot must pass before publication in the Market", nor applied it to your own EA's code.
Pay attention to the following:
Anyone to assist with rectification of this error.
Do not double post!
I will delete your other topic and will move Fernando's reply to it here (above this post).
You have already been given a link, which includes example code, on how to correct and improve your EA. Have you read it and applied it to your EA?
If you take the easy way out, you will never learn or improve your own coding.
Moderator's note: This post moved from deleted double topic.
THANK YOU

- Free trading apps
- Over 8,000 signals for copying
- Economic news for exploring financial markets
You agree to website policy and terms of use