Announcement

Collapse
No announcement yet.

Partner 728x90

Collapse

MarketDepth LEVEL 2

Collapse
X
 
  • Filter
  • Time
  • Show
Clear All
new posts

    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.

    #2
    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 Files

    Comment

    Latest Posts

    Collapse

    Topics Statistics Last Post
    Started by CarlTrading, 03-31-2026, 09:41 PM
    1 response
    47 views
    0 likes
    Last Post NinjaTrader_ChelseaB  
    Started by CarlTrading, 04-01-2026, 02:41 AM
    0 responses
    23 views
    0 likes
    Last Post CarlTrading  
    Started by CaptainJack, 03-31-2026, 11:44 PM
    0 responses
    33 views
    1 like
    Last Post CaptainJack  
    Started by CarlTrading, 03-30-2026, 11:51 AM
    0 responses
    51 views
    0 likes
    Last Post CarlTrading  
    Started by CarlTrading, 03-30-2026, 11:48 AM
    0 responses
    42 views
    0 likes
    Last Post CarlTrading  
    Working...
    X