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.
    Kate W.NinjaTrader Customer Service

    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 herzogvladimir2, Yesterday, 08:10 PM
        0 responses
        15 views
        0 likes
        Last Post herzogvladimir2  
        Started by giogio1, 04-13-2025, 01:42 AM
        2 responses
        39 views
        0 likes
        Last Post giogio1
        by giogio1
         
        Started by mmenigma, 01-23-2024, 09:37 AM
        1 response
        92 views
        0 likes
        Last Post Nin8aTrender  
        Started by wbayne333, 02-22-2021, 01:18 PM
        6 responses
        415 views
        0 likes
        Last Post Nin8aTrender  
        Started by gtheaded, 07-03-2020, 03:47 PM
        3 responses
        374 views
        0 likes
        Last Post Nin8aTrender  
        Working...
        X