I think I am using the data series thing wrong. Here is my awkward code
protected override void Initialize() { Add(new Plot(Color.Empty, PlotStyle.Hash, "RegCh[1]")); Add(new Plot(Color.Empty, PlotStyle.Hash, "RegCh[2]")); Add(new Plot(Color.Empty, PlotStyle.Hash, "RegCh[3]")); Add(new Plot(Color.Empty, PlotStyle.Hash, "RegCh[4]")); Add(new Plot(Color.Empty, PlotStyle.Hash, "RegCh[5]")); }
protected override void OnBarUpdate() { PriorRegCh.Set(currentRegCh); PriorRegCh2.Set(RegCh1); PriorRegCh3.Set(RegCh2); PriorRegCh4.Set(RegCh3); PriorRegCh5.Set(RegCh4); currentRegCh = RegressionChannel(60, 2).Middle[0]; RegCh1 = PriorRegCh[0]; RegCh2 = PriorRegCh2[0]; RegCh3 = PriorRegCh3[0]; RegCh4 = PriorRegCh4[0];
#region Properties [Browsable(false)] [XmlIgnore()] public DataSeries PriorRegCh { get { return Values[0]; } } [Browsable(false)] [XmlIgnore()] public DataSeries PriorRegCh2 { get { return Values[1]; } } [Browsable(false)] [XmlIgnore()] public DataSeries PriorRegCh3 { get { return Values[2]; } } [Browsable(false)] [XmlIgnore()] public DataSeries PriorRegCh4 { get { return Values[3]; } } [Browsable(false)] [XmlIgnore()] public DataSeries PriorRegCh5 { get { return Values[4]; } }
Comment