Announcement

Collapse
No announcement yet.

Partner 728x90

Collapse

How to get plot color from 3rd party indicator

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

    How to get plot color from 3rd party indicator

    Hello,

    I am developing a strategy and want to be able to pull color value of the plot that is drawn by 3rd party indicator.

    I am able to get a list of indicators from the chart and plot's values, however, it seems that color is drawn based on DirectX or or some kind of brushes... so I am not able to get precise color of these...

    Any suggestion on how to get currently plotted color (color can change intrabar)...

    Thanks


    #2
    Hello music_p13,

    If its an actual plot added with AddPlot() the plot color will be Plots[plot index].Brush.
    If this is a specific bar color the color will be PlotBrushes[plot index].

    If this is rendered with SharpDX the value will only be available if the original programmer made a public property for host scripts to access. Contact the original author to inquire how to use their software.
    Chelsea B.NinjaTrader Customer Service

    Comment


      #3
      I am afraid it is the second case... Thanks

      Comment

      Latest Posts

      Collapse

      Topics Statistics Last Post
      Started by Mindset, 04-21-2026, 06:46 AM
      0 responses
      87 views
      0 likes
      Last Post Mindset
      by Mindset
       
      Started by M4ndoo, 04-20-2026, 05:21 PM
      0 responses
      128 views
      0 likes
      Last Post M4ndoo
      by M4ndoo
       
      Started by M4ndoo, 04-19-2026, 05:54 PM
      0 responses
      65 views
      0 likes
      Last Post M4ndoo
      by M4ndoo
       
      Started by cmoran13, 04-16-2026, 01:02 PM
      0 responses
      117 views
      0 likes
      Last Post cmoran13  
      Started by PaulMohn, 04-10-2026, 11:11 AM
      0 responses
      67 views
      0 likes
      Last Post PaulMohn  
      Working...
      X