Announcement

Collapse

Looking for a User App or Add-On built by the NinjaTrader community?

Visit NinjaTrader EcoSystem and our free User App Share!

Have a question for the NinjaScript developer community? Open a new thread in our NinjaScript File Sharing Discussion Forum!
See more
See less

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
    Chris L.NinjaTrader Customer Service

    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.
        Chris L.NinjaTrader Customer Service

        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 trilliantrader, Today, 08:16 AM
                    2 responses
                    6 views
                    0 likes
                    Last Post trilliantrader  
                    Started by samish18, Today, 08:31 AM
                    1 response
                    1 view
                    0 likes
                    Last Post NinjaTrader_Clayton  
                    Started by Creamers, 09-08-2023, 10:26 AM
                    6 responses
                    157 views
                    0 likes
                    Last Post JonyGurt  
                    Started by funk10101, Today, 08:14 AM
                    1 response
                    2 views
                    0 likes
                    Last Post NinjaTrader_Jesse  
                    Started by bill2023, Yesterday, 08:51 AM
                    3 responses
                    22 views
                    0 likes
                    Last Post bltdavid  
                    Working...
                    X