Announcement

Collapse
No announcement yet.

Partner 728x90

Collapse

Timing of order.HasOverfill and OnOrderUpdate when IgoreOverfill = false

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

    Timing of order.HasOverfill and OnOrderUpdate when IgoreOverfill = false

    I'm writing my strat unmanaged. I know that if I set IgnoreOverfill = false, NinjaTrader will automatically close whatever orders were erroneously opened and kill the strat. Question is, is there time for OnOrderUpdate to receive notification of the overfill situation? I ask because I want to send an email/text message to inform me of the situation as quickly as possible. So can I test for order.HasOverfill and send a message before NinjaTrader kills my strat?

    #2
    Hello dweems,

    I will need to do a little research on this before I can provide a response.

    I appreciate your patience.
    Chelsea B.NinjaTrader Customer Service

    Comment


      #3
      Hello dweems,

      The issue here is being able to cause an overfill for testing which requires some specific circumstances to try and reproduce.

      However, we can easily cause a rejection order and see how this behaves when disabling the strategy.

      From testing, I am showing that the strategy will be disabled before OnOrderUpdate() has a chance to run and provide the error message.

      So the answer for this is no, there will not be time to send an email before the strategy is disabled.
      Chelsea B.NinjaTrader Customer Service

      Comment

      Latest Posts

      Collapse

      Topics Statistics Last Post
      Started by CarlTrading, 03-31-2026, 09:41 PM
      1 response
      79 views
      1 like
      Last Post NinjaTrader_ChelseaB  
      Started by CarlTrading, 04-01-2026, 02:41 AM
      0 responses
      40 views
      0 likes
      Last Post CarlTrading  
      Started by CaptainJack, 03-31-2026, 11:44 PM
      0 responses
      63 views
      2 likes
      Last Post CaptainJack  
      Started by CarlTrading, 03-30-2026, 11:51 AM
      0 responses
      63 views
      0 likes
      Last Post CarlTrading  
      Started by CarlTrading, 03-30-2026, 11:48 AM
      0 responses
      54 views
      0 likes
      Last Post CarlTrading  
      Working...
      X