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 NullPointStrategies, Yesterday, 05:17 AM
      0 responses
      56 views
      0 likes
      Last Post NullPointStrategies  
      Started by argusthome, 03-08-2026, 10:06 AM
      0 responses
      132 views
      0 likes
      Last Post argusthome  
      Started by NabilKhattabi, 03-06-2026, 11:18 AM
      0 responses
      73 views
      0 likes
      Last Post NabilKhattabi  
      Started by Deep42, 03-06-2026, 12:28 AM
      0 responses
      45 views
      0 likes
      Last Post Deep42
      by Deep42
       
      Started by TheRealMorford, 03-05-2026, 06:15 PM
      0 responses
      49 views
      0 likes
      Last Post TheRealMorford  
      Working...
      X