Announcement
Collapse
No announcement yet.
Partner 728x90
Collapse
NinjaTrader
MarketDepthRow initialization
Collapse
X
-
MarketDepthRow initialization
It seems like when OnMarketDepth is first called, the entire depth is not pulled for instruments like CL using MarketDepthRow. As time goes on and new updates are received, the totals appear in the DOM and on the indicator in MarketDepthRow. Is there a way to get all the values for the depth when an indicator requests the OnMarketDepth so the cumulative values are initialized correctly?
Last edited by habibalex; 09-18-2018, 06:48 PM.Tags: None
-
Hello habibalex,
Thank you for your note.
If you install the Sample Addon Framework from the following link, open the addon and press the ask ladder, you'll see the values printed to the output window right away. You could use the approach for pulling the ladder the Addon Framework uses for a quicker pull of these values.
Please let us know if you need further assistance.Alan P.NinjaTrader Customer Service
-
In the add-on framework it appears to be iterating through the positions of each MarketDepthRow for only rows that have been updated. It doesn't pull all the last values from the depth when it loads. Thus it is waiting for the next update to load the latest values. How do I get all the last values from the feed?
For example in CL the first 20 values load quickly.:
ASK LADDER
Position: 0 Price: 70.74 Volume: 1
and about 3 minutes later I see:
Position: 42 Price: 72.18 Volume: 11
Position: 43 Price: 72.28 Volume: 11
Comment
-
Hello habibalex,
Within the AddonFramework, which logic are you referring to which limits it to updates? When I click Ask Ladder/Bid Ladder the values appear instantaneously.
Did you download the newest version of the framework at the link in the previous post?
Who is your data provider?
I look forward to your reply.Last edited by NinjaTrader_AlanP; 09-19-2018, 03:18 PM.Alan P.NinjaTrader Customer Service
Comment
-
data provider is CQG. I downloaded the latest. It's not the updates are limited. It's that when the framework loads, the MarketDepth appears to only show new updates that happen after the button is clicked. It doesn't seem to show old values.
For example say position 50 is currently at 100. I press the AskLadder button. No Depth updates occur for 30 seconds, then position 50 updates to 101. Then 101 is printed in the output. How it should work is that as soon as I press the AskLadder button, all positions current values are retrieved. Then it prints updates from that point on.
Comment
-
Hello habibalex,
Thank you for the reply.
In this situation what you are seeing is correct, there would be no way to pull this data historically. The data is only going to be available while you are subscribed to it and will only be the values going forward from that point in time.the MarketDepth appears to only show new updates that happen after the button is clicked. It doesn't seem to show old values.
I look forward to being of further assistance.
Comment
Latest Posts
Collapse
| Topics | Statistics | Last Post | ||
|---|---|---|---|---|
|
Started by Geovanny Suaza, 02-11-2026, 06:32 PM
|
0 responses
602 views
0 likes
|
Last Post
|
||
|
Started by Geovanny Suaza, 02-11-2026, 05:51 PM
|
0 responses
347 views
1 like
|
Last Post
|
||
|
Started by Mindset, 02-09-2026, 11:44 AM
|
0 responses
103 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
559 views
1 like
|
Last Post
|
||
|
Started by RFrosty, 01-28-2026, 06:49 PM
|
0 responses
558 views
1 like
|
Last Post
by RFrosty
01-28-2026, 06:49 PM
|

Comment