how to code close a position after diminution of profit to a certain level
2 replies
Retur
6 years ago #197885
Hello,
How can I code to take profit at a minimal level after a diminution of it?
Is this correct:
Close100
IF (IsBarOpen is True) && (((Open P/L (( 100 )) > PL1)
And (Open P/L (( 100 )) <= PL)))
THEN
Close order with Magic Number: 100;
Thanks in advance.
Arthur
tomas262
6 years ago #197891
Hello,
you can use the “move SL to break-even” function that can be setup directly with an order to protect your position against becoming a loser trade. Let me know if you need an example for this or if you meant something else
Retur
6 years ago #197896
Ok, thanks.
Viewing 2 replies - 1 through 2 (of 2 total)