Download MetaTrader 5

Position Frozen

To add comments, please log in or register
Documentation is available in CHM and PDF. Download it in any convenient form!
Henrique Vilela
1233
Henrique Vilela 2016.04.06 18:52 

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
30737
Alain Verleyen 2016.04.06 19:18  

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
1233
Henrique Vilela 2016.04.07 01:10  
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