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

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 Mizzouman1, Today, 07:35 AM
          3 responses
          17 views
          0 likes
          Last Post NinjaTrader_Gaby  
          Started by RubenCazorla, Today, 09:07 AM
          2 responses
          13 views
          0 likes
          Last Post NinjaTrader_ChelseaB  
          Started by i019945nj, 12-14-2023, 06:41 AM
          7 responses
          82 views
          0 likes
          Last Post NinjaTrader_ChelseaB  
          Started by timmbbo, 07-05-2023, 10:21 PM
          4 responses
          158 views
          0 likes
          Last Post NinjaTrader_Gaby  
          Started by tkaboris, Today, 08:01 AM
          1 response
          8 views
          0 likes
          Last Post NinjaTrader_Gaby  
          Working...
          X