If you had used this, you would have found many threads: ERR_NO_RESULT
You | Server |
---|---|
Change the SL to X | It is at X! |
Change the SL to X | It is at X! |
Change the SL to X | You are insane |
Unknown
Compute the new value, then check that you are moving the existing value at least a tick (in the currect direction).
What is a TICK? - MQL4 programming forum (2014)
If you had used this, you would have found many threads: ERR_NO_RESULT
You | Server |
---|---|
Change the SL to X | It is at X! |
Change the SL to X | It is at X! |
Change the SL to X | You are insane |
Compute the new value, then check that you are moving the existing value at least a tick (in the currect direction).
What is a TICK? - MQL4 programming forum (2014)
Thanks for the response, and I also searched :). I understand that this is happening due to the same value passing into OrderModify. However, I am now unable to understand why it keeps pushing the same value again and again. I reviewed my TrailingStopLoss (OrderModify) code again, but I haven't found the reason behind passing the same value repeatedly. Could you please take a look at the code, which I posted above in this thread? If you can give me an idea of why and what is causing this, I would appreciate it.
if((TrailingStopLoss_entryPrice - Trailing_TP * Pips) - Ask > Pips * Trailing_Gap)
Doubles are rarely equal; your comparison will usually be true. Understand the links in:
The == operand. - MQL4 programming forum #2 (2013)
What part of “check that you are moving the existing value at least a tick” was unclear?

- Free trading apps
- Over 8,000 signals for copying
- Economic news for exploring financial markets
You agree to website policy and terms of use
Hello,
What does Error Code 1 means, i am getting this while order Modification.