Announcement

Collapse
No announcement yet.

Partner 728x90

Collapse

WorkspaceOptions

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

    WorkspaceOptions

    There is nothing in help about Gui.WorkspaceOptions and I need some help.

    Is there a way to test to see if a workspace is currently open though perhaps not the active one?

    I don't want to use OpenWorkspace(ws,true) if it is already open. In that instance SwitchWorkspace(ws,true) would suffice.

    After switching to a workspace so that it is now the active workspace, when I try to close it using CloseCurrentWorkspace(), the workspace does not close.

    Is there a resource for this? besides you guys.

    #2
    Hello snaphook,

    Unfortunately we do not provide support for workspace management through NinjaScript, but will leave this open for any community members to offer their input. There is one script in the file sharing section for this, but it looks like you are the author and I'm not aware of an additional one.
    Ryan M.NinjaTrader Customer Service

    Comment


      #3
      Well, rats. I got the CloseCurrentWorkspace working though I wish it had an override to auto save rather than seeing the save dialog.

      I still haven't figured out how to test for an already open workspace.

      Thanks for your response.

      Comment


        #4
        test

        snaphook

        I would love the answer to that one as well

        Comment


          #5
          Solved

          Use your hotkey manager to create a hot key combination and then simply use SendKeys command.

          eg to send Alt + F8
          SendKeys.Send("%{F8}");

          NB remember this will all fall apart if you have to reload NT, reinstall, upgrade etc so try and use the defaults where possible.

          Comment

          Latest Posts

          Collapse

          Topics Statistics Last Post
          Started by Geovanny Suaza, 02-11-2026, 06:32 PM
          0 responses
          566 views
          0 likes
          Last Post Geovanny Suaza  
          Started by Geovanny Suaza, 02-11-2026, 05:51 PM
          0 responses
          330 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
          547 views
          1 like
          Last Post Geovanny Suaza  
          Started by RFrosty, 01-28-2026, 06:49 PM
          0 responses
          548 views
          1 like
          Last Post RFrosty
          by RFrosty
           
          Working...
          X