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 Mindset, 04-21-2026, 06:46 AM
          0 responses
          63 views
          0 likes
          Last Post Mindset
          by Mindset
           
          Started by M4ndoo, 04-20-2026, 05:21 PM
          0 responses
          91 views
          0 likes
          Last Post M4ndoo
          by M4ndoo
           
          Started by M4ndoo, 04-19-2026, 05:54 PM
          0 responses
          48 views
          0 likes
          Last Post M4ndoo
          by M4ndoo
           
          Started by cmoran13, 04-16-2026, 01:02 PM
          0 responses
          105 views
          0 likes
          Last Post cmoran13  
          Started by PaulMohn, 04-10-2026, 11:11 AM
          0 responses
          63 views
          0 likes
          Last Post PaulMohn  
          Working...
          X