Download MetaTrader 5

postion.Volume not updated after position.close

To add comments, please log in or register
Deposit to your account via Visa QIWI Wallet
Flavio Hayashi
120
Flavio Hayashi 2015.02.05 11:42 

Hi friends,

 I have a script to only place new orders if position.Volume == 0. THe problem is that even after i've done the position.close, position.volume continues to carry the old position value.

 In test environment I can see the position.close flattening my position but a Print of position.Volume keeps  showing me the old position.value.

 

Does any one already had this problem?

 

Rgds,

 

Flavio 

To add comments, please log in or register