• If this is your first visit, you will have to register before you can post. To view messages, please scroll below and select the forum that you would like to visits. Questions? Be sure to check out the Forum FAQ.

Announcement

Collapse
No announcement yet.

Partner 728x90

Collapse

Orders not executing at time expected during live trading in IB Account

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

    Orders not executing at time expected during live trading in IB Account

    I'm currently testing my strategy during the live market on an IB Paper Trading account with the API gateway. Order execution is not working as expected.

    I have a simple EnterShort or Long when some criteria is hit. This triggers as expected and shows as Submitted in Orders and occurred at 6:31 for 800 shares. The executions times really confused me.

    300 shares at 6:35:28 for 40.14
    400 shares at 6:36:55 for 40.02
    100 shares at 6:37:39 for 40.08

    There was plenty of liquidity at the time.

    #2
    Hello Dragon989,
    Thanks for your post.

    What version of NinjaTrader 8 are you using?

    What bar type are you using?

    How much volume was available at those times?
    JoshNinjaTrader Customer Service

    Comment


      #3
      1 minute bar
      Volume averaging about 50k to 250k
      Version 8.0.15.1

      Comment


        #4
        Dragon989,

        That seems normal to me and simply sounds like a partial fill. Are you manually coding this strategy?

        JoshNinjaTrader Customer Service

        Comment


          #5
          Sorry - not normal. It's 50k to 250k volume per minute. I trade this stock manually all the time and am always immediately filled. With almost no slippage. Yes it's a manually coded strategy - would that make a difference if my order was submitted at the expected time and only executed late?

          Comment


            #6
            Dragon989,

            If you are using a market order or an order type that can partially fill these things can happen. I expect that these executions occurred as soon as the volume allowed for it. Do you see that all three executions are tied to the same order?

            Since you manually coded the strategy, you could use the execution update override to find partial fills and confirm this is the case. Here is a great reference sample on how to use OnExecutionUpdate and OnOrderUpdate to track your orders.

            https://ninjatrader.com/support/foru...-orders?t=7499



            JoshNinjaTrader Customer Service

            Comment


              #7
              Yes they were all connected to the same order as my one order that triggered minutes before was for 800 shares and monitored it the Orders tab on the main NinjaTrader window. I assure you that there was plenty of volume to trigger when the order occurred.

              6:30 500k traded
              6:31 200k traded
              6:32 250k traded
              6:33 201k traded

              It was a single market order for 800 shares that filled at...

              300 shares at 6:35:28 for 40.14
              400 shares at 6:36:55 for 40.02
              100 shares at 6:37:39 for 40.08

              Order showed submitted at 6:31.

              Comment

              Latest Posts

              Collapse

              Topics Statistics Last Post
              Started by jamarc, Today, 02:30 AM
              1 response
              6 views
              0 likes
              Last Post NinjaTrader_Jesse  
              Started by uday12, Yesterday, 04:19 PM
              1 response
              7 views
              0 likes
              Last Post NinjaTrader_PaulH  
              Started by grose, Today, 06:53 AM
              2 responses
              7 views
              0 likes
              Last Post grose
              by grose
               
              Started by Bobisam, Yesterday, 04:57 PM
              1 response
              21 views
              0 likes
              Last Post NinjaTrader_PaulH  
              Started by voltlon, Yesterday, 05:18 PM
              1 response
              10 views
              0 likes
              Last Post NinjaTrader_PaulH  
              Working...
              X