AddDataSeries(BarsPeriodType.Day, 1);
SMA2 = SMA(BarsArray[1],X);
But it does not work within OnStateChange()
Is there a way to add this daily indicator or must I use the SMA(BarsArray[1],X); in each instance within OnBarUpdate?
Additionally, am I able plot this indicator from OnStateChange(), if so how?
Comment