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 CarlTrading, 03-31-2026, 09:41 PM
          1 response
          80 views
          1 like
          Last Post NinjaTrader_ChelseaB  
          Started by CarlTrading, 04-01-2026, 02:41 AM
          0 responses
          40 views
          0 likes
          Last Post CarlTrading  
          Started by CaptainJack, 03-31-2026, 11:44 PM
          0 responses
          63 views
          2 likes
          Last Post CaptainJack  
          Started by CarlTrading, 03-30-2026, 11:51 AM
          0 responses
          63 views
          0 likes
          Last Post CarlTrading  
          Started by CarlTrading, 03-30-2026, 11:48 AM
          0 responses
          54 views
          0 likes
          Last Post CarlTrading  
          Working...
          X