Download MetaTrader 5

how to use PositionClose

To add comments, please log in or register
mohsen bahrami
284
mohsen bahrami  

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
Frederic Metraux
510
Frederic Metraux  
You have apparently a hedging account and you need to use PositionCloseBy() instead.
mohsen bahrami
284
mohsen bahrami  
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? 

To add comments, please log in or register