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

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 MacDad, 02-25-2024, 11:48 PM
                7 responses
                158 views
                0 likes
                Last Post loganjarosz123  
                Started by Belfortbucks, Today, 09:29 PM
                0 responses
                7 views
                0 likes
                Last Post Belfortbucks  
                Started by zstheorist, Today, 07:52 PM
                0 responses
                7 views
                0 likes
                Last Post zstheorist  
                Started by pmachiraju, 11-01-2023, 04:46 AM
                8 responses
                151 views
                0 likes
                Last Post rehmans
                by rehmans
                 
                Started by mattbsea, Today, 05:44 PM
                0 responses
                6 views
                0 likes
                Last Post mattbsea  
                Working...
                X