I have experienced the same problem. Some details....
1) I used OCA orders (with a profit and stop order) without issue on the ES. Then I started trading the TF and hit the problem you are having every 3rd or 4th (TF) order.
2) The Profit limit order was being transmitted, but not the stop loss order. If I manually transmitted the stop order (in TWS), it would transmit, but not be in the same OCA group as the limit order, so when the limit order was hit, the stop remained. This obviously created a mess, so I stopped using OCA orders.
3) I never experienced the problem paper-trading (over a 3-4 month period) - only live trading. This could be due to the papertrading system capturing much more data, and therefore submitting the orders a little slower.
4) I thought because it was happening on the TF but not the ES it could be something to do with the ICE exchange...maybe something related to setting outsideRth to true...but was never able to prove it.
5) I submitted a ticket to IB, who suggested it could be corrupted TWS settings, and that I needed to change the settings directory to generate new settings files. I never tried this, since I wasn't prepared to risk the potential loss associated with the problem recurring.
The 30ms delay fix sounds like a feasible solution, which I may try....thanks for this suggestion.
1) I used OCA orders (with a profit and stop order) without issue on the ES. Then I started trading the TF and hit the problem you are having every 3rd or 4th (TF) order.
2) The Profit limit order was being transmitted, but not the stop loss order. If I manually transmitted the stop order (in TWS), it would transmit, but not be in the same OCA group as the limit order, so when the limit order was hit, the stop remained. This obviously created a mess, so I stopped using OCA orders.
3) I never experienced the problem paper-trading (over a 3-4 month period) - only live trading. This could be due to the papertrading system capturing much more data, and therefore submitting the orders a little slower.
4) I thought because it was happening on the TF but not the ES it could be something to do with the ICE exchange...maybe something related to setting outsideRth to true...but was never able to prove it.
5) I submitted a ticket to IB, who suggested it could be corrupted TWS settings, and that I needed to change the settings directory to generate new settings files. I never tried this, since I wasn't prepared to risk the potential loss associated with the problem recurring.
The 30ms delay fix sounds like a feasible solution, which I may try....thanks for this suggestion.
This one is easier in the sense nothing can be filled as the main is not accepted.