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

RGB Color Options

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

    RGB Color Options

    Is there a way to tap into the Custom color palette vs the Web color palette when assigning colors to bars and backgrounds without the need to override the Plot method. I would like to display a marginally lighter darkdarkgreen color (RGB 0, 64, 0) as a backcolor on a black chart background but the default Web color palette that is available when using the Color method is not dark enough.

    If this is not available, it would seem to be a good idea to add an RGBColor(R, G, B) method to the enhancement list for all colorable chart objects.

    Thanks,

    Whitmark
    Last edited by whitmark; 10-29-2007, 07:20 AM.
    whitmark
    NinjaTrader Ecosystem Vendor - Whitmark Development

    #2
    Not sure I follow. Please check out the Color class in .NET and how to set it to your desired RGB values.

    Comment


      #3
      Color.FromArgb Method

      ah . . . got it. Orignially I used intellisense and thought it was only offering color names, but now I see it. Thanks.

      Code:
      Example:  BackColorAll = Color.FromArgb(0, 64, 0);
      whitmark
      NinjaTrader Ecosystem Vendor - Whitmark Development

      Comment


        #4
        Glad it's resolved for you.

        Comment

        Latest Posts

        Collapse

        Topics Statistics Last Post
        Started by SnailHorn, Today, 10:49 PM
        0 responses
        7 views
        0 likes
        Last Post SnailHorn  
        Started by naanku, Today, 07:25 PM
        0 responses
        8 views
        0 likes
        Last Post naanku
        by naanku
         
        Started by milfocs, Today, 07:23 PM
        0 responses
        6 views
        0 likes
        Last Post milfocs
        by milfocs
         
        Started by PaulMohn, Today, 06:59 PM
        0 responses
        8 views
        0 likes
        Last Post PaulMohn  
        Started by bortz, 11-06-2023, 08:04 AM
        48 responses
        1,756 views
        0 likes
        Last Post carnitron  
        Working...
        X