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 NullPointStrategies, Yesterday, 05:17 AM
    0 responses
    54 views
    0 likes
    Last Post NullPointStrategies  
    Started by argusthome, 03-08-2026, 10:06 AM
    0 responses
    131 views
    0 likes
    Last Post argusthome  
    Started by NabilKhattabi, 03-06-2026, 11:18 AM
    0 responses
    73 views
    0 likes
    Last Post NabilKhattabi  
    Started by Deep42, 03-06-2026, 12:28 AM
    0 responses
    44 views
    0 likes
    Last Post Deep42
    by Deep42
     
    Started by TheRealMorford, 03-05-2026, 06:15 PM
    0 responses
    49 views
    0 likes
    Last Post TheRealMorford  
    Working...
    X