Discussion of article "The checks a trading robot must pass before publication in the Market" - page 22

You are missing trading opportunities:
- Free trading apps
- Over 8,000 signals for copying
- Economic news for exploring financial markets
Registration
Log in
You agree to website policy and terms of use
If you do not have an account, please register
i am getting a error while publishing my ea. someone help me with this
Solving Automatic Validation Problems Arising During Product Submission in MQL5 Market
Salut la communauté. Moi je reçois constamment ce message d'erreur:
test on EURUSD,H1 (netting) 2022.02.01 00:00:59 failed modify order #2 buy stop 0.2 at 1.12483 sl: 1.12453 tp: 0.00000 -> 1.12483, sl: 1.12453 tp: 0.00000 [No changes] 2022.02.01 00:00:59 failed modify order #3 sell stop 0.2 at 1.12221 sl: 1.12251 tp: 0.00000 -> 1.12221, sl: 1.12251 tp: 0.00000 [No changes] 2022.02.01 00:02:20 failed modify order #2 buy stop 0.2 at 1.12475 sl: 1.12445 tp: 0.00000 -> 1.12475, sl: 1.12445 tp: 0.00000 [No changes] 2022.02.01 00:02:20 failed modify order #3 sell stop 0.2 at 1.12214 sl: 1.12244 tp: 0.00000 -> 1.12214, sl: 1.12244 tp: 0.00000 [No changes] 2022.02.01 00:03:00 failed modify order #2 buy stop 0.2 at 1.12483 sl: 1.12453 tp: 0.00000 -> 1.12483, sl: 1.12453 tp: 0.00000 [No changes] 2022.02.01 00:03:00 failed modify order #3 sell stop 0.2 at 1.12222 sl: 1.12252 tp: 0.00000 -> 1.12222, sl: 1.12252 tp: 0.00000 [No changes] 2022.02.01 00:04:00 failed modify order #3 sell stop 0.2 at 1.12222 sl: 1.12252 tp: 0.00000 -> 1.12222, sl: 1.12252 tp: 0.00000 [No changes] 2022.02.01 00:04:20 failed modify order #2 buy stop 0.2 at 1.12487 sl: 1.12457 tp: 0.00000 -> 1.12487, sl: 1.12457 tp: 0.00000 [No changes] 2022.02.01 00:04:20 failed modify order #3 sell stop 0.2 at 1.12222 sl: 1.12252 tp: 0.00000 -> 1.12222, sl: 1.12252 tp: 0.00000 [No changes] 2022.02.01 00:07:59 failed modify order #2 buy stop 0.2 at 1.12484 sl: 1.12454 tp: 0.00000 -> 1.12484, sl: 1.12454 tp: 0.00000 [No changes] 2022.02.01 00:07:59 failed modify order #3 sell stop 0.2 at 1.12233 sl: 1.12263 tp: 0.00000 -> 1.12233, sl: 1.12263 tp: 0.00000 [No changes] 2022.02.01 00:09:00 failed modify order #3 sell stop 0.2 at 1.12233 sl: 1.12263 tp: 0.00000 -> 1.12233, sl: 1.12263 tp: 0.00000 [No changes] 2022.02.01 00:09:20 failed modify order #2 buy stop 0.2 at 1.12446 sl: 1.12416 tp: 0.00000 -> 1.12446, sl: 1.12416 tp: 0.00000 [No changes] 2022.02.01 00:09:20 failed modify order #3 sell stop 0.2 at 1.12233 sl: 1.12263 tp: 0.00000 -> 1.12233, sl: 1.12263 tp: 0.00000 [No changes] 2022.02.01 00:10:00 failed modify order #3 sell stop 0.2 at 1.12233 sl: 1.12263 tp: 0.00000 -> 1.12233, sl: 1.12263 tp: 0.00000 [No changes] 2022.02.01 00:11:20 failed modify order #2 buy stop 0.2 at 1.12453 sl: 1.12423 tp: 0.00000 -> 1.12453, sl: 1.12423 tp: 0.00000 [No changes] 2022.02.01 00:11:20 failed modify order #3 sell stop 0.2 at 1.12223 sl: 1.12253 tp: 0.00000 -> 1.12223, sl: 1.12253 tp: 0.00000 [No changes] 2022.02.01 00:12:20 failed modify order #2 buy stop 0.2 at 1.12461 sl: 1.12431 tp: 0.00000 -> 1.12461, sl: 1.12431 tp: 0.00000 [No changes] 2022.02.01 00:12:20 failed modify order #3 sell stop 0.2 at 1.12231 sl: 1.12261 tp: 0.00000 -> 1.12231, sl: 1.12261 tp: 0.00000 [No changes] 2022.02.01 00:12:59 failed modify order #2 buy stop 0.2 at 1.12453 sl: 1.12423 tp: 0.00000 -> 1.12453, sl: 1.12423 tp: 0.00000 [No changes] 2022.02.01 00:12:59 failed modify order #3 sell stop 0.2 at 1.12223 sl: 1.12253 tp: 0.00000 -> 1.12223, sl: 1.12253 tp: 0.00000 [No changes] strategy tester report 2 total trades
Queslqu'un pourrait m'aider ?
NEED HELP PLEASE 😥😥😥😥
your ea cannot change the sl due to your account being netting. It will only modify trades on a hedging account.
If you are author of the ea, then, you need to post your code to receive help or suggestions to fix. On a netting account, i believe, you have to modify the orders in sequence that they opened. You may have to have just 1 sl for those trades too. Could be incorrect, but some suggestions.
EDIT: you can not change or modify pending orders. You have to delete the order, and create a new one.
now new validation error :)
suggesting these can be non-critical error e.g. EA can still be published without having them resolved, as opposed to other critical type of error which require programmer to fix. For non-critical validation error, you should have the publish button enabled too with some sort of messages to let the programmer know that validation interuppted by error but its non-critical
Fix your code so that it properly considers the contract specifications for the symbol being traded.
The article mention at the beginning of this topic, specifically guides you to carry out many of the required checks to achieve this.
Read it, and apply it to your code.