Hiya
I suspect that there’s a simple way of doing what I’d like, but unfortunately I haven’t got the programming knowledge to work it out. What I’d like to be able to do is change the Stop Loss to Break Even after 30 minutes, using a 1 minute chart. Initial Stop Loss would be 60, but I’d like to be able to code it to change it to Break Even after 30 minutes please.
Many thanks in advance.
30 minutes are 30 1-minute bars, so you must check they are elapsed AND you have some profits:
IF OnMarket AND (BarIndex - TradeIndex >= 30) AND PositionPerf > 0 THEN
SET STOP Breakeven
ENDIF
Many thanks for the speedy reply, I’ll give that a try.