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
    Brandon H.NinjaTrader Customer Service

    Comment


      #3
      Thanks, Ill give this a shot

      Comment

      Latest Posts

      Collapse

      Topics Statistics Last Post
      Started by xxzbill, 08-19-2020, 11:06 PM
      3 responses
      30 views
      0 likes
      Last Post NinjaTrader_RyanS  
      Started by xxzbill, Today, 10:02 AM
      1 response
      10 views
      0 likes
      Last Post s.kinra
      by s.kinra
       
      Started by tonynt, Today, 09:39 AM
      1 response
      19 views
      0 likes
      Last Post NinjaTrader_Zachary  
      Started by ervin, Today, 09:23 AM
      0 responses
      10 views
      0 likes
      Last Post ervin
      by ervin
       
      Started by HansLenders, Today, 09:15 AM
      1 response
      6 views
      0 likes
      Last Post NinjaTrader_PatrickG  
      Working...
      X