I'm quite close to having a working breakeven/trailing stop script in strategy builder (borrowed heavily from NinjaTrader_ChelseaB's script which was super useful!) but I'm getting hung up in one place - I have a trigger price (BETriggerPrice) that moves the stoploss to breakeven, and then a second trigger price (Stops2ProfitPrice) to move the stoploss into profit - however, when testing on sim, if the last price goes above the second trigger level and then back below it, the stoploss jumps into profit, but then reverts back to the breakeven level, defeating the purpose of a trailing stop : )
I'm attaching screengrabs of the strategy builder logic below - would appreciate any insight on how to make that stop-in-profit "stick" when the market price gets above the second trigger level - weirdly, the breakeven stop doesn't have this problem, but honestly I don't totally understand why...
Thank you in advance!

Comment