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

Matching orders

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

    Matching orders

    Hi everybody,

    I have a doubt and maybe you can solve it or give me some help. Here is my question:

    Let´s suppose there is an ask price X an in that price there is a volume to be satisficed of 30 contracts due to 30 limit orders of 1 contract each, and in that moment, a single market buy order of 20 contracts arrives. This last order will be completely and immediately executed at the ask price X, filling 20 of pending orders.

    In that moment, what I would receive in OnMarketData 20 events type last of volume 1 and price x, or 1 event type last with volume 20 and price x, or maybe both. If none, how can I know that the market order that arrived filled the 20 pending orders.

    Thanks for any help.
    Last edited by telbentel; 11-29-2010, 03:42 AM.

    #2
    telbentel, I guess I'm not really clear what type of feedback you're looking for from the OnMarketDate(), it will transmit every Level 1 change (bid, ask, last) - in your scenario you would likely see a combination of events, as it would also depend on how your provider aggregates the data they sent out. If you look for a direct fill confirmation of your market order, try checking the IOrder fillstates returned -

    BertrandNinjaTrader Customer Service

    Comment


      #3
      Hi again,

      I will try to clarify more what I'm looking for.

      First of all, these won't be my orders. Orders will pending in the bid or the ask queue, as bid or ask volume available at a certain price due to limit orders placed before, and then, a big market order will arrive to the market and this big order gets filled with part of the volume available at that price.

      IOrder is not useful, because orders have not been placed by me.

      What happens when the big market order arrives. If it get filled with pending orders in the queue (let's say pending limit sell orders and a big buy market order arrives) what events onmarketdata or onmarketdepth will everybody receive, a single OMD event, type last, at the price the big order got filled with the volume of the big order, or several events of type last (one for each small pending order) with the same price and with the volume of each small pending order, or maybe both messages (the one with the big volume and the ones with the small volumes).

      I want to know if the decrese in the bid or the ask is due to a single order or to more than one order.

      thanks in advance

      Comment


        #4
        telbentel, you could unfortunately not dissect how the providers sends their data out, if it's aggregated it could appear as one block, if not you would see the individual trades printing as on the time and sales. You need to study your data received to analyze which conclusions to draw from it.
        BertrandNinjaTrader Customer Service

        Comment


          #5
          I'm using zenfire as data provider, any idea how they provide this info?

          Comment


            #6
            Hello,

            Zenfire provides this information tick by tick.

            Let me know if I can be of further assistance.

            Comment


              #7
              but in the example I use before, using zenfire, that order will be reflected as only one event type last with the whole volume, or several events (one for each order pending filled with the volume of that order that was pending)?

              Comment


                #8
                I would believe you see all trades non-aggregated with ZenFire, provided you're on latest NT7 RC1 (B23) and have resetup the ZenFire connection fresh to use the most up to date server points.

                Thanks,
                BertrandNinjaTrader Customer Service

                Comment

                Latest Posts

                Collapse

                Topics Statistics Last Post
                Started by samish18, Yesterday, 08:31 AM
                2 responses
                8 views
                0 likes
                Last Post elirion
                by elirion
                 
                Started by Mestor, 03-10-2023, 01:50 AM
                16 responses
                389 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
                23 views
                0 likes
                Last Post bmartz
                by bmartz
                 
                Working...
                X