I am trying to add additional data series for my 15 minute strategy but 60 minute data is not working.
The main parts of code are as follows:
#region Variables
private int tickCount = 0;
#endregion
protected override void Initialize()
{
//add all other time-frames
Add(PeriodType.Minute, 5);
Add(PeriodType.Minute, 30);
Add(PeriodType.Minute, 60);
CalculateOnBarClose = false;
}
protected override void OnBarUpdate()
{
tickCount++;
Print(tickCount+" > BarsInProgress: "+BarsInProgress);
}
In the output window I get this:
....
8467 > BarsInProgress: 0
8468 > BarsInProgress: 1
8469 > BarsInProgress: 2
8470 > BarsInProgress: 0
8471 > BarsInProgress: 1
8472 > BarsInProgress: 2
8473 > BarsInProgress: 0
8474 > BarsInProgress: 1
8475 > BarsInProgress: 2
....
"BarsInProgress: 3" is never printed. The system never sends 60 minute bar data even if I try to force it.
Can you please suggest what should be solution to this ? I am using NinjaTrader 7
Comment