Cannot Upload to market

 

Not sure if this is the rigth please to post.

So, I am triyng half day to upload an EA for Gold trading to the Market. (That's my first time, and maybe also last)
Verification alwasy fail and it just give me the following output below. Hovever, the EA works on Gold and verification test is made on EURUSD, OF COURSE the sl/tp etc. are quite different on that forex pair! (this way it will never pass that "test")
Any info would be appreciated.
______________

test on EURUSD,H1 (hedging) 2023.02.14 15:32:40 failed buy stop 0.2 EURUSD at 1.08000 [Invalid price] 2023.02.14 15:32:59 failed buy stop 0.2 EURUSD at 1.08000 [Invalid price] 2023.02.14 15:33:00 failed buy stop 0.2 EURUSD at 1.08000 [Invalid price] 2023.02.14 15:33:20 failed buy stop 0.2 EURUSD at 1.08000 [Invalid price] 2023.03.10 16:40:40 failed buy stop 0.2 EURUSD at 1.06663 [Invalid price] 2023.03.10 16:40:59 failed buy stop 0.2 EURUSD at 1.06663 [Invalid price] _____________

 

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

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

Forum on trading, automated trading systems and testing trading strategies

EA cannot pass validation

Sergey Golubev, 2025.08.24 09:12

...

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

 

The EA can trade also on forex Pairs, but suggested on Gold ( I wrote this of course in the descrition) 

What I understood, the problem is on "Invalid Price
2023.02.14 15:32:40   failed buy stop 0.2 EURUSD at 1.08000 [Invalid price]

But there is no other explanation. "Invalit price" error is quite generic error and that way it is very difficoult to fix any error.

 

Well, I triying to change SL/TP/Trail etc etc....But the Validation fail anyway.

Also more I change those Values more we go "away" from the original work of that EA and the performance will go from good to mediocre.

Maybe that is the reason there are only very few EA's that has good performance here on the market.

BTW: my EA already working on Live account.

 

The EA process for validation, when is your first time publishing, is quite hard to pass, but once you understand it, is easy. :)


For each EA the change that you need to do is specific, it is not same so you need to check the code...


I'll suggest using the strategy tester in the exact time that the EA shows, and then implementing multiple if filters and start debugging...


For this specific case of invalid price there should be an specfic command for checking this, so the solution could be as simple as adding an only if clause...


if(invalid_price)

{

Print("Invalid Price");

}

else

{

trade.buy;

trade.sell;

}