ApplyStop Valid from starting point

Hello,
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.

SetOption("AllowSameBarExit",False);

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

ApplyStop(stopTypeProfit,stopModePercent,7,1,False,2);
ApplyStop(stopTypeLoss,stopModePercent,3.4,1,False,3,38,-1);

backtest

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.