Partially closing order

busfarehome

Active member
Messages
143
Likes
2
Is it possible to set MT4 to automatically close out part of a position when it reaches a target?
Had a good look round and do not see this option.

For instance, if I open a long position of £1 per point and it reaches my target can I set it so that it closes out half the positon?
 
If you are prepared to write some code, yes, take a look at the OrderCloseBy() function. Basically you open 1/2 a position in the opposite direction and then use OrderCloseBy() to use this order to offset part of the original position.
 
I dont know if there is such a thing in MT4....thats one of the reasons i put orders on TS......I use to enter multiple entries on MT4......its my way of closing half or 1/3 of the position when my TP hits and I want to let some ride.
 
Thanks both for the replies.

gc1, I am getting tha hang ofMT$ and think it's a great platform with so many functions compared to my old broker butr writing code is something I have no experience in, yet.
I am sure that is something for the future though.

Nitafix, excuse my ignorance but what is "TS".
 
Top