Abhimanyu Hans:
Hello I am getting this error in validation pass, can someone help me out with this thing ? Attaching the code and the error screenshot. What should I add into this to avoid this error ?
Surprised over a month and no response from MQ5!!!
I have also started getting this error, on previously working well code. Seems MQL5 update has messed up somewhere something.
@Abhimanyu Hans and @Anil Varma, please do some research on the contract specifications called "Freeze Level" and "Stops Level".
Here is a starting point regarding how to implement the checks in your code ...
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.
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
Hello I am getting this error in validation pass, can someone help me out with this thing ? Attaching the code and the error screenshot. What should I add into this to avoid this error ?
Full error :
test on EURUSD,H1 (netting) strategy tester report 5 total trades test on XAUUSD,D1 (netting) 2021.02.01 02:15:55 failed modify order #2 sell stop 0.2 XAUUSD at 1849.96 sl: 0.00 tp: 0.00 -> 1849.96, sl: 1884.96 tp: 0.00 [Modification failed due to order or position being close to market] 2021.02.01 02:15:55 failed modify order #2 sell stop 0.2 XAUUSD at 1849.96 sl: 0.00 tp: 0.00 -> 1849.96, sl: 1884.96 tp: 0.00 [Modification failed due to order or position being close to market] 2021.02.01 02:15:55 failed modify order #2 sell stop 0.2 XAUUSD at 1849.96 sl: 0.00 tp: 0.00 -> 1849.96, sl: 1884.96 tp: 0.00 [Modification failed due to order or position being close to market] 2021.02.01 02:15:55 failed modify order #2 sell stop 0.2 XAUUSD at 1849.96 sl: 0.00 tp: 0.00 -> 1849.96, sl: 1884.96 tp: 0.00 [Modification failed due to order or position being close to market] 2021.02.01 02:15:55 failed modify order #2 sell stop 0.2 XAUUSD at 1849.96 sl: 0.00 tp: 0.00 -> 1849.96, sl: 1884.96 tp: 0.00 [Modification failed due to order or position being close to market] 2021.02.01 02:15:55 failed modify order #2 sell stop 0.2 XAUUSD at 1849.96 sl: 0.00 tp: 0.00 -> 1849.96, sl: 1884.96 tp: 0.00 [Modification failed due to order or position being close to market] 2021.02.01 02:15:55 failed modify order #2 sell stop 0.2 XAUUSD at 1849.96 sl: 0.00 tp: 0.00 -> 1849.96, sl: 1884.96 tp: 0.00 [Modification failed due to order or position being close to market] 2021.02.01 02:15:55 failed modify order #2 sell stop 0.2 XAUUSD at 1849.96 sl: 0.00 tp: 0.00 -> 1849.96, sl: 1884.96 tp: 0.00 [Modification failed due to order or position being close to market] 2021.02.01 02:15:55 failed modify order #2 sell stop 0.2 XAUUSD at 1849.96 sl: 0.00 tp: 0.00 -> 1849.96, sl: 1884.96 tp: 0.00 [Modification failed due to order or position being close to market] 2021.02.01 02:15:55 failed modify order #2 sell stop 0.2 XAUUSD at 1849.96 sl: 0.00 tp: 0.00 -> 1849.96, sl: 1884.96 tp: 0.00 [Modification failed due to order or position being close to market] 2021.02.01 02:15:55 failed modify order #2 sell stop 0.2 XAUUSD at 1849.96 sl: 0.00 tp: 0.00 -> 1849.96, sl: 1884.96 tp: 0.00 [Modification failed due to order or position being close to market] 2021.02.01 02:15:55 failed modify order #2 sell stop 0.2 XAUUSD at 1849.96 sl: 0.00 tp: 0.00 -> 1849.96, sl: 1884.96 tp: 0.00 [Modification failed due to order or position being close to market] 2021.02.01 02:15:55 failed modify order #2 sell stop 0.2 XAUUSD at 1849.96 sl: 0.00 tp: 0.00 -> 1849.96, sl: 1884.96 tp: 0.00 [Modification failed due to order or position being close to market] 2021.02.01 02:15:55 failed modify order #2 sell stop 0.2 XAUUSD at 1849.96 sl: 0.00 tp: 0.00 -> 1849.96, sl: 1884.96 tp: 0.00 [Modification failed due to order or position being close to market] 2021.02.01 02:15:55 failed modify order #2 sell stop 0.2 XAUUSD at 1849.96 sl: 0.00 tp: 0.00 -> 1849.96, sl: 1884.96 tp: 0.00 [Modification failed due to order or position being close to market] 2021.02.01 02:15:55 failed modify order #2 sell stop 0.2 XAUUSD at 1849.96 sl: 0.00 tp: 0.00 -> 1849.96, sl: 1884.96 tp: 0.00 [Modification failed due to order or position being close to market] 2021.02.01 02:15:55 failed modify order #2 sell stop 0.2 XAUUSD at 1849.96 sl: 0.00 tp: 0.00 -> 1849.96, sl: 1884.96 tp: 0.00 [Modification failed due to order or position being close to market] 2021.02.01 02:15:55 failed modify order #2 sell stop 0.2 XAUUSD at 1849.96 sl: 0.00 tp: 0.00 -> 1849.96, sl: 1884.96 tp: 0.00 [Modification failed due to order or position being close to market] 2021.02.01 02:15:55 failed modify order #2 sell stop 0.2 XAUUSD at 1849.96 sl: 0.00 tp: 0.00 -> 1849.96, sl: 1884.96 tp: 0.00 [Modification failed due to order or position being close to market] 2021.02.01 02:15:55 failed modify order #2 sell stop 0.2 XAUUSD at 1849.96 sl: 0.00 tp: 0.00 -> 1849.96, sl: 1884.96 tp: 0.00 [Modification failed due to order or position being close to market] 2021.02.01 02:15:55 failed modify order #2 sell stop 0.2 XAUUSD at 1849.96 sl: 0.00 tp: 0.00 -> 1849.96, sl: 1884.96 tp: 0.00 [Modification failed due to order or position being close to market] strategy tester report 234 total trades