Issues with the automatic validation of my bot for listing it on the market

 

I can’t upload my bot to sell it. It trades only XAUUSD, but during the mandatory validation test for sel\ling it keeps running on EURUSD and causes a lot of errors. How can I fix this?



 
Andrea Gerina:
It trades only XAUUSD...

Restriction of Market products to specific symbols is prohibited.

See Section IV. Products at:

Rules of Using the Market Service
Rules of Using the Market Service
  • www.mql5.com
General Provisions and Conditions of Use service Market
 

So how can i sell it?

 
Andrea Gerina #:

So how can i sell it?

Replace "XAUUSD" with the catch-all, _Symbol, in your code.

And then post clear instructions to only trade XAUUSD in your product description.

 

Forum on trading, automated trading systems and testing trading strategies

EA cannot pass validation

Sergey Golubev, 2025.08.24 09:12

About invalid volume:

The checks a trading robot must pass before publication in the Market - Invalid volumes in trade operations 

============

EA should open trades for all the pairs without limitation. As to XAUUSD so you can write about it in the description for example.
From this blog post (Solving Automatic Validation Problems Arising During Product Submission in MQL5 Market) - 

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."

 
Sergey Golubev #:

Another error now...


 
Andrea Gerina #:

Another error now...

It's tough to say without an actual MT5 log but judging by your 1 pip stop modifications, I would check your minimum stops distance in your code. This, among many other potential issues, are addressed in the last link in Sergey Golubev's Post #4.