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!
See more
See less

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
    Kate W.NinjaTrader Customer Service

    Comment

    Latest Posts

    Collapse

    Topics Statistics Last Post
    Started by Davidtowleii, Today, 12:15 AM
    0 responses
    2 views
    0 likes
    Last Post Davidtowleii  
    Started by guillembm, Yesterday, 11:25 AM
    2 responses
    9 views
    0 likes
    Last Post guillembm  
    Started by junkone, 04-21-2024, 07:17 AM
    9 responses
    68 views
    0 likes
    Last Post jeronymite  
    Started by trilliantrader, 04-18-2024, 08:16 AM
    4 responses
    20 views
    0 likes
    Last Post trilliantrader  
    Started by mgco4you, Yesterday, 09:46 PM
    1 response
    11 views
    0 likes
    Last Post NinjaTrader_Manfred  
    Working...
    X