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 Geovanny Suaza, 02-11-2026, 06:32 PM
                0 responses
                608 views
                0 likes
                Last Post Geovanny Suaza  
                Started by Geovanny Suaza, 02-11-2026, 05:51 PM
                0 responses
                355 views
                1 like
                Last Post Geovanny Suaza  
                Started by Mindset, 02-09-2026, 11:44 AM
                0 responses
                105 views
                0 likes
                Last Post Mindset
                by Mindset
                 
                Started by Geovanny Suaza, 02-02-2026, 12:30 PM
                0 responses
                560 views
                1 like
                Last Post Geovanny Suaza  
                Started by RFrosty, 01-28-2026, 06:49 PM
                0 responses
                561 views
                1 like
                Last Post RFrosty
                by RFrosty
                 
                Working...
                X