Can I get the Cumulative Depth values of buy and sell from SuperDOM and put them into my strategy? If yes, how? Thanks!
Announcement
Collapse
No announcement yet.
Partner 728x90
Collapse
NinjaTrader
Cumulative Depth from Super DOM
Collapse
X
-
Cumulative Depth from Super DOM
Hello all!
Can I get the Cumulative Depth values of buy and sell from SuperDOM and put them into my strategy? If yes, how? Thanks!Tags: None
- Likes 1
-
Hello YevhenShynkarenko,
Thank you for your inquiry.
Unfortunately, there is no basic way of obtaining the cumulative depth values of buy and sell. You would have to obtain these values manually and add them together to get your cumulative depth.
The Reference Samples section of the forum provides helpful information to allow you to get this market depth data. I would recommend looking at this topic in particular: http://www.ninjatrader.com/support/f...ead.php?t=5965
Using the output, you will be able to look through the code and determine how to obtain that market depth data.
With that in mind, take a look at line 183-184 of the code I provided in the link above:
I'd create a long variable (because Volume is a long), and increment it by the Volume of the specific row index on every loop, like below:Code:for (int idx = 0; idx < askRows.Count; idx++) Print("Ask Price=" + askRows[idx].Price + " Volume=" + askRows[idx].Volume + " Position=" + idx);
You'll want to be sure to reset your variable to 0 after the loop is finished or it would continue to add on whatever amount was already in there.Code:for (int idx = 0; idx < askRows.Count; idx++) { Print("Ask Price=" + askRows[idx].Price + " Volume=" + askRows[idx].Volume + " Position=" + idx); cumulativeDepthAsk += askRows[idx].Volume; } cumulativeDepthAsk = 0;Zachary G.NinjaTrader Customer Service
- Likes 1
Latest Posts
Collapse
| Topics | Statistics | Last Post | ||
|---|---|---|---|---|
|
Started by CarlTrading, 03-31-2026, 09:41 PM
|
1 response
81 views
1 like
|
Last Post
|
||
|
Started by CarlTrading, 04-01-2026, 02:41 AM
|
0 responses
42 views
0 likes
|
Last Post
by CarlTrading
04-01-2026, 02:41 AM
|
||
|
Started by CaptainJack, 03-31-2026, 11:44 PM
|
0 responses
64 views
2 likes
|
Last Post
by CaptainJack
03-31-2026, 11:44 PM
|
||
|
Started by CarlTrading, 03-30-2026, 11:51 AM
|
0 responses
66 views
0 likes
|
Last Post
by CarlTrading
03-30-2026, 11:51 AM
|
||
|
Started by CarlTrading, 03-30-2026, 11:48 AM
|
0 responses
54 views
0 likes
|
Last Post
by CarlTrading
03-30-2026, 11:48 AM
|

Comment