Announcement

Collapse
No announcement yet.

Partner 728x90

Collapse

Closing Workspace at market close

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

    Closing Workspace at market close

    Hi,
    Is it possible to close the workspace at market close without having the confirmation of "save workspace"

    this is what I'm using
    Gui.Tools.WorkspaceOptions.CloseWorkspace("name", false, false, false);

    please let me know

    #2
    Hello PWillard,

    I am not aware of any way to close the workspace without having the dialog to save. You could potentially handle that using an addon however I don't have a specific example I could provide. You could see the following post for an explanation of how you may close a dialog.

    https://ninjatrader.com/support/foru...rs#post1052911


    I look forward to being of further assistance.

    Comment


      #3
      hey Jesse,
      I tried your sample code but Core.Globals.AllWindows doesn't contain the MessageBox windows when trying to close workspace individually.
      I can see the window for saving workspace while trying to close NT8 but any way to detect the "close workspace"

      Code:
                      foreach (var eachWindow in Core.Globals.AllWindows) {
                          eachWindow.Dispatcher.InvokeAsync(() => {
                              Printer("Title: " + eachWindow.Title);
                          });
                      }

      Comment


        #4
        Hello PWillard,

        In that case I am not aware of any way you could automate the individual workspaces. There is currently not a supported api for controlling the workspaces or collecting events so I am not aware of any other means to detect the closing of the workspace.


        I Look forward to being of further assistance.

        Comment

        Latest Posts

        Collapse

        Topics Statistics Last Post
        Started by Geovanny Suaza, 02-11-2026, 06:32 PM
        0 responses
        647 views
        0 likes
        Last Post Geovanny Suaza  
        Started by Geovanny Suaza, 02-11-2026, 05:51 PM
        0 responses
        368 views
        1 like
        Last Post Geovanny Suaza  
        Started by Mindset, 02-09-2026, 11:44 AM
        0 responses
        108 views
        0 likes
        Last Post Mindset
        by Mindset
         
        Started by Geovanny Suaza, 02-02-2026, 12:30 PM
        0 responses
        571 views
        1 like
        Last Post Geovanny Suaza  
        Started by RFrosty, 01-28-2026, 06:49 PM
        0 responses
        573 views
        1 like
        Last Post RFrosty
        by RFrosty
         
        Working...
        X