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 NullPointStrategies, Today, 05:17 AM
      0 responses
      50 views
      0 likes
      Last Post NullPointStrategies  
      Started by argusthome, 03-08-2026, 10:06 AM
      0 responses
      126 views
      0 likes
      Last Post argusthome  
      Started by NabilKhattabi, 03-06-2026, 11:18 AM
      0 responses
      69 views
      0 likes
      Last Post NabilKhattabi  
      Started by Deep42, 03-06-2026, 12:28 AM
      0 responses
      42 views
      0 likes
      Last Post Deep42
      by Deep42
       
      Started by TheRealMorford, 03-05-2026, 06:15 PM
      0 responses
      46 views
      0 likes
      Last Post TheRealMorford  
      Working...
      X