Hoping to ask for some help please. My strategy runs on Calculate.OnEachTick, 30 Second bars as the primary dataseries, but has a secondary dataseries of ticks (AddDataSeries(BarsPeriodType.Tick, 1)). I use the following code to keep track of how many ticks were present in each 30 second bar, and store this in a new series (myTickCountSeries):
if (BarsInProgress == 1)
{
tick_countNow++; //increment the counter
}
if (BarsInProgress == 0)
{
myTickCountSeries[0] = tick_countNow-tick_countPrior;
tick_countPrior = tick_countNow;
}
Many thanks in advance
ChainsawDR

Comment