Position Frozen

 

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. 

 

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

Not sure about that.

EDIT: which request are you doing ?

 
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.