Announcement

Collapse
No announcement yet.

Partner 728x90

Collapse

Changeable Color

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

    Changeable Color

    I have succeed in creating a Ninja 7 indicator that creates a "moving average channel" (using DrawRegion) with semi-opaque gray channel between the SMA High and SMA Low. (thanks to the forum threads!!!)
    I cannot however, seem to create a place in 'Parameters' or 'Plots' for a way to change the color of the channel. I tried creating a public entry to return a System.Drawing.Color value....but that has not worked. Can you point me to an example of code where someone has created a way to select color from the "Indicators Screen" for the channel??

    NOTE: I did successfully create upper and lower 'Plots" for line colors.

    #2
    photog53,

    Please see this tip here for creating custom color parameters: http://www.ninjatrader-support2.com/...ead.php?t=4977
    Josh P.NinjaTrader Customer Service

    Comment


      #3
      Hello,

      I built a color change drawregion indicator:


      Use that as an example and let me know if you have q's...

      Comment


        #4
        Thanks!!

        Thanks for the prompt replies!! I'll take a look.

        Comment


          #5
          Did you get it figured out?

          Comment


            #6
            Yes...(thanks so much!!!) It works well.
            I am now adding code so the indicator can select a variety of "moving averages" and paint a High/Low channel for each of them depending on selection. After it is tested, I will upload the indicator to the Ninja forum for anyone who wants it can use it.
            (This indicator may have been done before, but I'd like to offer it in return for all the info I've received over the last several months from this site)

            Comment


              #7
              Sounds great!

              Comment


                #8
                I posted the completed Ninja 7 version of this indicator on the "sharing" portion of this forum. I will put a Ninja 6.5 version out later as well. Thanks again for all the help.

                Comment

                Latest Posts

                Collapse

                Topics Statistics Last Post
                Started by cmoran13, 04-16-2026, 01:02 PM
                0 responses
                42 views
                0 likes
                Last Post cmoran13  
                Started by PaulMohn, 04-10-2026, 11:11 AM
                0 responses
                25 views
                0 likes
                Last Post PaulMohn  
                Started by CarlTrading, 03-31-2026, 09:41 PM
                1 response
                162 views
                1 like
                Last Post NinjaTrader_ChelseaB  
                Started by CarlTrading, 04-01-2026, 02:41 AM
                0 responses
                98 views
                1 like
                Last Post CarlTrading  
                Started by CaptainJack, 03-31-2026, 11:44 PM
                0 responses
                157 views
                2 likes
                Last Post CaptainJack  
                Working...
                X