MQL5 Marketplace Validation Error: "Invalid Stop" Issue

 

Hi everyone guys

, I tried to upload my expert advisor on the MQL5 Marketplace but, during the validation, it gives me the following errors:

test on EURUSD,H1 (netting) 2021.04.05 16:54:40 failed modify #137 buy 0.7 EURUSD sl: 1.17906, tp: 1.17997 -> sl: 1.17921, tp: 1.17997 [Modification failed due to order or position being close to market] 2021.05.07 17:47:20 failed modify #208 buy 0.3 EURUSD sl: 1.20934, tp: 1.21520 -> sl: 1.20940, tp: 1.21520 [Modification failed due to order or position being close to market] 2021.05.07 18:22:40 failed modify #208 buy 0.3 EURUSD sl: 1.20934, tp: 1.21520 -> sl: 1.20942, tp: 1.21520 [Modification failed due to order or position being close to market] 2021.05.18 15:32:40 failed sell stop 0.9 EURUSD at 1.22193 sl: 1.22220 tp: 1.21923 [Invalid stops] 2021.05.31 15:45:00 failed cancel order #254 buy stop 0.7 EURUSD at 1.22019 sl: 1.21983 tp: 1.22379 [Invalid stops] 2021.05.31 15:45:20 failed cancel order #254 buy stop 0.7 EURUSD at 1.22019 sl: 1.21983 tp: 1.22379 [Invalid stops] 2021.05.31 15:45:40 failed cancel order #254 buy stop 0.7 EURUSD at 1.22019 sl: 1.21983 tp: 1.22379 [Invalid stops] 2021.05.31 15:45:59 failed cancel order #254 buy stop 0.7 EURUSD at 1.22019 sl: 1.21983 tp: 1.22379 [Invalid stops] 2021.05.31 15:46:00 failed cancel order #254 buy stop 0.7 EURUSD at 1.22019 sl: 1.21983 tp: 1.22379 [Invalid stops] 2021.05.31 15:46:20 failed cancel order #254 buy stop 0.7 EURUSD at 1.22019 sl: 1.21983 tp: 1.22379 [Invalid stops] 2021.05.31 15:46:40 failed cancel order #254 buy stop 0.7 EURUSD at 1.22019 sl: 1.21983 tp: 1.22379 [Invalid stops] 2021.05.31 15:46:59 failed cancel order #254 buy stop 0.7 EURUSD at 1.22019 sl: 1.21983 tp: 1.22379 [Invalid stops] 2021.05.31 15:47:00 failed cancel order #254 buy stop 0.7 EURUSD at 1.22019 sl: 1.21983 tp: 1.22379 [Invalid stops] 2021.05.31 15:47:20 failed cancel order #254 buy stop 0.7 EURUSD at 1.22019 sl: 1.21983 tp: 1.22379 [Invalid stops] 2021.05.31 15:47:40 failed cancel order #254 buy stop 0.7 EURUSD at 1.22019 sl: 1.21983 tp: 1.22379 [Invalid stops] 2021.05.31 15:47:59 failed cancel order #254 buy stop 0.7 EURUSD at 1.22019 sl: 1.21983 tp: 1.22379 [Invalid stops] 2021.05.31 15:48:00 failed cancel order #254 buy stop 0.7 EURUSD at 1.22019 sl: 1.21983 tp: 1.22379 [Invalid stops] 2021.05.31 15:48:20 failed cancel order #254 buy stop 0.7 EURUSD at 1.22019 sl: 1.21983 tp: 1.22379 [Invalid stops] 2021.05.31 15:48:40 failed cancel order #254 buy stop 0.7 EURUSD at 1.22019 sl: 1.21983 tp: 1.22379 [Invalid stops] 2021.05.31 15:48:59 failed cancel order #254 buy stop 0.7 EURUSD at 1.22019 sl: 1.21983 tp: 1.22379 [Invalid stops] 2021.05.31 15:49:00 failed cancel order #254 buy stop 0.7 EURUSD at 1.22019 sl: 1.21983 tp: 1.22379 [Invalid stops] strategy tester report 117 total trades

I noticed that the errors are due to the 'invalid stop' but I don't understand why, because my expert advisor, doing several backtests on my Metatrader 5 platform, works very well.

Thanks to whoever will reply.

 
Nicola Mungiguerra:

Hi everyone guys

, I tried to upload my expert advisor on the MQL5 Marketplace but, during the validation, it gives me the following errors:

