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 CaptainJack, 05-29-2026, 05:09 AM
      0 responses
      163 views
      0 likes
      Last Post CaptainJack  
      Started by CaptainJack, 05-29-2026, 12:02 AM
      0 responses
      82 views
      0 likes
      Last Post CaptainJack  
      Started by charlesugo_1, 05-26-2026, 05:03 PM
      0 responses
      125 views
      0 likes
      Last Post charlesugo_1  
      Started by DannyP96, 05-18-2026, 02:38 PM
      1 response
      206 views
      0 likes
      Last Post NinjaTrader_ChelseaB  
      Started by CarlTrading, 05-11-2026, 05:56 AM
      0 responses
      184 views
      0 likes
      Last Post CarlTrading  
      Working...
      X