I want to remove the two MA lines from MACD default NinjaTrader indicator, keeping only the histogram.
I tried to erase the two red lines from the MACD's code below, but then the indicator doesn't plot anything.
protected override void Initialize()
{
[COLOR=Red]Add(new Plot(Color.Green, "Macd"));[/COLOR]
[COLOR=Red]Add(new Plot(Color.DarkViolet, "Avg"));[/COLOR]
Add(new Plot(new Pen(Color.Navy, 2), PlotStyle.Bar, "Diff"));
Add(new Line(Color.DarkGray, 0, "Zero line"));
fastEma = new DataSeries(this);
slowEma = new DataSeries(this);
}
Any help please...?

.
Comment