partial close in mql5

 

hi every body
i want close a part of position  by positionclosepartial function in mql5, but i cant and give me errror! please help me how to use it?

 
sami526:

hi every body
i want close a part of position  by positionclosepartial function in mql5, but i cant and give me errror! please help me how to use it?


I know i can perform a partial close by sending an opposite order with the lot size i want
 
Dua Yong Rew:

I know i can perform a partial close by sending an opposite order with the lot size i want

thank you so much
 
sami526:
hi every body
i want close a part of position  by positionclosepartial function in mql5, but i cant and give me errror! please help me how to use it?


A new method PositionClosePartial in the CTrade class:

Partially closes a position @on a specified symbol@/@having a specified ticketin case of a "hedging" accounting.

 
Vladimir Karputov:


A new method PositionClosePartial in the CTrade class:

Partially closes a position @on a specified symbol@/@having a specified ticketin case of a "hedging" accounting.


what is hedging accounting? 
 
sami526:

what is hedging accounting? 

MetaTrader 5 features hedging position accounting system
Reason: