formula for minimum distance from Market Price for pending orders?

To add comments, please log in or register
Vlada
35
Vlada  
How to calculate minimum distance from Market Price for pending orders OP_BUYSTOP and OP_SELLSTOP to be placed?
rv
461
rv  
moneysmile:
How to calculate minimum distance from Market Price for pending orders OP_BUYSTOP and OP_SELLSTOP to be placed?

MarketInfo .. i guess MODE_FREEZELEVEL was what you are looking for
Ickyrus
881
Ickyrus  

For further information see https://book.mql4.com/appendix/limits

Vlada
35
Vlada  
Ickyrus:

For further information see https://book.mql4.com/appendix/limits


Thank you!!!
whroeder1
18067
whroeder1  

MarketInfo(Symbol(), MODE_STOPLEVEL)*Point

If the market is closer to either stop than max(stoplevel,freezelevel) you can not close, delete or modify an order.

On IBFX freezelevel is zero while stoplevel is usually 3 pips.

rv
461
rv  
WHRoeder:

MarketInfo(Symbol(), MODE_STOPLEVEL)*Point

If the market is closer to either stop than max(stoplevel,freezelevel) you can not close, delete or modify an order.

On IBFX freezelevel is zero while stoplevel is usually 3 pips.


>>On IBFX freezelevel is zero while stoplevel is usually 3 pips

Also new for me, thx WHRoeder

To add comments, please log in or register