Announcement

Collapse
No announcement yet.

Partner 728x90

Collapse

Liquidity problem when executing market orders

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

    Liquidity problem when executing market orders

    have been presenting a problem executing market sell orders on certain instruments: BKNG, IBAA

    The problem is that the order is executed well above the real price, however with AAPL or other instruments this does not happen.

    What makes me think that it is due to liquidity, however I see that these BKNG, IBAA markets have a large daily volume.

    I would like to know if the problem is liquidity and if it is, how can I identify these markets that execute market orders at prices well above reality?


    Could you avoid this situation by executing directly in the order book?

    #2
    Hello 7robert,

    Thanks for your post.

    Is this a strategy issue or a PnL reporting issue?

    In a previous thread we discussed mapping IBAA and how the symbol mapping can be different for some symbols and how you could make 2 instruments, one for order submissions and the other for price action.

    Do you see this issue with NinjaScript strategies only, or also with manual order submissions?

    Do you see the same behavior when you are just connected to Interactive Brokers?

    How about when Sim trading? Do you see these differences when connected to Kinetick Sim trading or with IB data Sim trading?

    I loo forward to your reply.
    JimNinjaTrader Customer Service

    Comment


      #3
      The problem is that when the strategy decides to exit the market position, it executes a totally different price than at the moment, I remember what we talked about IND but I was able to do the mapping with IBAA. However, I consider that the problem of executions at different prices is not because another instrument is being mapped, but because of a matter that perhaps at the moment there are no orders in the order book and therefore the exchange is the one that executes it. at the price he wants but I'm not sure

      Comment


        #4
        Hello 7robert,

        Thanks for clarifying.

        You could consider using a VOL indicator on a small timeframe to see how volatile the market is when you want to place your trade, and that will let you know if the volume is too low which may influence when/where your order will fill.

        If you want to peek at the order book, you can use OnMarketDepth. I have linked an example below.

        Creating your own Level 2 book - https://ninjatrader.com/support/help...vel_ii_dat.htm

        As for submitting orders directly to the order book, there wouldn't be any way to do this from NinjaTrader since the order has to be sent to the broker first.

        For clarity on why the order filled outside of where you expected it, I suggest contacting the broker's Order Desk so they can give their insight on why the order filled where it did. They would have access to more information regarding your trade and could give you the most accurate answer.

        We look forward to assisting.
        JimNinjaTrader Customer Service

        Comment


          #5
          Hello Jim,
          In order to make the example you sent me work, do I need to acquire the Kinetick level 2 data?

          Comment


            #6
            Hello 7robert, thanks for your reply.

            Correct, Level 2 data will be required to get data from the OnMarketDepth method.

            We look forward to assisting.
            Chris L.NinjaTrader Customer Service

            Comment

            Latest Posts

            Collapse

            Topics Statistics Last Post
            Started by Unsuitable, Today, 10:20 AM
            1 response
            6 views
            0 likes
            Last Post NinjaTrader_Jim  
            Started by Devside_Victor, Today, 08:43 AM
            3 responses
            11 views
            0 likes
            Last Post ntbone
            by ntbone
             
            Started by Taddypole, Today, 10:27 AM
            2 responses
            8 views
            0 likes
            Last Post Taddypole  
            Started by sinpeople, Today, 09:36 AM
            3 responses
            7 views
            0 likes
            Last Post NinjaTrader_ChrisL  
            Started by punkiy2111, Today, 09:17 AM
            4 responses
            13 views
            0 likes
            Last Post punkiy2111  
            Working...
            X