Error 136 (ERR_OFF_QUOTES) when trailing stop with OrderModify

 

Hello community, 

I have a problem: When i trailing stop, sometimes i get error 136 (ERR_OFF_QUOTES). Example: Case AAPLm (Apple stock). But In most cases it works fine.

Is there any error in my code or is this just my forex broker error? I am using exness broker, demo.

 
Trần Thanh: Is there any error in my code

We can't see your code.

You can't move stops (or pending prices) closer to the market than the minimum: MODE_STOPLEVEL * _Point or SymbolInfoInteger(SYMBOL_TRADE_STOPS_LEVEL).
          Requirements and Limitations in Making Trades - Appendixes - MQL4 Tutorial

On some ECN type brokers, the value might be zero (the broker doesn't know). Use a minimum of two (2) PIPs.

The checks a trading robot must pass before publication in the Market - MQL5 Articles (2016)

Reason: