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 judysamnt7, 03-13-2023, 09:11 AM
      4 responses
      59 views
      0 likes
      Last Post DynamicTest  
      Started by ScottWalsh, Today, 06:52 PM
      4 responses
      36 views
      0 likes
      Last Post ScottWalsh  
      Started by olisav57, Today, 07:39 PM
      0 responses
      7 views
      0 likes
      Last Post olisav57  
      Started by trilliantrader, Today, 03:01 PM
      2 responses
      21 views
      0 likes
      Last Post helpwanted  
      Started by cre8able, Today, 07:24 PM
      0 responses
      10 views
      0 likes
      Last Post cre8able  
      Working...
      X