Announcement
Collapse
No announcement yet.
Partner 728x90
Collapse
NinjaTrader
Timing of order.HasOverfill and OnOrderUpdate when IgoreOverfill = false
Collapse
X
-
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?Tags: None
-
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
|
||
|
Started by argusthome, 03-08-2026, 10:06 AM
|
0 responses
132 views
0 likes
|
Last Post
by argusthome
03-08-2026, 10:06 AM
|
||
|
Started by NabilKhattabi, 03-06-2026, 11:18 AM
|
0 responses
73 views
0 likes
|
Last Post
|
||
|
Started by Deep42, 03-06-2026, 12:28 AM
|
0 responses
45 views
0 likes
|
Last Post
by Deep42
03-06-2026, 12:28 AM
|
||
|
Started by TheRealMorford, 03-05-2026, 06:15 PM
|
0 responses
49 views
0 likes
|
Last Post
|

Comment