1 (edited by LoT 2025-05-30 14:07:59)

Topic: Behaviour of N Bars Exit, alone and as part of logical groups

Hello,

I'd need a clarification about the logic of "N Bars Exit".

I attach a demo strategy example with Bar Closing exit condition and 2 logical groups:

a) with N Bars Exit = 1
b) with N Bars Exit = 10 AND Donchian Channel

Do I understand it correctly if I say that a) OR b) must be satisfied at the end of every bar to close a position?

If so, I'd expect all the positions to be closed after 1 bar, being b) constrained by a minimum of 10 bars.
It doesn't seem to be the case in my attachment, i.e. the group b) is effectively playing a role in the exit strategy.

I'm rather confused and I'd appreciate a clarification on that.

Thanks.

Post's attachments

Nbars_Error_Demo Weekly Trading.xml 12.97 kb, 2 downloads since 2025-05-30 

You don't have the permssions to download the attachments of this post.

Re: Behaviour of N Bars Exit, alone and as part of logical groups

Where do you see group B closings? I looked through the trades and it works as expected (only A group closings because N is 1).

Re: Behaviour of N Bars Exit, alone and as part of logical groups

Thanks for checking, footon.

Looking at the journal I can see that the closings are correct (i.e. always after 1 bar).

While keeping the same "Time of beginning", the presence of b) although led to a later effective starting date, as at least 100 bars are needed by the Donchian indicator: that determined the different final balance that triggered my question.