.... private DataSeries price_O_2 ; ... protected override void Initialize() { Add(new Plot(Color.FromKnownColor(KnownColor.Green), PlotStyle.Line, "Bullish_top_line")); Add(new Plot(Color.FromKnownColor(KnownColor.Green), PlotStyle.Line, "Bullish_bottom_line")); Overlay = true; Add ( PeriodType.Second,30); price_O_2 = new DataSeries(this); } /// <summary> /// Called on each bar update event (incoming tick) /// </summary> protected override void OnBarUpdate() { // Executed on secondary bar updates only if (BarsInProgress == 1) { price_O_2[0] =Open[0]; x1= price_O_2[0]; x2= price_O_2[1]; } Bullish_top_line.Set(x1); Bullish_bottom_line.Set(x2); }
what is the problem?
Comment