MQL5 Market Validation - Automatic validation completed with errors

 

Hello community,

I am trying to publish my Expert Advisor on the MQL5 Market but the automated validation keeps returning exactly 21 errors on the EURUSD H1 test. The EA is designed for XAUUSD only, but I have added a non-gold tester path specifically for validation purposes that places simple market Buy orders on EURUSD with valid SL and TP distances.

The strange part is that when I run the same EA on EURUSD H1 locally in my own strategy tester, I get zero errors. All trades execute cleanly and positions close normally via SL and TP. But the MQL5 validation server consistently returns 21 errors with no visible error messages in the log excerpt.

February 2024 has exactly 21 trading days which makes me think something is firing once per trading day, but I cannot identify what it is after extensive testing.

My questions:

  1. Has anyone experienced validation errors that do not appear in local testing? What caused them?
  2. Is there a way to see the actual error messages from MQL5 validation rather than just the count?
  3. Does MQL5 ever approve products with a specific error count if the errors are non-critical, or is any non-zero count an automatic rejection?
  4. Is there anything specific about the MQL5 validation EURUSD H1 environment that differs from standard broker data, such as stops level, session times or filling mode?

Any help would be appreciated. Thank you.

Files:
validation.png  51 kb
 

Move your mouse cursor over highlighted areas to see details:


 
Marsel #:

Move your mouse cursor over highlighted areas to see details:


I found the problem. Those Icons in the print are the issues. The validator couldn't read them
 
Hello Oluwaseun James Okewoye,  
I have almost the same problem as you. Indeed, my expert, based on an M5 operation strategy, gives me errors during the validation phase on the market:  


test on EURUSD, H1 (netting)  

there are no trading operations  
test on XAUUSD, D1 (netting)  

there are no trading operations  


What solution did you use to solve the problem?  


Thanks in advance.
 
Mohamed Amine Ferdak #:
Hello Oluwaseun James Okewoye,  
I have almost the same problem as you. Indeed, my expert, based on an M5 operation strategy, gives me errors during the validation phase on the market:  


test on EURUSD, H1 (netting)  

there are no trading operations  
test on XAUUSD, D1 (netting)  

there are no trading operations  


What solution did you use to solve the problem?  


Thanks in advance.

Solving Automatic Validation Problems Arising During Product Submission in MQL5 Market - blog post - 

This error is specific for expert advisers only. The rule is: expert advisers must trade. If your robot should be used only on a specific symbol timeframe, then here is what MetaQuotes say: "Products can not apply restrictions. All limitations should be marked as recommendations in the product description." If your robot does not trade by design (a helper tool, for example), choose approriate category ("Utilities") in the product properties.

One of possible reasons for this error to come is when your code contains a checkup like this:

if(!TerminalInfoInteger(TERMINAL_TRADE_ALLOWED))
{
  return ERROR_CODE;
}

Such conditions should be accompanied with IsTesting()/MQLInfoInteger(MQL_TESTER) call. The automatic tester is not connected to an account, and the tester is always considered as allowed to trade. Correct code should be:

if(!TerminalInfoInteger(TERMINAL_TRADE_ALLOWED) && ! MQLInfoInteger(MQL_TESTER))
{
  return ERROR_CODE;
}

 


------------------------

More - 

there are no trading operations - the forum thread

Strategy tester report not found - the forum thread 

Solving Automatic Validation Problems Arising During Product Submission in MQL5 Market
Solving Automatic Validation Problems Arising During Product Submission in MQL5 Market
  • 2017.08.07
  • www.mql5.com
If you're distributing some products for MetaTrader 4/5 via the Market, you probably know that a special "welcome" stage of automatic product validation has been added recently by MetaQuotes on the
 
Sergey Golubev #:

Solving Automatic Validation Problems Arising During Product Submission in MQL5 Market - blog post - 

This error is specific for expert advisers only. The rule is: expert advisers must trade. If your robot should be used only on a specific symbol timeframe, then here is what MetaQuotes say: "Products can not apply restrictions. All limitations should be marked as recommendations in the product description." If your robot does not trade by design (a helper tool, for example), choose approriate category ("Utilities") in the product properties.

One of possible reasons for this error to come is when your code contains a checkup like this:

if(!TerminalInfoInteger(TERMINAL_TRADE_ALLOWED))
{
  return ERROR_CODE;
}

Such conditions should be accompanied with IsTesting()/MQLInfoInteger(MQL_TESTER) call. The automatic tester is not connected to an account, and the tester is always considered as allowed to trade. Correct code should be:

if(!TerminalInfoInteger(TERMINAL_TRADE_ALLOWED) && ! MQLInfoInteger(MQL_TESTER))
{
  return ERROR_CODE;
}

 


------------------------

More - 

there are no trading operations - the forum thread

Strategy tester report not found - the forum thread 

Thank you Sergey for the support