I have a short question. When doing a strategy and backtesting there appears sometimes that the lookback period is to understand in 2 ways. Eg with a value of 3
a.) it seems and I thought condition is filled when this happens within the 3 bars (not matter if bars-1 or bars-2 or bars-3 is the one where it occurs)
b.) but sometimes it seems that it is filled only when exactly at the bar indicated (here bars-3) the referring condition occurs, eg the crossover has to happen exactly at this bar.
What is the correct one? (I think the "within" a. but can it happen in the coding that the b. works, too?)
Thanks
Tony


Comment