Announcement
Collapse
No announcement yet.
Partner 728x90
Collapse
NinjaTrader
queue position.
Collapse
X
-
The JigSaw DOM does this. Perhaps it snapshots then counts down?Originally posted by NinjaTrader_ChelseaB View PostHello JimB17,
From my understanding the queue position is not reported back for working orders from the brokerage to NinjaTrader.
Would you like to submit a feature request for NinjaTrader to estimate a queue position for a working order?
Comment
-
I don't think you can get a "REAL" queue position, but you could get a worst case scenario queue position. The reason why a real position is difficult to estimate is that once you are in queue, if someone cancels an order at your price level, you don't know if the order that was canceled was in front of your position or behind.
This is how I would estimate the queue:
1) When you place an order, check the state of the order. Once you get an event that says the order is working you need to check the depth (queue) of the price level you placed the order at. You could actually check the queue before, as you submit the order and then compare both results. You can average the before and after queues, or take the worst case scenario (after).
2) Then on OnMarketData you need to read all of the trades that happen at that price level and adjust your queue accordingly. You can also read if someone canceled an order at that price level, but you wouldn't know if that order was in front or not, so I would personally not adjust and assume worst case scenario.
I wouldn't mind building it if someone would try it live and tell me how accurate it is...
Cheers!
Comment
-
Thanks for the reply. Yes I believe you are correct both with the approach and pitfalls of the suggested solution. Also believe sometimes the queue can be circumvented with fill priorities but at least the task can be approached as you suggest.Originally posted by jortuzar View PostI don't think you can get a "REAL" queue position, but you could get a worst case scenario queue position. The reason why a real position is difficult to estimate is that once you are in queue, if someone cancels an order at your price level, you don't know if the order that was canceled was in front of your position or behind.
Cheers!
I've been working on other stuff but will get back to this sometime soon. It is pretty straightforward to implement already monitoring all the vital bits just need a touch o' logic.
Thanks again!
Comment
-
NT8 Super DOM can return an APQ. You just have to dig until you find where NT8 holds the relevant information.Originally posted by JimB17 View PostThanks for the reply. Yes I believe you are correct both with the approach and pitfalls of the suggested solution. Also believe sometimes the queue can be circumvented with fill priorities but at least the task can be approached as you suggest.
I've been working on other stuff but will get back to this sometime soon. It is pretty straightforward to implement already monitoring all the vital bits just need a touch o' logic.
Thanks again!

(4th bullet/fold on page)
Comment
-
It's since June 2017 that CME released the MBO (market by order) that provides a real, not estimated position in queue.Originally posted by NinjaTrader_ChelseaB View PostHello JimB17,
From my understanding the queue position is not reported back for working orders from the brokerage to NinjaTrader.
Would you like to submit a feature request for NinjaTrader to estimate a queue position for a working order?
Learn more about market by order (MBO) an order-based data feed which provides the ability to view individual queue position and more.
When Ninjatrader 8 will support that feature?
Comment
Latest Posts
Collapse
| Topics | Statistics | Last Post | ||
|---|---|---|---|---|
|
Started by Geovanny Suaza, 02-11-2026, 06:32 PM
|
0 responses
579 views
0 likes
|
Last Post
|
||
|
Started by Geovanny Suaza, 02-11-2026, 05:51 PM
|
0 responses
334 views
1 like
|
Last Post
|
||
|
Started by Mindset, 02-09-2026, 11:44 AM
|
0 responses
101 views
0 likes
|
Last Post
by Mindset
02-09-2026, 11:44 AM
|
||
|
Started by Geovanny Suaza, 02-02-2026, 12:30 PM
|
0 responses
554 views
1 like
|
Last Post
|
||
|
Started by RFrosty, 01-28-2026, 06:49 PM
|
0 responses
551 views
1 like
|
Last Post
by RFrosty
01-28-2026, 06:49 PM
|

Comment