Is FreezeLevel is always lesser than StopLevel?
Docs :
https://www.mql5.com/en/docs/standardlibrary/tradeclasses/csymbolinfo/csymbolinfofreezelevel
https://www.mql5.com/en/docs/standardlibrary/tradeclasses/csymbolinfo/csymbolinfostopslevel
https://docs.mql4.com/constants/environment_state/marketinfoconstants
No FreezeLevel is not always less than StopLevel.
They’re independent broker/server limits:
-
StopLevel: the minimum distance (in points) you must keep when setting SL/TP or pending prices.
-
FreezeLevel: a “no-touch zone” near the current price where you cannot modify/cancel/close an order.
Either one can be 0, they can be equal, or FreezeLevel can be greater than StopLevel (and vice versa). In EAs, it’s common to treat the effective safety distance as max(StopLevel, FreezeLevel) when deciding whether a modify is allowed.
No FreezeLevel is not always less than StopLevel.
They’re independent broker/server limits:
-
StopLevel: the minimum distance (in points) you must keep when setting SL/TP or pending prices.
-
FreezeLevel: a “no-touch zone” near the current price where you cannot modify/cancel/close an order.
Either one can be 0, they can be equal, or FreezeLevel can be greater than StopLevel (and vice versa). In EAs, it’s common to treat the effective safety distance as max(StopLevel, FreezeLevel) when deciding whether a modify is allowed.
int gMinPointLevel = MathMax(MathMax(MarketInfo(Symbol(), MODE_STOPLEVEL)+2, MarketInfo(Symbol(), MODE_FREEZELEVEL)+2), MarketInfo(Symbol(), MODE_SPREAD)+2);
- Free trading apps
- Over 8,000 signals for copying
- Economic news for exploring financial markets
You agree to website policy and terms of use
Is FreezeLevel is always lesser than StopLevel?
Docs :
https://www.mql5.com/en/docs/standardlibrary/tradeclasses/csymbolinfo/csymbolinfofreezelevel
https://www.mql5.com/en/docs/standardlibrary/tradeclasses/csymbolinfo/csymbolinfostopslevel
https://docs.mql4.com/constants/environment_state/marketinfoconstants