Automatic Validation Error for XAUUSD EA When Tested on EURUSD – How to Fix?

 

Hi everyone, I developed an Expert Advisor (EA) exclusively for XAUUSD on M5, but when I run the validation or attempt to publish it, the test seems to be automatically running on EURUSD, which causes a validation failure.

I want to ensure the EA validates correctly for XAUUSD only.

  • How can I force the validation/test to use XAUUSD?
  • Are there specific settings in MetaTrader 5 that restrict EA validation to a particular symbol?
  • Could this be related to code limitations or broker/server issues?

Any guidance on how to fix this issue so I can successfully publish my EA would be appreciated!


"test on EURUSD,H1 (netting)

DQ 0 01:40:07.098 Core 01 2022.02.01 00:00:00   WARNING: EA designed for M5. Running on PERIOD_H1 — FVG signals may not fire correctly.

 2022.03.10 16:39:40   failed modify #18 sell 1.8 EURUSD sl: 1.10253, tp: 1.09984 -> sl: 1.10200, tp: 1.09984 [Modification failed due to order or position being close to market]

strategy tester report 12 total trades"

MQL5 Market: MetaTrader 5
MQL5 Market: MetaTrader 5
  • www.mql5.com
A Market of Applications for the MetaTrader 5 and MetaTrader 4
 
Darell Valiente Taganas:

Hi everyone, I developed an Expert Advisor (EA) exclusively for XAUUSD on M5, but when I run the validation or attempt to publish it, the test seems to be automatically running on EURUSD, which causes a validation failure.

I want to ensure the EA validates correctly for XAUUSD only.

  • How can I force the validation/test to use XAUUSD?
  • Are there specific settings in MetaTrader 5 that restrict EA validation to a particular symbol?
  • Could this be related to code limitations or broker/server issues?

Any guidance on how to fix this issue so I can successfully publish my EA would be appreciated!


"test on EURUSD,H1 (netting)

DQ 0 01:40:07.098 Core 01 2022.02.01 00:00:00   WARNING: EA designed for M5. Running on PERIOD_H1 — FVG signals may not fire correctly.

 2022.03.10 16:39:40   failed modify #18 sell 1.8 EURUSD sl: 1.10253, tp: 1.09984 -> sl: 1.10200, tp: 1.09984 [Modification failed due to order or position being close to market]

strategy tester report 12 total trades"

You cannot force validator to use only XAUUSD.

According to MetaQuotes rules the automatic validation process is designed to ensure a product is robust across different environments (any symbol/timeframe):
"Products cannot apply restrictions. All limitations should be marked as recommendations"

Can read this 

Solving Automatic Validation Problems Arising During Product Submission in MQL5 Market 
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
 
in main page fix account type hedging from netting than try and have a look herehttps://www.mql5.com/en/blogs/post/686716
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