Announcement
Collapse
Looking for a User App or Add-On built by the NinjaTrader community?
Visit NinjaTrader EcoSystem and our free User App Share!
Have a question for the NinjaScript developer community? Open a new thread in our NinjaScript File Sharing Discussion Forum!
Have a question for the NinjaScript developer community? Open a new thread in our NinjaScript File Sharing Discussion Forum!
See more
See less
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.
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.JesseNinjaTrader Customer Service
Comment
Latest Posts
Collapse
Topics | Statistics | Last Post | ||
---|---|---|---|---|
Started by algospoke, Yesterday, 06:40 PM
|
2 responses
20 views
0 likes
|
Last Post
by algospoke
Today, 07:04 PM
|
||
Started by ghoul, Today, 06:02 PM
|
3 responses
14 views
0 likes
|
Last Post Today, 06:43 PM | ||
Started by jeronymite, 04-12-2024, 04:26 PM
|
3 responses
45 views
0 likes
|
Last Post
by jeronymite
Yesterday, 10:10 PM
|
||
Started by Barry Milan, Yesterday, 10:35 PM
|
7 responses
21 views
0 likes
|
Last Post Today, 06:16 PM | ||
Started by AttiM, 02-14-2024, 05:20 PM
|
10 responses
181 views
0 likes
|
Last Post
by jeronymite
Today, 06:11 PM
|
Comment