postion.Volume not updated after position.close

 

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