Download MetaTrader 5

Position Frozen

To add comments, please log in or register
Henrique Vilela
1458
Henrique Vilela  

At some situations the position is "frozen" (can't be changed) and any attempt to change it results in TRADE_RETCODE_FROZEN.

Is it possible to retrieve this state to verify is a position is currently frozen or not, without an attempt to change it?

Thanks in advice. 

Alain Verleyen
Moderator
32810
Alain Verleyen  

Maybe by checking the freeze distance  : SymbolInfoInteger () with SYMBOL_TRADE_FREEZE_LEVEL parameter ?

Not sure about that.

EDIT: which request are you doing ?

Henrique Vilela
1458
Henrique Vilela  
Alain Verleyen:

Maybe by checking the freeze distance  : SymbolInfoInteger () with SYMBOL_TRADE_FREEZE_LEVEL parameter ?

Not sure about that.

EDIT: which request are you doing ?

Thank you, but it's the position that is frozen not the symbol it self. It happens (at least in the Brazilian market) when the price is too close to the TP or the SL.

I'll check this method anyway, thanks. 

I'm trying to change the  stop loss.

To add comments, please log in or register