Announcement

Collapse
No announcement yet.

Partner 728x90

Collapse

closing order error pop up windows

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

    closing order error pop up windows

    Is there a Ninjatrader 7 version of closing order error pop up windows like the one for NinjaTrader 8

    Getting this annoying pop up Buy stop or Buy stop limit orders cant be placed below the market. (this can happen on bar update with fast moving prices,

    I do handle the error in the ninjascript but need the pop up closed since this is an automated strategy.

    this ninhatrader 8 code comes up with errors on Ninja 7

    ControlCenter cc = NinjaTrader.Core.Globals.AllWindows.First(t => t is ControlCenter) as ControlCenter; if (cc != null) { cc.Dispatcher.InvokeAsync(() => { System.Windows.Controls.Button closeButton = cc.FindFirst("NTWindowButtonClose") as System.Windows.Controls.Button; if (closeButton != null) { System.Windows.Automation.Peers.ButtonAutomationPe er peer = new System.Windows.Automation.Peers.ButtonAutomationPe er(closeButton); System.Windows.Automation.Provider.IInvokeProvider invokeProv = peer.GetPattern(System.Windows.Automation.Peers.Pa tternInterface.Invoke) as System.Windows.Automation.Provider.IInvokeProvider ; if (invokeProv != null) invokeProv.Invoke(); } }); }


    #2
    Hello postalman,

    Thank you for your post.

    Automatically closing the error popups would not be supported or documented for either NinjaTrader 7 or NinjaTrader 8. As such this would be out of the scope of what we would be able to assist with. However, this thread will remain open for any community members to provide unsupported code advice.

    Please let us know if we may be of further assistance to you.

    Comment


      #3
      Thanks, any code would help to close these pop up windows. If I could get NinjaTrader.Core.Globals and ControlCenter versions for ninjatrader 7 I could convert that non standard Ninjatrader 8 code over, It is a shame to have all these pop up windows littering the desktop for automated trading. Maybe there is a external windows app that can close windows that show up.

      Comment

      Latest Posts

      Collapse

      Topics Statistics Last Post
      Started by Geovanny Suaza, 02-11-2026, 06:32 PM
      0 responses
      581 views
      0 likes
      Last Post Geovanny Suaza  
      Started by Geovanny Suaza, 02-11-2026, 05:51 PM
      0 responses
      336 views
      1 like
      Last Post Geovanny Suaza  
      Started by Mindset, 02-09-2026, 11:44 AM
      0 responses
      103 views
      0 likes
      Last Post Mindset
      by Mindset
       
      Started by Geovanny Suaza, 02-02-2026, 12:30 PM
      0 responses
      554 views
      1 like
      Last Post Geovanny Suaza  
      Started by RFrosty, 01-28-2026, 06:49 PM
      0 responses
      552 views
      1 like
      Last Post RFrosty
      by RFrosty
       
      Working...
      X