test on EURUSD,H1 (netting) 2021.04.05 16:54:40 failed modify #137 buy 0.7 EURUSD sl: 1.17906, tp: 1.17997 -> sl: 1.17921, tp: 1.17997 [Modification failed due to order or position being close to market] 2021.05.07 17:47:20 failed modify #208 buy 0.3 EURUSD sl: 1.20934, tp: 1.21520 -> sl: 1.20940, tp: 1.21520 [Modification failed due to order or position being close to market] 2021.05.07 18:22:40 failed modify #208 buy 0.3 EURUSD sl: 1.20934, tp: 1.21520 -> sl: 1.20942, tp: 1.21520 [Modification failed due to order or position being close to market] 2021.05.18 15:32:40 failed sell stop 0.9 EURUSD at 1.22193 sl: 1.22220 tp: 1.21923 [Invalid stops] 2021.05.31 15:45:00 failed cancel order #254 buy stop 0.7 EURUSD at 1.22019 sl: 1.21983 tp: 1.22379 [Invalid stops] 2021.05.31 15:45:20 failed cancel order #254 buy stop 0.7 EURUSD at 1.22019 sl: 1.21983 tp: 1.22379 [Invalid stops] 2021.05.31 15:45:40 failed cancel order #254 buy stop 0.7 EURUSD at 1.22019 sl: 1.21983 tp: 1.22379 [Invalid stops] 2021.05.31 15:45:59 failed cancel order #254 buy stop 0.7 EURUSD at 1.22019 sl: 1.21983 tp: 1.22379 [Invalid stops] 2021.05.31 15:46:00 failed cancel order #254 buy stop 0.7 EURUSD at 1.22019 sl: 1.21983 tp: 1.22379 [Invalid stops] 2021.05.31 15:46:20 failed cancel order #254 buy stop 0.7 EURUSD at 1.22019 sl: 1.21983 tp: 1.22379 [Invalid stops] 2021.05.31 15:46:40 failed cancel order #254 buy stop 0.7 EURUSD at 1.22019 sl: 1.21983 tp: 1.22379 [Invalid stops] 2021.05.31 15:46:59 failed cancel order #254 buy stop 0.7 EURUSD at 1.22019 sl: 1.21983 tp: 1.22379 [Invalid stops] 2021.05.31 15:47:00 failed cancel order #254 buy stop 0.7 EURUSD at 1.22019 sl: 1.21983 tp: 1.22379 [Invalid stops] 2021.05.31 15:47:20 failed cancel order #254 buy stop 0.7 EURUSD at 1.22019 sl: 1.21983 tp: 1.22379 [Invalid stops] 2021.05.31 15:47:40 failed cancel order #254 buy stop 0.7 EURUSD at 1.22019 sl: 1.21983 tp: 1.22379 [Invalid stops] 2021.05.31 15:47:59 failed cancel order #254 buy stop 0.7 EURUSD at 1.22019 sl: 1.21983 tp: 1.22379 [Invalid stops] 2021.05.31 15:48:00 failed cancel order #254 buy stop 0.7 EURUSD at 1.22019 sl: 1.21983 tp: 1.22379 [Invalid stops] 2021.05.31 15:48:20 failed cancel order #254 buy stop 0.7 EURUSD at 1.22019 sl: 1.21983 tp: 1.22379 [Invalid stops] 2021.05.31 15:48:40 failed cancel order #254 buy stop 0.7 EURUSD at 1.22019 sl: 1.21983 tp: 1.22379 [Invalid stops] 2021.05.31 15:48:59 failed cancel order #254 buy stop 0.7 EURUSD at 1.22019 sl: 1.21983 tp: 1.22379 [Invalid stops] 2021.05.31 15:49:00 failed cancel order #254 buy stop 0.7 EURUSD at 1.22019 sl: 1.21983 tp: 1.22379 [Invalid stops] strategy tester report 117 total trades

I noticed that the errors are due to the 'invalid stop' but I don't understand why, because my expert advisor, doing several backtests on my Metatrader 5 platform, works very well.

Thanks to whoever will reply.

Similar questions have been raised before - for detailed guidance and helpful info you can read here:

The article
The checks a trading robot must pass before publication in the Market 

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

The checks a trading robot must pass before publication in the Market
The checks a trading robot must pass before publication in the Market
  • www.mql5.com
Before any product is published in the Market, it must undergo compulsory preliminary checks in order to ensure a uniform quality standard. This article considers the most frequent errors made by developers in their technical indicators and trading robots. An also shows how to self-test a product before sending it to the Market.