I'd like to create the same MACD as the one Barchart.com uses, which is shown here
I took the regular MACD source code, copied and created a custom indicator and changed the plot colors to transparent for everything other than the Average (which is the line I believe Barchart solely uses for their MACD). However, there is still another line which won't go away, even when every line on the plot is supposedly transparent other than the average. I can't figure out why it's doing this.
Here is my code (I only included the part of the original MACD code by NT which I edited)
protected override void Initialize()
{
Add(new Plot(Color.Transparent, "Macd"));
Add(new Plot(Color.Red,"Avg"));
Add(new Plot(new Pen(Color.Transparent, 2), PlotStyle.Bar, "Diff"));
Add(new Line(Color.Transparent, 0, "Zero line"));
fastEma = new DataSeries(this);
slowEma = new DataSeries(this);
}
Comment