Announcement

Collapse
No announcement yet.

Partner 728x90

Collapse

Hide buttons when switching chart panels

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

    Hide buttons when switching chart panels

    Hello,

    I have added my custom indicator to the first chart, CL 10 range.
    On the same window (different tab) - I have other charts where my indicator is not added.

    This indicator adds 2 buttons to the panel above chart (where Chart Trader, Data Series and other buttons are).
    How can I make them disappear when I switch from the first chart to other and reappear when I go back to the chart where this indicator is added ?

    Regards,
    Darek

    #2
    Hello Darek,

    Thanks for your post.

    My colleague Chelsea has shared some examples for adding UI controls to a chart and uses the Chart Window's MainTabControl.SelectionChanged event handler to pick up on when the tab changes to make those items invisible when switching tabs.

    You could check the ChartToolbarCustomMenuExmaple for further direction.

    These scripts can be found here - https://ninjatrader.com/support/foru...considerations

    Please let us know if there is anything else we can do to help.

    Comment


      #3
      Hello Jim,

      That's exactly what I needed.

      Thank you
      Darek

      Comment

      Latest Posts

      Collapse

      Topics Statistics Last Post
      Started by Mindset, 04-21-2026, 06:46 AM
      0 responses
      44 views
      0 likes
      Last Post Mindset
      by Mindset
       
      Started by M4ndoo, 04-20-2026, 05:21 PM
      0 responses
      54 views
      0 likes
      Last Post M4ndoo
      by M4ndoo
       
      Started by M4ndoo, 04-19-2026, 05:54 PM
      0 responses
      34 views
      0 likes
      Last Post M4ndoo
      by M4ndoo
       
      Started by cmoran13, 04-16-2026, 01:02 PM
      0 responses
      95 views
      0 likes
      Last Post cmoran13  
      Started by PaulMohn, 04-10-2026, 11:11 AM
      0 responses
      57 views
      0 likes
      Last Post PaulMohn  
      Working...
      X