I use 2 different bar periods in my strategy, Some of indicators are linked to main period, some of them are linked to second period. For example:
protected override void OnStateChange()
{
if (State == State.SetDefaults)
{
......
}
else if (State == State.Configure)
{
AddDataSeries(Data.BarsPeriodType.Minute, 10);
}
else if (State == State.DataLoaded)
{
sma = SMA(BarsArray[0],21); //With default bar period
rsi = RSI(BarsArray[1],14,3); //With 10 mins period
AddChartIndicator(sma);
AddChartIndicator(rsi); //I expect to see RSI with 10 minutes bar period
}
}

Comment