The code that I use is:
protected override void Initialize() { CalculateOnBarClose = true; Overlay = false; PriceTypeSupported = false; Add(new Plot(Color.Green, "Delta")); Add(new Plot(Color.DarkViolet, "Avg")); Add(new Line(Color.DarkViolet, 0, "Zero line")); }
Value.Set(a-b); Avg.Set(a);
If I Comment the line like this....all work well but with only one line plotted:
Value.Set(a-b); //Avg.Set(a);
Comment