• If this is your first visit, you will have to register before you can post. To view messages, please scroll below and select the forum that you would like to visits. Questions? Be sure to check out the Forum FAQ.

Announcement

Collapse
No announcement yet.

Partner 728x90

Collapse

custom colors

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

    custom colors

    I want to use more vivid and unusual colors in my indicators. Are there additional files anywhere that I can import for this?

    #2
    Hello Forexoil,

    Thank you for writing in.

    Indicator plot colors can be modified from within the Indicators window that can be accessed by right-clicking on the chart and selecting Indicators.

    If you wish to use a color that does not appear within the drop down menus, you will need to modify the indicator's code. Rather than using Color.[Color] for a specific color, you can utilize the Color.FromArgb() method to manually specify red, green, blue and alpha values: https://msdn.microsoft.com/en-us/lib...v=vs.110).aspx

    If you are unsure of how to code using NinjaScript, I would be happy to provide additional resources.

    Please, let us know if we may be of further assistance.
    Zachary G.NinjaTrader Customer Service

    Comment


      #3
      yes, please, if you could give a simple method to add additional colors. I am not a coder..

      Comment


        #4
        Hello,

        Thank you for the reply.

        Unfortunately the only way to add colors that are outside of the standard list would be what was described by NinjaTrader_ZacharyG. It would require editing the indicators code to make that kind of change.

        The link provided does contain samples but again you would need to code this change, if you did want to have it coded for you I could have our Business development department follow up on this question to provide information on developers.

        I look forward to being of further assistance.
        JesseNinjaTrader Customer Service

        Comment


          #5
          forexoil.

          Not knowing what kind of indicator you're trying to color code I am giving you two samples. One is for a colored region which allows a shade of 5 of each basic color. See attached image color2 (which contains a chart, code and indicator menu) and attached indicator called ColoredRegions.

          The other one is for a colored candle which allows up to 255 different shades of a basic color. See attached image color5 and attached indicator called CandleBarOpacity.

          Hope this helps.

          sandman
          Attached Files

          Comment


            #6
            create or modify color

            hey, i have a similar problem.
            i would like to add one custom color,

            colors in the library are available for all indicators, thats why i am not even sure if it is the code for one specific indicator that should be changed.
            anyway i couldnt change the code from what i've seen from the links of this post.
            is there any step by step tutorial for dummies that explains how to add one more color in the library of NT 7 ?
            a shade of gray that doesnt exists yet would be more than welcome... my background is black and the premarket is gray, but darkest available gray is not dark enough.

            thanks a lot

            Comment


              #7
              Hello CharlesAmd,

              Below is a link to a video that demonstrates how to use argb or hexidecimal values in a brush input.

              https://www.screencast.com/t/KNyVlqZqJR7Z
              Chelsea B.NinjaTrader Customer Service

              Comment


                #8
                Thank you Chelsea. Perfect, super simple tuto, so easy and ideal for dummies, works on NT7 too.

                Comment

                Latest Posts

                Collapse

                Topics Statistics Last Post
                Started by futurenick, Today, 06:26 AM
                1 response
                7 views
                0 likes
                Last Post nkhoi
                by nkhoi
                 
                Started by NinjaCustomer, Today, 12:29 PM
                0 responses
                1 view
                0 likes
                Last Post NinjaCustomer  
                Started by Steve L, Today, 11:32 AM
                0 responses
                2 views
                0 likes
                Last Post Steve L
                by Steve L
                 
                Started by prabbala, Today, 10:41 AM
                0 responses
                2 views
                0 likes
                Last Post prabbala  
                Started by bebbus, Today, 10:36 AM
                0 responses
                3 views
                0 likes
                Last Post bebbus
                by bebbus
                 
                Working...
                X