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 DJ888, 04-16-2024, 06:09 PM
        6 responses
        18 views
        0 likes
        Last Post DJ888
        by DJ888
         
        Started by Jon17, Today, 04:33 PM
        0 responses
        1 view
        0 likes
        Last Post Jon17
        by Jon17
         
        Started by Javierw.ok, Today, 04:12 PM
        0 responses
        6 views
        0 likes
        Last Post Javierw.ok  
        Started by timmbbo, Today, 08:59 AM
        2 responses
        10 views
        0 likes
        Last Post bltdavid  
        Started by alifarahani, Today, 09:40 AM
        6 responses
        41 views
        0 likes
        Last Post alifarahani  
        Working...
        X