I've added the time frames in the Initialize function
Add(PeriodType.Day, 1);
Add(PeriodType.Week, 1);
In the OnBarUpdate function I have limited the strategy only to update bars only when there's a new daily bar:
if (BarsInProgress != 1)
return;
My question is this. If I run my strategy and select "Day" as the data series type and "1" as the value why don't I get the same result if I change BarsInProgress to "!= 0"?
Like this:
if (BarsInProgress != 0)
return;
What is the difference between the two settings, when the backtest settings and the settings in the initialize function are the same?

Comment