I am trying to get Previous Day High, Low, Open and Close using Bars.GetDayBar(1).High (etc) but it is returning null. I even tried to add AddDataSeries(Data.BarsPeriodType.Day, 1) and use BarsArray[1].GetDayBar(1).Close but still the same error. How do I fix this?
Thanks.

Comment