Download MetaTrader 5
To add comments, please log in or register
Hundreds of articles will help you to create a trading robot. Come and read them!
Frédéric LEBRE
331
Frédéric LEBRE 2016.06.04 09:29 

Hello,

Please, could you explain me how to decrease lot size of open orde in order to take a partial profit ?

Regards. 

Fernando Carreiro
2236
Fernando Carreiro 2016.06.04 09:36  

Use the "OrderClose()" function with a volume/lots less than the amount currently opened. This is called a partial close!

whroeder1
14236
whroeder1 2016.06.04 11:05  
OrderClose. The amount must be a multiple of lot step, >= min lot and the remaining amount also >= min lot.
Frédéric LEBRE
331
Frédéric LEBRE 2016.06.04 12:33  

Thanks a lot for you answers.

Have a great journey.

/
To add comments, please log in or register