how to use PositionClose

 

Hi everyone,

when i use "PositionClose" function, instead of closing the open position, it opens a new position Contrary to the open position.

 I dont know why...

Files:
Capture.PNG  22 kb
 
You have apparently a hedging account and you need to use PositionCloseBy() instead.
 
twalk:
You have apparently a hedging account and you need to use PositionCloseBy() instead.

thank you so muh.

how can i change it to non hedging acount? 

Reason: