-Thanks
Announcement
Collapse
No announcement yet.
Partner 728x90
Collapse
NinjaTrader
Cumlative Bid/Ask
Collapse
X
-
You would have to accumulate the book yourself. http://www.ninjatrader-support2.com/...ead.php?t=5965Josh P.NinjaTrader Customer Service
Comment
-
see attached.. i just modified the samplemarketdepth example to sum the bid and ask values. lines 142-151 contain the main logic.Originally posted by velocity View Posthas anyone done this and is willing to share the code?Attached Files
Comment
-
-
i think this has to do with the fact that the CME now provides 10 ask and bid levels. NT does not display these extra levels yet.Originally posted by velocity View PostAuspiv,
Thank you so much for adding the code. But I have a question for you.
See attachment.
-Thanks again.
if you want to limit it to the first few levels, you can change the logic. replace ask[bid]Rows.Count with how ever many levels you want (keeping in mind the index starts at zero, so if you just want the first 5 levels, replace askRows.Count with 5)
Code:for(idx = 0; idx < askRows.Count; idx++)
Comment
Latest Posts
Collapse
| Topics | Statistics | Last Post | ||
|---|---|---|---|---|
|
Started by Geovanny Suaza, 02-11-2026, 06:32 PM
|
0 responses
576 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
553 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