marketDepth = new MarketDepth<MarketDepthRow>(instrument);
Announcement
Collapse
No announcement yet.
Partner 728x90
Collapse
NinjaTrader
MarketDepth documentation
Collapse
X
-
I'm going to say no. It's not the spec we are looking at, but code we are looking at.
marketdata shows "value" being used, instead of "instrument".
-
If you're writing from an Indicator/Strategy, that would work. In the context of an Add-On, the Instrument object is not readily available and would have failed as well. The examples may from time to time use placeholder variables which may not compile if you just copy and paste the example into your own script.Originally posted by habibalex View Posthttp://ninjatrader.com/support/helpG...arketdepth.htm
I think instrument should be InstrumentCode:marketDepth = new MarketDepth<MarketDepthRow>(instrument);
I edited the example for both OnMarketData and OnMarketDepth to clarify a little further in the comments.MatthewNinjaTrader Product Management
Comment
Latest Posts
Collapse
| Topics | Statistics | Last Post | ||
|---|---|---|---|---|
|
Started by Geovanny Suaza, 02-11-2026, 06:32 PM
|
0 responses
672 views
0 likes
|
Last Post
|
||
|
Started by Geovanny Suaza, 02-11-2026, 05:51 PM
|
0 responses
379 views
1 like
|
Last Post
|
||
|
Started by Mindset, 02-09-2026, 11:44 AM
|
0 responses
111 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
577 views
1 like
|
Last Post
|
||
|
Started by RFrosty, 01-28-2026, 06:49 PM
|
0 responses
582 views
1 like
|
Last Post
by RFrosty
01-28-2026, 06:49 PM
|

Comment