I'm trying to understand why my NinjaScript strategy isn't functioning. The goal is for the stop to move 3 ticks above or below a favorable bar in the direction of the trade after a manually entered trade - so essentially a trailing stop loss but based on the bar and bar-type.
I was having some issues initializing the stopOffset in OnStateChange() so I moved it to OnBarUpdate() - not sure if that's appropriate. Once I add the strategy to my chart, nothing happens once the conditions are met.
Comment