I'm trying to add another plot to an indicator, the two lines of code below work fine but I'm running into problems adding an additional plot.
Add(new Plot(Color.FromKnownColor(KnownColor.Orange), PlotStyle.Line, "Plot0"));
Plot0.Set(CurrentDayOHL().CurrentHigh[0] + 20 * TickSize);
Add(new Plot(Color.FromKnownColor(KnownColor.Red), PlotStyle.Line, "Plot1"));
Plot1.Set(CurrentDayOHL().CurrentOpen[0] + 40 * TickSize);
Error: The name 'Plot1' does not exist in the current context.
Thank you in advance,
suprsnipes
Comment