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

Order flow query

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

    Order flow query

    HI, All of the NT8 order flow tools seem to report only the "fill" quantity. I am wondering how to access the actual "order" quantity instead.
    I may want to try to program an indicator to report this number. Or modify one of the NT8 OF tools to do it.
    Thanks, Ken.

    #2
    Hello KennyK, thanks for your post.

    Please clarify, by "fill quantity" do you mean the "last" price volume, and you want a way to evaluate volume at bid and ask prices?

    I look forward to hearing from you.
    Chris L.NinjaTrader Customer Service

    Comment


      #3
      Hi Chris,
      Yes I believe I mean by "fill quantity" the "last" price volume. By order quantity I mean all orders filled and un-filled at that price.

      If I code an indicator. It will be similar to NT8 OF Delta indicator in it's own window below price. But instead of reporting the delta, would report the total number of orders at the prices within the relevant bar, during the period of the relevant bar.

      Cheers.

      Comment


        #4
        Hi KennyK, thanks for your reply.

        This is what the Volumetric bartype will do already. It fills in the sell/buy values of each tick level based on the incoming bid/ask price. To do this you would need to override OnMarketData, this gives a stream of bid/ask/and last prices along with their volume.

        See here for details on how to get bid/ask updates for historical data when Tick Replay is enabled, see the section titled "Accessing the current best bid and ask at the time of a trade".

        Please let me know if you have any additional questions on this material.


        Chris L.NinjaTrader Customer Service

        Comment


          #5
          Originally posted by NinjaTrader_ChrisL View Post
          Hi KennyK, thanks for your reply.

          This is what the Volumetric bartype will do already. It fills in the sell/buy values of each tick level based on the incoming bid/ask price.
          Does this include market orders?

          Comment


            #6
            Hi KennyK,

            This does include market orders, it includes all filled orders at those prices. It seems like you might want a price ladder in your code. There is a reference sample for that here. That sample uses the OnMarketDepth method to gather data and stores the volume data in a list.

            Please let me know if this does not resolve your inquiry.


            Chris L.NinjaTrader Customer Service

            Comment

            Latest Posts

            Collapse

            Topics Statistics Last Post
            Started by Mestor, 03-10-2023, 01:50 AM
            16 responses
            388 views
            0 likes
            Last Post z.franck  
            Started by rtwave, 04-12-2024, 09:30 AM
            4 responses
            31 views
            0 likes
            Last Post rtwave
            by rtwave
             
            Started by yertle, Yesterday, 08:38 AM
            7 responses
            29 views
            0 likes
            Last Post yertle
            by yertle
             
            Started by bmartz, 03-12-2024, 06:12 AM
            2 responses
            22 views
            0 likes
            Last Post bmartz
            by bmartz
             
            Started by funk10101, Today, 12:02 AM
            0 responses
            7 views
            0 likes
            Last Post funk10101  
            Working...
            X