Say, the exit condition you have set in your formula is happily satisfied. Incidentally, on the very same bar, the N-bar stop also works. Which exit reason would you like to be shown in the report?
If you're debugging your stops - than, probably, N-bar. But if you're evaluating the overall strategy - than, most likely, Regular Exit. In reality N-bar is reported. Examining the Signal objects and their Reason properties I expected at least to find two exit signals in the circumstances described - one with reason=5 (N-bar), and another with reason=1 (Regular exit). But no! The regular exit signal is not there! Shouldn't it be there? Below are simplified snippets of my code. Here's how I set the N-bar stop: ApplyStop( stopTypeNBar, stopModeBars, 10, exitatstop = 1, volatile = False, 1 ); Here's how I examine the signals: for (sig = bo.GetFirstSignal(PTExitBar); sig; sig = bo.GetNextSignal(PTExitBar)) if (sig.isExit() ) _TRACE("Exit reason is " + WriteVal(sig.Reason, 1.0); Tried playing with ApplyStop parameters, tried turning ActivateStopsImmediately option on and off, but nothing seems to change this behavior. Hmm...