Announcement

Collapse
No announcement yet.

Partner 728x90

Collapse

Overfill ! ??

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

    Overfill ! ??

    A few minutes ago I received an overfill error message. I've been trading this strategy on sim for the last couple of weeks. It produced numerous trades, so this morning I enabled it to trade real money. Well, the exit on its first trade produced the overfill error.

    So, how could it be that a strategy would trade error free in sim for weeks, but produce an overfill when trading with a live account?

    #2
    Hello spottysallrite,

    Overfills occur when attempting to cancel or modify an order that has already part filled or filled.

    Below is a link to a forum post that discuses.
    https://ninjatrader.com/support/foru...16#post1036616

    This can also happen in historical data when 1-tick intra-bar granularity is not implemented and multiple orders are submitted on the same bar.
    Chelsea B.NinjaTrader Customer Service

    Comment


      #3
      ? I'm not using historical data. This is live trading with a funded account. Only one order was submitted, which was the sell limit order. The overfill triggered when that sell limit order filled. All orders were for only one contract.

      The code I used for this sell limit order is

      SubmitOrderUnmanaged (1, OrderAction.Sell,
      OrderType.Limit, 1, xLmt_Prc, 0,
      TradesCtTtl.ToString(), "xLmt");

      All of my orders have names. The sell market order that was produced as a result of this overfill has no name (as indicated in the "Orders" tab in the Control Center.)
      Last edited by spottysallrite; 07-18-2023, 01:51 PM.

      Comment


        #4
        Hello spottysallrite,

        As no TraceOrders or print information is provided, my guess would be that the code attempted to modify the order after it filled.

        Chelsea B.NinjaTrader Customer Service

        Comment


          #5
          Further, I have all of my orders print to the Output window whenever their status changes. There are no such prints. This sell limit order was sat unfilled for some 30 minutes before it was filled (typical for this strategy). This overfill really looks like it came from NT.
          Last edited by spottysallrite; 07-18-2023, 01:56 PM.

          Comment


            #6
            Hello spottysallrite,

            This is good you are using prints to try and understand the issue or provide evidence.

            May I confirm you have TraceOrders enabled in State.Configure?

            Are you printing the OHLC on each bar update?

            Is there a print of the order object from OnOrderUpdate()?

            Please right-click the output window and select Save As, save the text file and attach to your next reply so we may investigate further.
            Chelsea B.NinjaTrader Customer Service

            Comment


              #7
              You want me to post my Output window here ?

              Comment


                #8
                Hello spottysallrite,

                Yes, please right-click the output window and select Save As, save the text file and attach to your next reply so we may investigate further.

                Without the output we are not able to see what has occurred. Such as orders being submitted and which other orders are working, and which orders have filled or part filled, and when an order change is requested.
                Chelsea B.NinjaTrader Customer Service

                Comment


                  #9
                  Hello spottysallrite,

                  I've received an email through our support email, and as you would like this inquiry kept private I will conversing through the email moving forward and will no longer be updating this forum thread.
                  Chelsea B.NinjaTrader Customer Service

                  Comment

                  Latest Posts

                  Collapse

                  Topics Statistics Last Post
                  Started by NullPointStrategies, Today, 05:17 AM
                  0 responses
                  43 views
                  0 likes
                  Last Post NullPointStrategies  
                  Started by argusthome, 03-08-2026, 10:06 AM
                  0 responses
                  124 views
                  0 likes
                  Last Post argusthome  
                  Started by NabilKhattabi, 03-06-2026, 11:18 AM
                  0 responses
                  65 views
                  0 likes
                  Last Post NabilKhattabi  
                  Started by Deep42, 03-06-2026, 12:28 AM
                  0 responses
                  42 views
                  0 likes
                  Last Post Deep42
                  by Deep42
                   
                  Started by TheRealMorford, 03-05-2026, 06:15 PM
                  0 responses
                  46 views
                  0 likes
                  Last Post TheRealMorford  
                  Working...
                  X