Announcement
Collapse
No announcement yet.
Partner 728x90
Collapse
NinjaTrader
How do I trap Order Ignore error messages
Collapse
X
-
Hello MarkF60,
I recall a previous thread where you had brought up running into this here: https://ninjatrader.com/support/foru...ategy-analyzer
For the thread's reference, this is most often seen with Standard Order Fill Resolution where the order fills are estimated using "virtual bars" and formation of the virtual bars indicate that the order cannot be filled with that price action. Setting Order Fill Resolution to High and using a 1 tick data series as the fill series or submitting orders to a single tick data series would be a good way to avoid those types of errors.
The errors would be constituted as rejections where the order is submitted to the other side of the market when testing realtime data. They would be handled with realtime data as order rejections in OnOrderUpdate if you use RealtimeErrorHandling, but there is not a way to handle order rejections in a backtest. Other factors are involved with realtime testing, like simulated delays on the Sim101 account, and actual delays seen when the order is submitted to a live or paper trading account, so the issue may be missed if you tried reproducing with mimicked realtime data in the Playback Connection. This also would not be an apples to apples approach for the issue as the error is specific to backtesting.
I gave your test script another test to see if I could reproduce the order submissions in question, and I still cannot reproduce those trades or any trades within the time frame suggested. The script was also ~1200 lines of code, despite your proprietary signal logic being excluded.
The best way for us to look into and advise on errors like this where High Order Fill Resolution or submitting orders to a single tick data series does not resolve is if we receive a minimal strategy that simply looks for a specific bar or time to submit an order so the exact order submission in question is reproduced. Similar to the test script I have provided in the linked thread. We would then need to know your data provider, as well as your time zone so we can perform the same test and give our analysis.
I did not receive this in the previous thread, but if you could provide the requested simplified test strategy with the information requested above, I will be more than happy to take another look and give my analysis.
We look forward to assisting.
-
ARE YOU USING SubmitOrderUnmanaged ??
and also the OrderType == StopMarket ??
Leave a comment:
-
You can enable tradeorder.
Code:protected override void OnStateChange() { if (State == State.SetDefaults) { TraceOrders = true; } }
Leave a comment:
-
How do I trap Order Ignore error messages
How do I trap these kinds of errors:
"Strategy 'MOSTStrategy/217158595': An order has been ignored since the stop price ‘13065.5’ near the bar stamped ‘23/03/2021 18:06:19’ is invalid based on the price range of the bar. This is an invalid order and subsequent orders may also be ignored."
This does not trigger the OnOrderUpdate Event handler so I can not catch this error here. What event handler should I be checking?Tags: None
Latest Posts
Collapse
Topics | Statistics | Last Post | ||
---|---|---|---|---|
Started by tonyfalzarano, 10-21-2024, 09:53 PM
|
2 responses
137 views
0 likes
|
Last Post
![]()
by DonnyJMiller
Today, 05:52 AM
|
||
Started by Marble, 03-20-2025, 05:00 AM
|
8 responses
48 views
0 likes
|
Last Post
|
||
Started by PopovDS, 03-21-2025, 10:05 AM
|
3 responses
38 views
0 likes
|
Last Post
|
||
Started by BideDeff, Today, 04:51 AM
|
0 responses
3 views
0 likes
|
Last Post
![]()
by BideDeff
Today, 04:51 AM
|
||
Started by ArialiefNervePain, Today, 04:30 AM
|
0 responses
4 views
0 likes
|
Last Post
![]() |
Leave a comment: