EA not uploading to Market place
About [invalid volume] and [invalid stops] - how to fix it:
- www.mql5.com
Hi
Follow the link given you above. But in simple words: you need to add all “checking” functions for different possible order parameters the user might use. So you need to normalize and standardize volumes and use prices (entry price, sl, tp) to be consistent with broker and market requirements (bigger that minimum allowed lot size, smaller than maximum lot size, prices for sl/tp at proper distance from current market price regarding stoplevel and freezelevel etc).
Have a nice day👍📊
2022.02.01 06:00:00 failed instant buy 0.1 EURUSD at 1.12332 sl: 1.12282 tp: 1.12432 [Invalid volume] 2022.02.01 06:00:20 failed instant buy 0.1 EURUSD at 1.12332 sl: 1.12282 tp: 1.12432 [Invalid volume] 2022.02.01 06:00:40 failed instant buy 0.1 EURUSD at 1.12332 sl: 1.12282 tp: 1.12432 [Invalid volume] 2022.02.01 06:00:59 failed instant buy 0.1 EURUSD at 1.12332 sl: 1.12282 tp: 1.12432 [Invalid volume] 2022.02.01 06:01:00 failed instant buy 0.1 EURUSD at 1.12332 sl: 1.12282 tp: 1.12432 [Invalid volume] 2022.02.01 06:01:20 failed instant buy 0.1 EURUSD at 1.12332 sl: 1.12282 tp: 1.12432 [Invalid volume] 2022.02.01 06:01:40 failed instant buy 0.1 EURUSD at 1.12332 sl: 1.12282 tp: 1.12432 [Invalid volume] 2022.02.01 06:01:59 failed instant buy 0.1 EURUSD at 1.12332 sl: 1.12282 tp: 1.12432 [Invalid volume] 2022.02.01 06:02:00 failed instant buy 0.1 EURUSD at 1.12332 sl: 1.12282 tp: 1.12432 [Invalid volume]
or like this
test on EURUSD,H1 (netting) there are no trading operations test on XAUUSD,D1 (netting) there are no trading operations test on GBPUSD,M30 (netting) 2021.02.22 00:02:30 failed instant sell 0.1 GBPUSD at 1.40092 sl: 1.40192 tp: 1.39892 [Invalid stops] 2021.05.03 00:01:00 failed instant buy 0.1 GBPUSD at 1.38228 sl: 1.38128 tp: 1.38428 [Invalid stops] 2021.05.17 00:02:00 failed instant buy 0.1 GBPUSD at 1.41108 sl: 1.41008 tp: 1.41308 [Invalid stops] 2021.06.14 00:03:30 failed instant buy 0.1 GBPUSD at 1.41154 sl: 1.41054 tp: 1.41354 [Invalid stops] strategy tester report 1550 total trades
and if i pass through this it gives further errors, what shall i do or can someone guide me? does additional code needs to be writed to pass this?