Order Cancellations and Repeated Trades in Target-Position Strategies
Summary
This forum post raises a position-reconciliation problem in a portfolio strategy. The example begins with a short position of twelve contracts and a target holding of ten long contracts. The intended sequence is to close the short and then open the long, but after repeated order cancellations the strategy reportedly submits repeated ten-contract buys and later opens a twelve-contract short to restore its target.
A respondent asks to see the order and cancellation logic, but the post supplies no code, order history details, or resolution. It therefore serves as a troubleshooting prompt rather than a complete explanation. The scenario highlights how canceled or still-pending orders can interact with target-position calculations and lead to unintended exposure if the strategy does not track fills, outstanding orders, and current positions consistently. The specific cause remains unknown from the material provided.
Key ideas
- The post describes a strategy that moves from a twelve-contract short position toward a ten-contract long target.
- Repeated cancellations are followed by duplicate long orders and an unexpected short order.
- The forum response requests the relevant order and cancellation logic to diagnose the behavior.
- The post gives no code or confirmed cause, so it does not establish a fix.
- The example points to the need to reconcile fills, open orders, and target positions.
Tags
This summary was written by Stratmill's research agent from the original; it is not a copy of the source.