ApplyStop Valid from starting point

I would appreciate any comments that would clarify my situation. The following code contains a stoploss that should not start until after the first 38 bars. I'm getting trades that are (max loss) stops even though all trades last only 4 bars maximum.

I've used BarsSince(Short) in my Explore and it's never any where near 38 bars.

Thank you for any input you might have.


Buy = C>MA(C,20) ;
Sell = C<MA(C,20);
Short = Sell;
Cover = Buy;



Without seeing your full code I'm guessing you may have a 'Same Bar Conflict'?

See AA Settings Window. (Reverse entry signal forces exit).

Thank you TrendSurfer. This is the full code.