Trading idea
The strategy uses CME crude-oil futures as a configurable fair-value proxy for USO and looks for threshold dislocations between that reference and executable USO quotes. The implementation then has to decide where and how to trade rather than stopping at signal detection.
My contribution
- Refined the C++ ETF-arbitrage strategy and its execution loop.
- Added inventory-aware fair-value skew so current risk changes the price at which the strategy is willing to trade.
- Selected the best available USO quote across venues rather than assuming a single execution destination.
- Added position-aware sizing and limit pricing, runtime-tunable thresholds/aggressiveness, working-order guards, and exit-to-flat logic.
- Iterated through debugging and historical market-data testing in Strategy Studio.
Why it matters
The project was useful because it made a familiar lesson concrete: a trading signal is only one component of a strategy. Inventory, partial fills, aggressiveness, venue choice, latency, order state, and risk controls determine how the idea behaves when it interacts with an actual market.