-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 sjsj2732, Yesterday, 04:31 AM
|
0 responses
31 views
0 likes
|
Last Post
by sjsj2732
Yesterday, 04:31 AM
|
||
|
Started by NullPointStrategies, 03-13-2026, 05:17 AM
|
0 responses
286 views
0 likes
|
Last Post
|
||
|
Started by argusthome, 03-08-2026, 10:06 AM
|
0 responses
283 views
0 likes
|
Last Post
by argusthome
03-08-2026, 10:06 AM
|
||
|
Started by NabilKhattabi, 03-06-2026, 11:18 AM
|
0 responses
132 views
1 like
|
Last Post
|
||
|
Started by Deep42, 03-06-2026, 12:28 AM
|
0 responses
91 views
0 likes
|
Last Post
by Deep42
03-06-2026, 12:28 AM
|

Comment