I am using it in a historical data chart. It never calls OnBarUpdate with BarsInProgress == 1, only 0 for the main data series.
When I try to retrieve values out of the 1 Day bars it fails because CurrentBars[1] is always == -1 no matter where I am in the chart, there is never anything in there. I don't know what I'm doing wrong here. Why can't I access the 1 day data?
protected override void Initialize() { Overlay = true; Add(new Plot(Color.FromKnownColor(KnownColor.Green), PlotStyle.Line, "Long Term High")); Add(new Plot(Color.FromKnownColor(KnownColor.Green), PlotStyle.Line, "Short Term Low")); Add(new Plot(Color.FromKnownColor(KnownColor.Red), PlotStyle.Line, "Long Term Low")); Add(new Plot(Color.FromKnownColor(KnownColor.Red), PlotStyle.Line, "Short Term High")); Add(PeriodType.Day, 1); }
Comment