Announcement

Collapse
No announcement yet.

Partner 728x90

Collapse

toolbar removal

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

    toolbar removal

    I created a toolbar and it works great but if i remove the indicator it will not disappear. how do you remove toolbar objects in State == State.Terminated

    #2
    Hello ballboy11,

    Thanks for your post.

    You will have to keep track of all the UI modifications you make so you can reverse them when the script is removed.

    Please see my colleague Chelsea's examples that demonstrate everything that is necessary when performing UI modifications. You will see that Chelsea keeps track of the UI modifications made, and then in the script's State.Terminated state, he checks if ChartControl is not null and then calls his DisposeWPFControls() method. We can also see that these examples will not have issue adding/removing.

    Hello All, Moving forward this will be maintained in the help guide reference samples and no longer maintained on the forum. Creating Chart WPF (UI) Modifications from an Indicator - https://ninjatrader.com/support/help...ui)-modifi.htm (https://ninjatrader.com/support/helpGuides/nt8/creating-chart-wpf-(ui)-modifi.htm) I've


    We look forward to assisting.

    Comment

    Latest Posts

    Collapse

    Topics Statistics Last Post
    Started by Geovanny Suaza, 02-11-2026, 06:32 PM
    0 responses
    563 views
    0 likes
    Last Post Geovanny Suaza  
    Started by Geovanny Suaza, 02-11-2026, 05:51 PM
    0 responses
    329 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
    547 views
    1 like
    Last Post Geovanny Suaza  
    Started by RFrosty, 01-28-2026, 06:49 PM
    0 responses
    547 views
    1 like
    Last Post RFrosty
    by RFrosty
     
    Working...
    X