Contingent Order Routing (OCO / If-Then)
The Formal Definition
An advanced conditional order routing mechanism where the execution or cancellation of one order is programmatically linked to the execution or state of another order (e.g., One-Cancels-the-Other or One-Triggers-the-Other).
OCO Logic: IF Order A Fills → Programmatically Cancel Order B | OTO Logic: IF Order A Fills → Programmatically Activate Order B & Order C
Cole Barrett's Reality Check
The Unvarnished Bottom Line"Trading without contingent orders is asking for an accidental margin liquidation. An OCO (One-Cancels-the-Other) order links your take-profit and stop-loss together. If the stock rallies and hits your profit target, the broker sells and immediately cancels your stop-loss. Without an OCO, your stop-loss sits open on the book, waiting to execute as an accidental short sale next week."
Interactive Simulator: Test the Math
Real-World Example: Scenario Breakdown
Examining the real numbers for: Holding 500 shares of a volatile earnings runner with a $110 profit target and a $92 stop-loss
| Execution Metric | Automated OCO Bracket Router | Manual Disjointed Order Placer |
|---|---|---|
| Fee / Rate | $0.00 | $0.00 |
| Spread / Buffer | Placed synchronized OCO bracket order on server gateway | Placed independent limit sell at $110 and separate stop-loss at $92 |
| Execution / Status | Stock surged to $110 target; profit order executed cleanly | Stock hit $110; profit booked, but forgot to cancel the $92 stop-loss |
| Total Cost / Result | Zero lingering unhedged orders on the order book | Trapped in an unintended, unmonitored short position |
How Brokers Weaponize This Term
Simplified trading apps omit server-side contingent bracket orders, forcing retail users to manage exits manually, which leads to forgotten resting orders executing as unintended open positions.
Broker Evaluation Matrix
Cole Approves
Interactive Brokers / Charles Schwab (Thinkorswim): Native server-side bracket, OCO, and OTO order routing architectures that manage exits off the lit book until execution triggers.
Read Audit →Cole Flags / Avoids
Basic Mobile Desks: Lacks native OCO functionality, preventing users from setting simultaneous profit targets and stop-losses on the same position.
View Trap Details →Frequently Asked Questions
What happens to an OCO order if one leg fills partially?
Most advanced brokers will proportionately reduce the quantity of the secondary opposing order to match the remaining open position.
Are OCO orders stored on the exchange or the broker's server?
Because lit exchanges rarely support native cross-order linking, OCO logic is typically managed on the broker-dealer's private order routing servers.