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 helpwanted, Today, 03:06 AM
    1 response
    14 views
    0 likes
    Last Post sarafuenonly123  
    Started by Brevo, Today, 01:45 AM
    0 responses
    11 views
    0 likes
    Last Post Brevo
    by Brevo
     
    Started by aussugardefender, Today, 01:07 AM
    0 responses
    6 views
    0 likes
    Last Post aussugardefender  
    Started by pvincent, 06-23-2022, 12:53 PM
    14 responses
    244 views
    0 likes
    Last Post Nyman
    by Nyman
     
    Started by TraderG23, 12-08-2023, 07:56 AM
    9 responses
    387 views
    1 like
    Last Post Gavini
    by Gavini
     
    Working...
    X