Announcement

Collapse
No announcement yet.

Partner 728x90

Collapse

When Moving AddOns under folders, duplicate names are created in 'New' Menu

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

    When Moving AddOns under folders, duplicate names are created in 'New' Menu

    8.0.0.9 (Standard) - BETA
    1) Duplicate an AddOn by using 'Save As'
    2) Move both AddOns (the new one and the old one) to separate folders
    3) Fix all compilation errors and compile
    4) Open the 'New' Menu.

    Expected
    1) The 'New' Menu should contain AddOns named with the class name of the AddOn: e.g.: NinjaTrader.NinjaScript.AddOns.ZScoreWriter

    Actual
    1) It retains the old previously named class name.

    See attached screenshot.
    Attached Files

    #2
    Hello mmeninger,

    Thank you for writing in.

    Have you modified the menu item header of your duplicated AddOns?

    As it looks like you are using the Sample Add On provided on our forum, you will need to open the SampleAddon duplicated file and change the header.

    I have created a duplicate of SampleAddon called SampleAddon2 in my example.

    Example
    Code:
    protected override void OnWindowCreated(Window window)
    {
         .....
         newMenuItem = new NTMenuItem {Header = "Sample Add On Two", Style = Application.Current.TryFindResource("MainMenuItem") as Style};
         .....
    }
    Once you have compiled, you will see the new name.
    Attached Files
    Zachary G.NinjaTrader Customer Service

    Comment

    Latest Posts

    Collapse

    Topics Statistics Last Post
    Started by CaptainJack, 05-29-2026, 05:09 AM
    0 responses
    45 views
    0 likes
    Last Post CaptainJack  
    Started by CaptainJack, 05-29-2026, 12:02 AM
    0 responses
    30 views
    0 likes
    Last Post CaptainJack  
    Started by charlesugo_1, 05-26-2026, 05:03 PM
    0 responses
    99 views
    0 likes
    Last Post charlesugo_1  
    Started by DannyP96, 05-18-2026, 02:38 PM
    1 response
    177 views
    0 likes
    Last Post NinjaTrader_ChelseaB  
    Started by CarlTrading, 05-11-2026, 05:56 AM
    0 responses
    170 views
    0 likes
    Last Post CarlTrading  
    Working...
    X