Announcement

Collapse
No announcement yet.

Partner 728x90

Collapse

Is there a way to make a plot value invisible?

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

    Is there a way to make a plot value invisible?

    I have a plot that depending on what's going on with another indicator I want to make invisible in some situations.

    Something along the lines of:

    if(something) {
    MyPlot[0].visible=false;
    }
    else MyPlot[0].visible=true;

    Any way to do this?

    #2
    Hello ErikY,

    Thank you for your post.

    You could make a Plot invisible by creating a method that loops through all bars on the chart that assigns Brushes.Transparent to PlotBrushes. The method would look something like this.

    private void MyMethod()
    {
    for (int i = 0; i < CurrentBar; i++)
    {
    PlotBrushes[0][i] = Brushes.Transparent;

    }
    Plots[0].Brush = Brushes.Transparent;
    }

    Please see the following help guide link below for more information.

    PlotBrushes - https://ninjatrader.com/support/help...lotbrushes.htm

    Plots - https://ninjatrader.com/support/help...nt8/?plots.htm

    Let us know if we may further assist
    <span class="name">Brandon H.</span><span class="title">NinjaTrader Customer Service</span><iframe name="sig" id="sigFrame" src="/support/forum/core/clientscript/Signature/signature.php" frameborder="0" border="0" cellspacing="0" style="border-style: none;width: 100%; height: 120px;"></iframe>

    Comment


      #3
      Thanks, Ill give this a shot

      Comment

      Latest Posts

      Collapse

      Topics Statistics Last Post
      Started by Geovanny Suaza, 02-11-2026, 06:32 PM
      0 responses
      646 views
      0 likes
      Last Post Geovanny Suaza  
      Started by Geovanny Suaza, 02-11-2026, 05:51 PM
      0 responses
      367 views
      1 like
      Last Post Geovanny Suaza  
      Started by Mindset, 02-09-2026, 11:44 AM
      0 responses
      107 views
      0 likes
      Last Post Mindset
      by Mindset
       
      Started by Geovanny Suaza, 02-02-2026, 12:30 PM
      0 responses
      569 views
      1 like
      Last Post Geovanny Suaza  
      Started by RFrosty, 01-28-2026, 06:49 PM
      0 responses
      573 views
      1 like
      Last Post RFrosty
      by RFrosty
       
      Working...
      X