Announcement

Collapse
No announcement yet.

Partner 728x90

Collapse

Plot color reset default / all history? Hide plot?

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

    Plot color reset default / all history? Hide plot?

    Hello,

    After State.Default how can I hide a plot, including History...?

    (in State.Default I want to set the default colors...but then in State.Configure, depending on parameters, want to hide the plot, make it non-visible...)

    Still want it there in the background but not to show on the panel.

    Thx.

    #2
    Hi llanqui, thanks for posting. You can set the plot brush the Transparent when calling AddPlot() to hide the plot.

    AddPlot(Brushes.Transparent, "MyPlot");

    Kind regards,
    -ChrisL

    Comment


      #3
      Hi Chris,

      What about after the State.Default, how can I hide the entire plot?

      in State.Default I will give it a color, but under certain conditions, perhaps even with a button on the chart, I want to hide the entire plot...historical and real time....

      Thanks

      Comment


        #4
        Ok, this should work

        Plots[0].Brush = Brushes.Transparent;

        Comment


          #5
          Hi llanqui, you can also use the PlotBrushes[][] array to change the plot colors:
          https://ninjatrader.com/support/help...lotbrushes.htm

          Kind regards,
          -ChrisL

          Comment

          Latest Posts

          Collapse

          Topics Statistics Last Post
          Started by Geovanny Suaza, 02-11-2026, 06:32 PM
          0 responses
          576 views
          0 likes
          Last Post Geovanny Suaza  
          Started by Geovanny Suaza, 02-11-2026, 05:51 PM
          0 responses
          334 views
          1 like
          Last Post Geovanny Suaza  
          Started by Mindset, 02-09-2026, 11:44 AM
          0 responses
          101 views
          0 likes
          Last Post Mindset
          by Mindset
           
          Started by Geovanny Suaza, 02-02-2026, 12:30 PM
          0 responses
          553 views
          1 like
          Last Post Geovanny Suaza  
          Started by RFrosty, 01-28-2026, 06:49 PM
          0 responses
          551 views
          1 like
          Last Post RFrosty
          by RFrosty
           
          Working...
          X