Announcement

Collapse
No announcement yet.

Partner 728x90

Collapse

Color from SharpDX.Direct2D1.Brush

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

    Color from SharpDX.Direct2D1.Brush

    Hi

    Is there some way to get Color info(name or rgb) from SharpDX.Direct2D1.Brush object?

    I want to check if ChartControl.GetBarOverrideBrush(ChartBars,Current Bars[0]) contains green color for example.

    #2
    Hello blekdzhon,

    Thank you for your post.

    I need to do some double checking on this for you. I will have a response for you tomorrow.

    Thanks in advance; I look forward to assisting you further.

    Comment


      #3
      Hello

      I've figured it out. It is possible to get SharpDX.Color4 from object properties using Reflection.

      It helped me to get the color of the candles that were overrided by another indicator.

      Previously I founded posts that it is impossible.

      Thank you.

      Comment


        #4
        It would be useful for other users if you could post that code or tell us how you did it

        Comment

        Latest Posts

        Collapse

        Topics Statistics Last Post
        Started by CarlTrading, 03-31-2026, 09:41 PM
        1 response
        73 views
        0 likes
        Last Post NinjaTrader_ChelseaB  
        Started by CarlTrading, 04-01-2026, 02:41 AM
        0 responses
        39 views
        0 likes
        Last Post CarlTrading  
        Started by CaptainJack, 03-31-2026, 11:44 PM
        0 responses
        63 views
        2 likes
        Last Post CaptainJack  
        Started by CarlTrading, 03-30-2026, 11:51 AM
        0 responses
        63 views
        0 likes
        Last Post CarlTrading  
        Started by CarlTrading, 03-30-2026, 11:48 AM
        0 responses
        53 views
        0 likes
        Last Post CarlTrading  
        Working...
        X