Announcement

Collapse
No announcement yet.

Partner 728x90

Collapse

Hiding/Unhiding chart bars

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

    Hiding/Unhiding chart bars

    Hi Folks:

    I am looking to add the option to hide/unhide bars programmatically from my indicator to increase usability. I used the transparency trick to hide them, but I think is lacking cause it doesn't hides them entirely with kagi lines, line on close, mountain and with point and figure. So I am looking to:

    1 - hide everything properly
    2 - best approach to unhide programmatically everything

    Regards

    #2
    Hello waldoalvarez,

    It is possible to set the ChartBars.Properties.ChartStyle.IsVisible to false to hide the char bars. (Unfortunately, the IsTransparent is read only)

    There would need to be some kind of series visible for the time and price scales to work. This could be an indicator plot or a data series.

    You could also set the Stroke and Stroke2 brush if you would like to hide Kagi, or the UpBrush and DownBrush to hide mountain, line on close, and point and figure.
    if (ChartBars.Properties.ChartStyleType == ChartStyleType.KagiLine)
    ChartBars.Properties.ChartStyle.Stroke2.Brush = Brushes.Transparent;
    Chelsea B.NinjaTrader Customer Service

    Comment


      #3
      Hi Chelsea, Thanks for your reply. I added two transparent plots with high and low. This mostly works but unfortunately when the chart is in autosize mode (pressing the F button) it totally fails giving me a chart with not scale (starting at 0 and 0.1 value visible). Not sure if this is a bug or I should do something else. If I drag the price axis (and the F button appears) it works perfectly.

      Comment


        #4
        Hello waldoalvarez,

        Plots that are transparent will not be plotted. So they will not affect the time and price scales.

        There would need to be some kind of series visible for the time and price scales to work. This could be an indicator plot or a data series.
        Chelsea B.NinjaTrader Customer Service

        Comment


          #5
          Thank you very much Chelsea!

          Comment

          Latest Posts

          Collapse

          Topics Statistics Last Post
          Started by Geovanny Suaza, 02-11-2026, 06:32 PM
          0 responses
          576 views
          0 likes
          Last Post Geovanny Suaza  
          Started by Geovanny Suaza, 02-11-2026, 05:51 PM
          0 responses
          334 views
          1 like
          Last Post Geovanny Suaza  
          Started by Mindset, 02-09-2026, 11:44 AM
          0 responses
          101 views
          0 likes
          Last Post Mindset
          by Mindset
           
          Started by Geovanny Suaza, 02-02-2026, 12:30 PM
          0 responses
          553 views
          1 like
          Last Post Geovanny Suaza  
          Started by RFrosty, 01-28-2026, 06:49 PM
          0 responses
          551 views
          1 like
          Last Post RFrosty
          by RFrosty
           
          Working...
          X