Announcement

Collapse
No announcement yet.

Partner 728x90

Collapse

Hull moving average color change

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

    Hull moving average color change

    Hi!

    Can someone please help me create an add-on for Hull moving average indicator. I want it to change color when changing direction

    #2
    Hi bankavaselina, thanks for your note.

    You can use the PlotBrushes array to change the color of the plot per-bar. I attached an example copy of the HMA. To add this, copy the attached .cs file into Documents\NinjaTrader 8\bin\Custom\Indicators.

    Best regards.
    Attached Files

    Comment


      #3
      okay, I'm confused. How do I make this show up in my indicators box? I copied it like you said, but can't figure out what to do next

      Comment


        #4
        Hi bankavaselina,

        Make sure to go into the NinjaScript editor and press F5 to compile. It should show up in the indicators menu.

        Comment


          #5
          Hi Chris, this HMA color change by slope worked great. Would there be any chance you can do the same for the Weighted Moving Average? Thank you in advance

          Comment


            #6
            Hello dmilton,
            You can use IsRising & IsFalling conditions to change color of any moving average. Sharing my custom indicator hope it helps, you can select the MA type: 1 - EMA, 2 - HMA, 3 - SMA, 4 - TMA, 5 - TEMA, 6 - WMA, you can also change the slope colors.
            Attached Files

            Comment


              #7
              Originally posted by s.kinra View Post
              Hello dmilton,
              You can use IsRising & IsFalling conditions to change color of any moving average. Sharing my custom indicator hope it helps, you can select the MA type: 1 - EMA, 2 - HMA, 3 - SMA, 4 - TMA, 5 - TEMA, 6 - WMA, you can also change the slope colors.
              yo también buscaba excelente aporte

              Comment


                #8
                Thank you so much s.kinra, I appreciate it.

                Comment


                  #9
                  Thank you so much!!! It's what I was looking for.

                  One question, can I program a strategy in the color change?

                  Comment


                    #10
                    Hello miguelisert,

                    Welcome to the NinjaTrader forums!

                    I would recommend that you add a plot to the indicator to use a signal. When sloping up and setting the up color, set the plot to 1. When sloping down and setting the down color, set the plot to -1.

                    Below is a link to an example in the User App Share.
                    Description: This indicator can be used to color the rising and falling conditions of most any other indicators plot when used as the input series to this indicator. ColorThePlot offers the ability to select rising and falling colors, sound alerts, email, alerts, Direction change marking, panel color based on direction, bar coloring based on direction. […]
                    Chelsea B.NinjaTrader Customer Service

                    Comment

                    Latest Posts

                    Collapse

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