Announcement

Collapse
No announcement yet.

Partner 728x90

Collapse

Hide plots

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

    Hide plots

    I would like to hide the plots from being shown on a chart through code - is there a configure option for that ?

    #2
    Hello WHICKED,

    To hide plots you can set their color to Transparent, the platform checks for that brush specifically and will hide the plots from the UI when that is used. An alternative would be to add the OnRender override to the indicator and then do not call base.OnRender, by not calling base.OnRender the plots are not rendered.

    I look forward to being of further assistance.

    Comment


      #3
      Doing the transparent does not stop the plots from showing on the chart - this is in a separate data window (below the price chart).

      Is there another option ?

      Comment


        #4
        Hello WHICKED,

        The default behavior for transparent plots is to be hidden, there is a note about that in the following page. If that is not working please try changing ShowTransparentPlotsInDataBox to false and then re apply the script.



        The other option would be the other item it had noted:
        An alternative would be to add the OnRender override to the indicator and then do not call base.OnRender, by not calling base.OnRender the plots are not rendered.
        https://ninjatrader.com/support/help...htsub=onrender
        You still get the price marker in that use case so you owuld have to still use a transparent plot or turn off the indicators price markers.


        Comment


          #5
          Click image for larger version

Name:	2022-03-11_16-13-07.png
Views:	288
Size:	50.9 KB
ID:	1193478

          the plot is still shown down below - all the plots are transparent and I added the OnRender method as well but it still shows up. There are no price markers etc.

          Code:
          AddPlot(new Stroke(Brushes.Transparent, 1)
          Code:
          IsOverlay = true;
          DisplayInDataBox = false;
          DrawOnPricePanel = true;
          DrawHorizontalGridLines = false;
          DrawVerticalGridLines = false;
          PaintPriceMarkers = false;
          ShowTransparentPlotsInDataBox = false;
          Code:
          protected override void OnRender(ChartControl chartControl, ChartScale chartScale)
          {
          }

          Comment


            #6
            Hello WHICKED,

            What you have pointed to in the image is the indicators label. If you want to hide that you need to either delete the text in the Label when applying the indicator or override the displayname https://ninjatrader.com/support/help...ub=displayname

            Comment

            Latest Posts

            Collapse

            Topics Statistics Last Post
            Started by Geovanny Suaza, 02-11-2026, 06:32 PM
            0 responses
            598 views
            0 likes
            Last Post Geovanny Suaza  
            Started by Geovanny Suaza, 02-11-2026, 05:51 PM
            0 responses
            343 views
            1 like
            Last Post Geovanny Suaza  
            Started by Mindset, 02-09-2026, 11:44 AM
            0 responses
            103 views
            0 likes
            Last Post Mindset
            by Mindset
             
            Started by Geovanny Suaza, 02-02-2026, 12:30 PM
            0 responses
            557 views
            1 like
            Last Post Geovanny Suaza  
            Started by RFrosty, 01-28-2026, 06:49 PM
            0 responses
            555 views
            1 like
            Last Post RFrosty
            by RFrosty
             
            Working...
            X