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

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.
    Kate W.NinjaTrader Customer Service

    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 cre8able, 02-11-2023, 05:43 PM
      3 responses
      234 views
      0 likes
      Last Post rhubear
      by rhubear
       
      Started by frslvr, 04-11-2024, 07:26 AM
      8 responses
      111 views
      1 like
      Last Post NinjaTrader_BrandonH  
      Started by stafe, 04-15-2024, 08:34 PM
      10 responses
      44 views
      0 likes
      Last Post stafe
      by stafe
       
      Started by rocketman7, Today, 09:41 AM
      3 responses
      11 views
      0 likes
      Last Post NinjaTrader_Jesse  
      Started by traderqz, Today, 09:44 AM
      2 responses
      10 views
      0 likes
      Last Post NinjaTrader_Gaby  
      Working...
      X