to obtain the values of lv 2 from a strategy, it just happens to me brings information when in NinjaTrader I have the LV 2 window open when I close this window from the code it does not bring me any information I would like to know if it is normal behavior or if I should place something additional to the MyAddOnTab class so that it generates information even having the LVL 2 window closed.
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
MarketDepth LEVEL 2
Collapse
X
-
MarketDepth LEVEL 2
I am using MarketDepth from a strategy guiding me from this example https://ninjatrader.com/support/help...arketdepth.htm that they have in the documentation,
to obtain the values of lv 2 from a strategy, it just happens to me brings information when in NinjaTrader I have the LV 2 window open when I close this window from the code it does not bring me any information I would like to know if it is normal behavior or if I should place something additional to the MyAddOnTab class so that it generates information even having the LVL 2 window closed.Tags: None
-
Hello 7robert,
Thank you for your post.
The code in that example doesn't require a L2 window to return data, but it does require a data subscription to the instrument. I've created a simple indicator example that uses this code to retrieve market depth that I've attached.
You'd have to have an incoming data stream coming into the Add-on - I would take a look at AddOn Framework NinjaScript Basic for an example of subscribing to data from an addon.
Please let us know if we may be of further assistance to you.Attached FilesKate W.NinjaTrader Customer Service
Latest Posts
Collapse
Topics | Statistics | Last Post | ||
---|---|---|---|---|
Started by Davidtowleii, Today, 12:15 AM
|
0 responses
2 views
0 likes
|
Last Post
by Davidtowleii
Today, 12:15 AM
|
||
Started by guillembm, Yesterday, 11:25 AM
|
2 responses
9 views
0 likes
|
Last Post
by guillembm
Yesterday, 11:58 PM
|
||
Started by junkone, 04-21-2024, 07:17 AM
|
9 responses
68 views
0 likes
|
Last Post
by jeronymite
Yesterday, 11:51 PM
|
||
Started by trilliantrader, 04-18-2024, 08:16 AM
|
4 responses
20 views
0 likes
|
Last Post Yesterday, 10:33 PM | ||
Started by mgco4you, Yesterday, 09:46 PM
|
1 response
11 views
0 likes
|
Last Post Yesterday, 09:56 PM |
Comment