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 Hwop38, 05-04-2026, 07:02 PM
                0 responses
                160 views
                0 likes
                Last Post Hwop38
                by Hwop38
                 
                Started by CaptainJack, 04-24-2026, 11:07 PM
                0 responses
                307 views
                0 likes
                Last Post CaptainJack  
                Started by Mindset, 04-21-2026, 06:46 AM
                0 responses
                244 views
                0 likes
                Last Post Mindset
                by Mindset
                 
                Started by M4ndoo, 04-20-2026, 05:21 PM
                0 responses
                348 views
                0 likes
                Last Post M4ndoo
                by M4ndoo
                 
                Started by M4ndoo, 04-19-2026, 05:54 PM
                0 responses
                178 views
                0 likes
                Last Post M4ndoo
                by M4ndoo
                 
                Working...
                X