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

How to use Level2 data in a my indicator

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

    How to use Level2 data in a my indicator

    Hello
    Can you dive me an information about how to use a data from DOM (Level 2 data) in my indicator.
    For example, the current price is 15.00 and i want to get an information about quantity of orders on 15.02 price level from DOM - how to do it?

    #2
    Hello,

    You can use OnMarketDepth in order to obtain this information:



    We have a reference sample which shows how to obtain information from the market depth collection:

    MatthewNinjaTrader Product Management

    Comment


      #3
      Cumulative Market Depth

      I will use this thread for a followup question.

      Using the position and volume methods under marketdeptheventargs. Is it possible to get a cumulative value, say 5 positions in depth for both Bids and Asks. To see which is greater than the other? Perhaps even, Bids are 10% greater than Asks, therefore do this or that.

      Been so long since I wrote my last scripts and my last computer crashed. Any help in how this might be coded would be appreciated.

      Thanks,
      Rhy.

      Comment


        #4
        Hello Rhy,

        Yes, you would be able to accomplish this. We do have a reference sample on how to build your own level 2 data book. This would be a good start to seeing how Market Depth works with the script -
        http://www.ninjatrader.com/support/f...ead.php?t=3478
        Cal H.NinjaTrader Customer Service

        Comment

        Latest Posts

        Collapse

        Topics Statistics Last Post
        Started by bortz, 11-06-2023, 08:04 AM
        47 responses
        1,605 views
        0 likes
        Last Post aligator  
        Started by jaybedreamin, Today, 05:56 PM
        0 responses
        8 views
        0 likes
        Last Post jaybedreamin  
        Started by DJ888, 04-16-2024, 06:09 PM
        6 responses
        18 views
        0 likes
        Last Post DJ888
        by DJ888
         
        Started by Jon17, Today, 04:33 PM
        0 responses
        4 views
        0 likes
        Last Post Jon17
        by Jon17
         
        Started by Javierw.ok, Today, 04:12 PM
        0 responses
        13 views
        0 likes
        Last Post Javierw.ok  
        Working...
        X