I would like to plot the sma of 4 week high/low on the 60 mins time frame but no luck. please help to advise the solution.
else if (State == State.Configure)
{
AddDataSeries(BarsPeriodType.Week, 1);
}
else if (State == State.DataLoaded)
{
smaHigh = SMA(BarsArray[1], 4);
smaLow = SMA(BarsArray[1], 4);
smaHigh.Plots[0].Brush = Brushes.Blue;
smaLow.Plots[0].Brush = Brushes.Red;
AddChartIndicator(smaHigh);
AddChartIndicator(smaLow);
}

Comment