Announcement

Collapse
No announcement yet.

Partner 728x90

Collapse

Open Workspace programmatically from AddOn

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

    Open Workspace programmatically from AddOn

    Hello there,

    I am trying to open a workspace from an AddOn with C#.

    The basic idea is: The user picks a workspace from a list, clicks a button, the workspace opens, we wait till it is fully loaded, run some automated tests with the workspaces and close the workspace again.

    I am currently struggling with the opening part. I could not find a method in the documentation which would allow me to open a workspace from an AddOn.

    As a workaround I tried to get the correct MenuItem and trigger its OnClick() method. I am able to fetch the MenuItem. According to Microsoft doc MenuItems should have a PerformClick() method to simulate a user click, but it cannot be found in Visual Studio.

    Does anyone has a suggestion on how to open a workspace programmatically?

    Thank you all in advance.

    #2
    Hello Devside_Victor,

    Thank you for your post.

    Opening a workspace from NinjaScript would not currently be supported.

    However, I have added a vote for you to a current feature request to support workspace management via NinjaScript. This request is being tracked under the number SFT-663.

    As with all feature requests, interest is tracked before implementation is considered, so we cannot offer an ETA or promise of fulfillment. If implemented, it will be noted in the Release Notes page of the Help Guide.

    Release Notes — https://ninjatrader.com/support/help...ease_notes.htm

    Please let us know if we may be of further assistance to you.

    Comment


      #3
      Hello Kate,

      Thank you for your reply and adding my vote for the feature request.

      Comment


        #4
        What is the proper way in NinjaTrader 8 to use NinjaTrader.Gui.Tools.WorkspaceOptions.SwitchToWorkspace(string workspaceName)? I created a test indicator that

        Comment

        Latest Posts

        Collapse

        Topics Statistics Last Post
        Started by Geovanny Suaza, 02-11-2026, 06:32 PM
        0 responses
        579 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
        554 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