We've been system testing our strategy with NT7 15 (recently upgraded to NT7 16) for a couple of weeks in combination with IBs TWS. During that period we have experienced 2 unexplained "Overfill" errors that result in an Buy order (after being short) being left in the market immediately following the overfill dialogue error. We see this as our only 1 of 2 "A" class error outstanding in the overall system test.
As these events are very infrequent, I have not been able to fully diagnose the exact sequence of events that cause them. Our Strategy employs an EnterShortStop order, plus StopLoss and ProfitTarget bracket orders that are placed and adjusted inside the OnExecute method as recommended. (As I've outlined in another thread this is not an atomic operation and we would prefer to submit these 3 orders as one block and will redevelop our order management handling to use Unmanaged orders over the next couple of weeks. This is the other "A" class problem outstanding).
Once there is a position and the 2 bracket orders are in place, the only thing that is changed is the SL price from time to time when an indicator needs to move the stop. When the overfill error occurred, it appears apparent that it was not necessary to move the SL price and we don't see any related event information that points to this happening.
Can you outline the circumstance where an Overfill happens (ala is it a race problem where IB is closing an order while the SL is being updated etc.)?
Can you also outline or even better send some example code to show how to correctly handle overfill events?
Are there still any issues with Overfills as listed against NT7 14 in the latest NT7 16 release?
Regards,
Paul

Comment