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

real-time level 2 bid/ask volume for a specified price

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

    real-time level 2 bid/ask volume for a specified price

    Is there a way to get real-time level 2 bid/ask volume for a specified price without leveraging OnMarketDepth()? So using something similar to GetCurrentAskVolume() / GetCurrentBidVolume() but for a specified price?

    #2
    Hello martyn73,

    Thanks for your post.

    OnMarketDepth would be the advised way to study level 2 data in an indicator. If the target PC is Order Flow + enabled, then the indicator can use the Volumetric Bars data access methods to be able to call GetAskVolumeForPrice and GetBidVolumeForPrice. More information on using these data access methods is included below.

    https://ninjatrader.com/support/help...tric_bars2.htm

    I look forward to being of any further assistance.
    JimNinjaTrader Customer Service

    Comment


      #3
      Is there a way to check if Order Flow + is enabled with NinjaScript? What happens when you use those methods when it's not enabled? And what percentage of NT8 customers would not be licensed for it?

      Comment


        #4
        Also, related to my questions above. Method MarketDepth() documentation states it's a snapshot. How much delay does the snapshot contain compared to the real-time updates in OnMarketDepth()?

        Comment


          #5
          Hello martyn73,

          Thanks for your questions.

          We do not publicly document how to check an Order Flow + enabled platform. If you are in our EcoSystem, please consult vendor support for information on how this can be done. If Order Flow + tools are used but the platform is not enabled, an error message will be presented mentioning an Order Flow + enabled license needs to be entered.

          MarketDepth will take a current snapshot of the order book and then provide subsequent updates in the Update event. A delay in preparing the snapshot may be 25ms. Each update would then be made as NinjaTrader sees a level 2 update.

          I look forward to being of further assistance.
          JimNinjaTrader Customer Service

          Comment

          Latest Posts

          Collapse

          Topics Statistics Last Post
          Started by swestendorf, Today, 11:14 AM
          0 responses
          1 view
          0 likes
          Last Post swestendorf  
          Started by Sparkyboy, Today, 10:57 AM
          0 responses
          3 views
          0 likes
          Last Post Sparkyboy  
          Started by TheMarlin801, 10-13-2020, 01:40 AM
          21 responses
          3,917 views
          0 likes
          Last Post Bidder
          by Bidder
           
          Started by timmbbo, 07-05-2023, 10:21 PM
          3 responses
          155 views
          0 likes
          Last Post grayfrog  
          Started by Lumbeezl, 01-11-2022, 06:50 PM
          30 responses
          812 views
          1 like
          Last Post grayfrog  
          Working...
          X