else if (State == State.Configure)
{
AddDataSeries(Data.BarsPeriodType.Range, 32);
Davg2 = BOP(BarsArray[1],14); // I want to have the BOP indicator calculating the values using the larger time frame of 32 range.
}
protected override void OnBarUpdate()
{
if (CurrentBar < BarsRequiredToTrade || CurrentBars[0] < 0 || CurrentBars[1] < 0)
return;
Print ("16 tick close "+ (Closes[0][1]));// prints the correct value for the primary data series
Print ("32 tick close"+ Closes[1][1]);// prints the correct value for the secondary data series
Print ("32 tick "+ (Davg2[1])); //prints the incorrect expected value of BOP for the secondary data series. Instead I see the calculated //value using the primary data series of 16 range.
}
Not sure how to make sure I get expected valued of the indicator calculated for the secondary data series.

Comment