Announcement

Collapse
No announcement yet.

Partner 728x90

Collapse

Removal the MA lines from MACD

Collapse
X
 
  • Filter
  • Time
  • Show
Clear All
new posts

    Removal the MA lines from MACD

    Hello.

    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.


    Code:
            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);
            }
    I think that may be easy.

    Any help please...?
    Attached Files

    #2
    Originally posted by Armonistas View Post
    Hello.

    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.


    Code:
            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);
            }
    I think that may be easy.

    Any help please...?
    Hi Armonistas,

    The easiest and quickest way is to change the color of them to transparent.
    Then you will not see them .

    Cheers,

    Comment


      #3
      Thank you astra, it works!

      It was so simple.
      I had not even thought it.

      Comment


        #4
        Armonistas,

        You may find the MACDUpDownColor indicator even more visually useful.

        Here is this link:




        Best wishes,
        astra

        Comment

        Latest Posts

        Collapse

        Topics Statistics Last Post
        Started by Geovanny Suaza, 02-11-2026, 06:32 PM
        0 responses
        571 views
        0 likes
        Last Post Geovanny Suaza  
        Started by Geovanny Suaza, 02-11-2026, 05:51 PM
        0 responses
        331 views
        1 like
        Last Post Geovanny Suaza  
        Started by Mindset, 02-09-2026, 11:44 AM
        0 responses
        101 views
        0 likes
        Last Post Mindset
        by Mindset
         
        Started by Geovanny Suaza, 02-02-2026, 12:30 PM
        0 responses
        549 views
        1 like
        Last Post Geovanny Suaza  
        Started by RFrosty, 01-28-2026, 06:49 PM
        0 responses
        549 views
        1 like
        Last Post RFrosty
        by RFrosty
         
        Working...
        X