how to close a part of the volum of an open position

 

How to close a part of the volum of an open position in mql5 ?

eg: i open 1.0 lot of eur/usd, now i want to close 0.5 lot, how should i do? 

thsnks~! 

 
luenbo:

How to close a part of the volum of an open position in mql5 ?

eg: i open 1.0 lot of eur/usd, now i want to close 0.5 lot, how should i do? 

thsnks~! 

Hi luenbo,

Open sell 0.05 lot eur/usd will do and vice versa. Just try it.

:D 

 
onewithzachy:

Hi luenbo,

Open sell 0.05 lot eur/usd will do and vice versa. Just try it.

:D 

More Examples >

Buy 1 lot ->Sell 1 lot  (Buy Close 1 lot )

Sell 1 lot ->Buy 1 lot (Sell Close 1 lot) 

Buy 1 lot-> Sell 0.5 lot (Buy Close 0.5 lot)

Sell 1 lot-> Buy 0.5 lot (Sell Close 0.5 lot)

 
onewithzachy:

Hi luenbo,

Open sell 0.05 lot eur/usd will do and vice versa. Just try it.

:D 

hehe, thanks!!