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 Mindset, 04-21-2026, 06:46 AM
    0 responses
    93 views
    0 likes
    Last Post Mindset
    by Mindset
     
    Started by M4ndoo, 04-20-2026, 05:21 PM
    0 responses
    138 views
    0 likes
    Last Post M4ndoo
    by M4ndoo
     
    Started by M4ndoo, 04-19-2026, 05:54 PM
    0 responses
    68 views
    0 likes
    Last Post M4ndoo
    by M4ndoo
     
    Started by cmoran13, 04-16-2026, 01:02 PM
    0 responses
    123 views
    0 likes
    Last Post cmoran13  
    Started by PaulMohn, 04-10-2026, 11:11 AM
    0 responses
    73 views
    0 likes
    Last Post PaulMohn  
    Working...
    X