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 CarlTrading, 03-31-2026, 09:41 PM
      1 response
      46 views
      0 likes
      Last Post NinjaTrader_ChelseaB  
      Started by CarlTrading, 04-01-2026, 02:41 AM
      0 responses
      22 views
      0 likes
      Last Post CarlTrading  
      Started by CaptainJack, 03-31-2026, 11:44 PM
      0 responses
      31 views
      1 like
      Last Post CaptainJack  
      Started by CarlTrading, 03-30-2026, 11:51 AM
      0 responses
      50 views
      0 likes
      Last Post CarlTrading  
      Started by CarlTrading, 03-30-2026, 11:48 AM
      0 responses
      42 views
      0 likes
      Last Post CarlTrading  
      Working...
      X