Announcement

Collapse

Looking for a User App or Add-On built by the NinjaTrader community?

Visit NinjaTrader EcoSystem and our free User App Share!

Have a question for the NinjaScript developer community? Open a new thread in our NinjaScript File Sharing Discussion Forum!
See more
See less

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 fx.practic, 10-15-2013, 12:53 AM
        5 responses
        5,404 views
        0 likes
        Last Post Bidder
        by Bidder
         
        Started by Shai Samuel, 07-02-2022, 02:46 PM
        4 responses
        95 views
        0 likes
        Last Post Bidder
        by Bidder
         
        Started by DJ888, Yesterday, 10:57 PM
        0 responses
        8 views
        0 likes
        Last Post DJ888
        by DJ888
         
        Started by MacDad, 02-25-2024, 11:48 PM
        7 responses
        159 views
        0 likes
        Last Post loganjarosz123  
        Started by Belfortbucks, Yesterday, 09:29 PM
        0 responses
        8 views
        0 likes
        Last Post Belfortbucks  
        Working...
        X