Announcement

Collapse
No announcement yet.

Partner 728x90

Collapse

ShowTransparentPlotsInDataBox = false not working

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

    ShowTransparentPlotsInDataBox = false not working

    I created an indicator that has 2 plots. I have bool input parameter to display plot #2 or not based on this boolean parameter. When the user does not want to see plot #2 I set the plot to transparent. In this case, I do not want to display the values for plot #2 in the DataBox. When I set ShowTransparentPlotsInDataBox to false, it's switching that line in the DataBox to black and displays n/a for values. How can I enforce the rows in the DataBox for this transparent plot to NOT appear at all?

    #2
    Hello seblife,

    I am not able to reproduce.

    Attached is a test script.

    Plots[0] started red and is set to transparent and isn't showing in the DataBox. Plots[1] is green and is showing in the databox.
    Attached Files
    Chelsea B.NinjaTrader Customer Service

    Comment


      #3
      Thanks to your code example, I realized my mistake. I was setting the color in the OnBarUpdate() method instead of the OnStateChange() method. Everything works perfectly now.

      Comment


        #4
        Hello seblife,

        I don't think that is the issue.

        I moved the code to CurrentBar 0 in OnBarUpdate and the behavior is the same.
        Attached Files
        Chelsea B.NinjaTrader Customer Service

        Comment


          #5
          Very weird, I am trying to put back my code the way it was to demonstrate it to you an it is no longer doing this behavior. I do not know what to say. At least my problem is fixed. Thank you

          Comment

          Latest Posts

          Collapse

          Topics Statistics Last Post
          Started by Geovanny Suaza, 02-11-2026, 06:32 PM
          0 responses
          650 views
          0 likes
          Last Post Geovanny Suaza  
          Started by Geovanny Suaza, 02-11-2026, 05:51 PM
          0 responses
          370 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
          577 views
          1 like
          Last Post RFrosty
          by RFrosty
           
          Working...
          X