Closing part of the position?

 
Is this possible to close a part of the position? I mean I open 2 lots long of eur$ 1.2200 and I want to close 1 lot at 1.2230 and the rest of position - 1 lot at 1.2260.
Any ideas?

Regards
Rafael
 
I mean from the expert code, of course :)
 
I mean from the expert code, of course :)



hey marynarz i dont know if you can use it for sommething but try to look at this thread "Partially close"
Ps i tryed to write to u by mail but without luck

Jannik
 
I mean from the expert code, of course :)



hey marynarz i dont know if you can use it for sommething but try to look at this thread "Partially close"
Ps i tryed to write to u by mail but without luck

Jannik


Write to my email marynarz15 AT wp dot pl
 
OrderClose(ticket,LOT,Bid,3,)

LOT must be thenum of lots u want to close , and it shold be <= the trade size

OrderClose(ticket,1,Bid,3,) this close half of the trade

OrderClose(ticket,2 ,Bid,3,) close all the trade

be carefull after u close half the next close nust be with the new size of the trade with 1 insted of 2
 
Thanks for the answer. It works.
Rafael
Reason: