[Invalid volume]. I get this error when trying to pass the Automatic validation for EAs. Any idea?

 
test on EURUSD,H1 (netting)
 2021.02.26 06:34:40   failed buy stop 0.15 EURUSD at 1.21636 sl: 1.21297 tp: 1.26825 [Invalid volume]
 2021.02.26 06:34:59   failed buy stop 0.15 EURUSD at 1.21636 sl: 1.21297 tp: 1.26825 [Invalid volume]
 2021.02.26 06:35:00   failed buy stop 0.15 EURUSD at 1.21636 sl: 1.21297 tp: 1.26825 [Invalid volume]
 2021.02.26 06:35:20   failed buy stop 0.15 EURUSD at 1.21636 sl: 1.21297 tp: 1.26825 [Invalid volume]
 2021.02.26 06:38:40   failed buy stop 0.15 EURUSD at 1.21636 sl: 1.21297 tp: 1.26825 [Invalid volume]
 2021.02.26 06:39:40   failed buy stop 0.15 EURUSD at 1.21636 sl: 1.21297 tp: 1.26825 [Invalid volume]
 2021.02.26 06:39:59   failed buy stop 0.15 EURUSD at 1.21636 sl: 1.21297 tp: 1.26825 [Invalid volume]
 2021.02.26 06:40:40   failed buy stop 0.15 EURUSD at 1.21636 sl: 1.21297 tp: 1.26825 [Invalid volume]
 2021.02.26 06:40:59   failed buy stop 0.15 EURUSD at 1.21636 sl: 1.21297 tp: 1.26825 [Invalid volume]
 2021.02.26 06:41:00   failed buy stop 0.15 EURUSD at 1.21636 sl: 1.21297 tp: 1.26825 [Invalid volume]
 2021.02.26 06:41:20   failed buy stop 0.15 EURUSD at 1.21636 sl: 1.21297 tp: 1.26825 [Invalid volume]
 2021.02.26 06:41:40   failed buy stop 0.15 EURUSD at 1.21636 sl: 1.21297 tp: 1.26825 [Invalid volume]
 2021.02.26 06:41:59   failed buy stop 0.15 EURUSD at 1.21636 sl: 1.21297 tp: 1.26825 [Invalid volume]
 2021.02.26 06:42:00   failed buy stop 0.15 EURUSD at 1.21636 sl: 1.21297 tp: 1.26825 [Invalid volume]
 2021.02.26 06:42:20   failed buy stop 0.15 EURUSD at 1.21636 sl: 1.21297 tp: 1.26825 [Invalid volume]
 2021.02.26 06:42:40   failed buy stop 0.15 EURUSD at 1.21636 sl: 1.21297 tp: 1.26825 [Invalid volume]
 2021.02.26 06:42:59   failed buy stop 0.15 EURUSD at 1.21636 sl: 1.21297 tp: 1.26825 [Invalid volume]
 2021.02.26 06:43:00   failed buy stop 0.15 EURUSD at 1.21636 sl: 1.21297 tp: 1.26825 [Invalid volume]
 2021.02.26 06:43:20   failed buy stop 0.15 EURUSD at 1.21636 sl: 1.21297 tp: 1.26825 [Invalid volume]
 2021.02.26 06:43:40   failed buy stop 0.15 EURUSD at 1.21636 sl: 1.21297 tp: 1.26825 [Invalid volume]
 2021.02.26 06:43:59   failed buy stop 0.15 EURUSD at 1.21636 sl: 1.21297 tp: 1.26825 [Invalid volume]
strategy tester report 22 total trades
Documentation on MQL5: Constants, Enumerations and Structures / Codes of Errors and Warnings / Trade Server Return Codes
Documentation on MQL5: Constants, Enumerations and Structures / Codes of Errors and Warnings / Trade Server Return Codes
  • www.mql5.com
Trade Server Return Codes - Codes of Errors and Warnings - Constants, Enumerations and Structures - MQL5 Reference - Reference on algorithmic/automated trading language for MetaTrader 5
 
I assume your entry price is above the current price at 6:34am. Following that, check if the step for the lots is 0.1 and not 0.01, meaning you can't use 0.0X lots but only 0.X lots. Also, do you have enough margin?
 
Your topic has been moved to the section: Expert Advisors and Automated Trading
Please consider which section is most appropriate — https://www.mql5.com/en/forum/172166/page6#comment_49114893
 
Matias L Leguizamon Fernandez: [Invalid volume]. I get this error when trying to pass the Automatic validation for EAs. Any idea?

Please, search before you post.

This issue has been asked about so many times and answered just as many times, that it is becoming a bit of a "pandemic".

And also, please read the Market rules, as it even has a link to an article explaining all the necessary steps that the validation process checks and explains how to fix them.

Please do you homework before submitting products to the Market.

Reason: