Automatic validation problem

 

Hey there I would like to publish my EA on MQL5 but I’m getting some error can you please just help me with it thanks.

EA still fonctionnal in real ticks on backtest

Thank's you

 
There are no trading operations  

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. 

read more (with the about how to fix) on this blog post

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
 

Please also note that your EA is being validated (including) on ​​EURUSD H1 (netting) and is returning an error from OnInit(). This needs to be fixed to pass automatic validation. If the EA has any symbol and/or timeframe limitations, please remove them.


Related topics:

 
Before i have last screenshot 
Files:
1.png  90 kb
 
And now i have this
 
Vinicius Pereira De Oliveira #:

Please also note that your EA is being validated (including) on ​​EURUSD H1 (netting) and is returning an error from OnInit(). This needs to be fixed to pass automatic validation. If the EA has any symbol and/or timeframe limitations, please remove them.


Related topics:

The EA haven't TF or Symbol in code

 
Marvin Alain Bernard Barthelemy #Before i have last screenshot 

Regarding the [not enough money] error, you need to implement the function CheckMoneyForTrade() in your code to prevent this from happening.

 
He absolutely wants to open a lot of 0.2 on XAUUSD but the margin he grants me is too low, what is the solution and thank you for your help
 
Marvin Alain Bernard Barthelemy #He absolutely wants to open a lot of 0.2 on XAUUSD but the margin he grants me is too low, what is the solution and thank you for your help

Regarding the error "position stop out triggered at -86.82% [#2 buy 0.2 XAUUSD 1928.13] - stop out occurred on 2% of testing interval", when you implement the CheckMoneyForTrade() function and your code checks its return before trying to include a new position, this error should be avoided as well.