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 sjsj2732, Yesterday, 04:31 AM
          0 responses
          31 views
          0 likes
          Last Post sjsj2732  
          Started by NullPointStrategies, 03-13-2026, 05:17 AM
          0 responses
          286 views
          0 likes
          Last Post NullPointStrategies  
          Started by argusthome, 03-08-2026, 10:06 AM
          0 responses
          283 views
          0 likes
          Last Post argusthome  
          Started by NabilKhattabi, 03-06-2026, 11:18 AM
          0 responses
          133 views
          1 like
          Last Post NabilKhattabi  
          Started by Deep42, 03-06-2026, 12:28 AM
          0 responses
          91 views
          0 likes
          Last Post Deep42
          by Deep42
           
          Working...
          X