My intention is to create a custom breadth indicator, but I don't know how to refer to $ADVN and $DECN in the code.
I appreciate any help or guidance on this. Thanks.
*** Edit
protected override void Initialize() { Add(new Plot(Color.FromKnownColor(KnownColor.Orange), PlotStyle.Line, "Breadth")); Add(new Plot(Color.FromKnownColor(KnownColor.Green), PlotStyle.Line, "MA")); Add(new Plot(Color.FromKnownColor(KnownColor.DarkViolet), PlotStyle.Line, "Diff")); Add(new Line(Color.FromKnownColor(KnownColor.DarkOliveGreen), 0, "Zero")); CalculateOnBarClose = true; Overlay = false; PriceTypeSupported = false; Add("AAPL", PeriodType.Minute, 5); }
Comment