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

Gradient ema

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

    Gradient ema

    Support/Ninja users,

    Can you please tell if there is any gradient ema or sma indicator for ninja?

    Thanks
    Mmtrader

    #2
    What exactly is a "gradient ema'? Are you referring to an ema that changes color based on slope?

    Comment


      #3
      Originally posted by mrpowerballad View Post
      What exactly is a "gradient ema'? Are you referring to an ema that changes color based on slope?
      Yes, an ema which changes color based on slope.

      Thanks
      Mmtrader

      Comment


        #4
        Hi mmtrader, sorry I'm not aware of one already created for NT.
        BertrandNinjaTrader Customer Service

        Comment


          #5
          Originally posted by mmtrader View Post
          Yes, an ema which changes color based on slope.

          Thanks
          Mmtrader
          Yes, this indicator is available. Go to the "Ninjatrader 7 Indicators" section of the forum, sort by "Date Created (Descending)", and the scroll down three entries to "Multi MA Slope Color".

          Comment


            #6
            Thanks mrpowerballad, found it. Appreciate it.

            Thanks
            Mmtrader

            Comment


              #7
              Hi Support,

              This multi colored MA,..colors based on up/down slope



              But anyway to modify it so that the color changes gradually from green to red,..like gradient color based slope.

              Is there any such indicator,..which does gradient color of moving average.

              Thanks
              Commodity Trader

              Comment


                #8
                Hello Commodity_Trader,

                I am not aware of an indicator that will do this but yes it is possible.

                Most of the indicator will use Known C# colors like Black, Green, Red, Blue etc but if you would like a more gradual color change from on one to another you may want to use the ARGB (Alpha, Red, Green, Blue) values so that you can more easily change the colors.

                Here is a link to Microsoft site that goes over the Color Structure, Known Colors, and functions that you may view to help.


                Example:
                Code:
                Plots[0].Pen.Color = Color.FromArgb(-16777216); //Black
                JCNinjaTrader Customer Service

                Comment

                Latest Posts

                Collapse

                Topics Statistics Last Post
                Started by PaulMohn, Today, 03:49 AM
                0 responses
                3 views
                0 likes
                Last Post PaulMohn  
                Started by inanazsocial, Today, 01:15 AM
                1 response
                7 views
                0 likes
                Last Post NinjaTrader_Jason  
                Started by rocketman7, Today, 02:12 AM
                0 responses
                10 views
                0 likes
                Last Post rocketman7  
                Started by dustydbayer, Today, 01:59 AM
                0 responses
                2 views
                0 likes
                Last Post dustydbayer  
                Started by trilliantrader, 04-18-2024, 08:16 AM
                5 responses
                23 views
                0 likes
                Last Post trilliantrader  
                Working...
                X