problem validating my ea

 
hi guys, i have an issue with the Automatic Validation Process, in the Draft stage. It ends with an error (OrderSend error 131-Invalid trade volume). The validation fails there.
Can anyone suggest me which part of my ea code should be checked and how to be corrected in order to eliminate that error? 
Backtest with Activtrades Demo do not present any error into mt4 Journal. 
 

What is the Automatic Validation Process?

If you are getting Invalid trade volume then check the lot size in the order.

 
Keith Watford:

What is the Automatic Validation Process?

If you are getting Invalid trade volume then check the lot size in the order.

 
If you are getting Invalid trade volume then check the lot size in the order.
 

Oh I see, it is a process for selling an Expert in the market.

Make sure to check that the lot size is a multiple of LotStep and hopefully that will solve your problem.

 

Hi


I would like to upload my EA as a seller on MQL5 and get error message " Validation completed with errors". Is there a way to get passed this phase?

See screen shot:



MQL5 forum
MQL5 forum
  • www.mql5.com
MQL5: Forum on automated trading systems and strategy testing
 
Katleho Ngubeni:

Hi


I would like to upload my EA as a seller on MQL5 and get error message " Validation completed with errors". Is there a way to get passed this phase?

See screen shot:



Yes, make sure that there is enough free margin before trying to open a trade.

Reason: