Announcement

Collapse
No announcement yet.

Partner 728x90

Collapse

Plot colors

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

    Plot colors

    Hey,

    I have this indicator that's a DLL so I can't see the code. It has one plot and it changes colors (red/green). I don't care how it was done although I can guess its some sort of over ride of the plot method. All I need to know is when the color changes. The plot its self is set at some random color like blue and that's what it shows in the settings, but the correct plot color is shown in the data box when I hover over the bars. My question is how does the data box access the plot color and can it be replicated in a strategy?

    Methods already tried: plotColors shows empty, Pen.color shows the random color (blue in this example).

    #2
    Hello Joe Jack,

    If you are trying to access the color of a plot inside of an Strategy you may view the following thread that will give an example.




    Otherwise, there is not a supported method you can read from to get the color of an indicator plot for a particular bar from another indicator.

    Let us know if we can be of further assistance.
    JCNinjaTrader Customer Service

    Comment


      #3
      Right, well like I said in the original post plot colors just returns Color [EMPTY]. Have any idea why that might be?. It doesn't mater if i use PlotColors[0][4],PlotColors[0][0], PlotColors[1][0], or PlotColors[1][1]. All the same result.

      Comment


        #4
        Hello Joe Jack,

        Are you trying to access this in a Strategy or and Indicator?
        JCNinjaTrader Customer Service

        Comment


          #5
          In a strategy.

          Comment


            #6
            You wouldn't be able to read the color directly.

            It would be required that the developer of the DLL you're using has exposed this data series/plot to be accessed programmatically. You'd also need to know what value satisfy the condition to change the plot colors

            if(myCustomAddOn().PlotSignal[0] > thresholdValue)
            // do something
            MatthewNinjaTrader Product Management

            Comment

            Latest Posts

            Collapse

            Topics Statistics Last Post
            Started by Geovanny Suaza, 02-11-2026, 06:32 PM
            0 responses
            656 views
            0 likes
            Last Post Geovanny Suaza  
            Started by Geovanny Suaza, 02-11-2026, 05:51 PM
            0 responses
            371 views
            1 like
            Last Post Geovanny Suaza  
            Started by Mindset, 02-09-2026, 11:44 AM
            0 responses
            109 views
            0 likes
            Last Post Mindset
            by Mindset
             
            Started by Geovanny Suaza, 02-02-2026, 12:30 PM
            0 responses
            574 views
            1 like
            Last Post Geovanny Suaza  
            Started by RFrosty, 01-28-2026, 06:49 PM
            0 responses
            579 views
            1 like
            Last Post RFrosty
            by RFrosty
             
            Working...
            X