Reply

how to code close a position after diminution of profit to a certain level

2 replies

Retur

Subscriber, bbp_participant, community, 2 replies.

Visit profile

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

0

tomas262

Administrator, sq-ultimate, 2 replies.

Visit profile

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

0

Retur

Subscriber, bbp_participant, community, 2 replies.

Visit profile

6 years ago #197896

Ok, thanks.

0

Viewing 2 replies - 1 through 2 (of 2 total)