Overview
An one‑cancels‑the‑other (OCO) order is a paired set of conditional orders in which the execution of one order automatically cancels the other. Traders commonly combine a stop order and a limit order in an OCO to manage risk and define profit targets without manually cancelling the alternate order. OCOs are available on many broker/dealer and electronic trading platforms and are useful for both trade entries (breakouts/retracements) and exits (take‑profit plus stop‑loss).
Key benefits
– Automates trade management and reduces manual order‑cancellation errors.
– Helps enforce discipline: locks in profit targets and limits losses.
– Useful in volatile markets where quick moves can occur without time to act.
Key limitations
– Stop orders can become market orders (risk of slippage on gaps).
– Stop‑limit orders can fail to execute if price moves past the limit.
– Partial fills and order sequencing can produce outcomes a trader didn’t expect.
– Platform implementations vary—know your broker’s behavior.
Basic components of an OCO
– Limit order: an instruction to buy or sell at a specified price (or better).
– Stop order (stop‑market): becomes a market order when the stop price is hit.
– Stop‑limit order: becomes a limit order when the stop price is hit (trade‑off: no guaranteed execution).
– Time in force: both legs of the OCO should share the same TIF (e.g., Day, GTC) to avoid mismatched durations.
Common use cases
– Exiting an existing position: place a profit‑taking limit order and a stop‑loss order simultaneously (sell limit + sell stop) so one cancels the other.
– Entering on breakouts: use a buy‑stop above resistance and a sell‑stop below support; whichever triggers opens a position and cancels the other.
– Trading retracements: place buy and sell limit orders around a known range to capture rebounds.
Practical example (exit strategy)
Scenario: Owns 1,000 shares at $10; target = $13, max acceptable loss = $2/share.
OCO setup:
– Leg A (profit): Sell 1,000 shares limit at $13.
– Leg B (risk): Sell 1,000 shares stop at $8 (stop‑market) or stop‑limit with a trigger and a minimum acceptable price.
Behavior:
– If price rises to $13 and the limit order fills, the $8 stop is automatically canceled.
– If price falls to $8 and the stop order executes, the $13 limit is canceled.
Notes:
– If stop is a market stop, the actual execution price may differ during fast moves.
– If stop is stop‑limit, the order may not execute if the market gaps past the limit.
Practical example (entry strategy — breakout)
Scenario: Stock trades in a range $20–$22; you want to enter on either a breakout above $22 or breakdown below $20.
OCO setup:
– Leg A: Buy stop at $22.10 (enter long on breakout).
– Leg B: Sell short stop at $19.90 (enter short on breakdown).
Behavior:
– If price breaks above resistance and the buy stop triggers, the sell stop is canceled.
– If price breaks down and the sell stop triggers, the buy stop is canceled.
Notes:
– Be explicit about position sizing: each leg should represent the intended quantity so fills won’t leave unintended exposures.
– Some brokers don’t allow simultaneous buy and sell orders on the same account without special permissions; confirm rules for shorting.
Step‑by‑step: How to construct an OCO order (general workflow)
1. Define your plan
• Purpose: entry vs exit.
• Price targets and stop levels based on technicals, volatility, or risk limits.
• Size of the position for each leg.
2. Choose order types for each leg
• Use limit for profit targets and stop‑market or stop‑limit for stops.
• Understand the execution characteristics of each type on your platform.
3. Set identical time in force for both legs
• Day, Good‑Til‑Canceled (GTC), or a fixed expiry; keep them the same.
4. Enter the OCO on your trading platform
• Select the OCO order template (wording varies by broker).
• Input both legs, sizes, TIF, and any other specifics (e.g., AON—All or None, if supported).
5. Confirm the order and monitor
• Check broker confirmations and the platform’s order ticket to ensure both legs are listed.
• Monitor for fills and for any partial fills that could change exposures.
6. After a fill
• Verify the platform canceled the opposite leg.
• If the platform doesn’t automatically place an OCO exit for an OCO entry, manually set a stop or trailing stop if needed.
7. Post‑trade review
• Record execution prices, slippage, and commissions.
• Adjust strategy or thresholds based on outcomes.
Platform and operational considerations
– Implementation differences: Some brokers label it OCO, others “linked orders,” “OCO bracket,” or require OSO/attached orders. Read your broker’s documentation.
– Partial fills: If one leg partially fills, platform behavior for canceling the opposite leg varies—confirm whether the opposing leg cancels entirely or is reduced.
– Order priority and latency: In fast markets, simultaneous fills or fills at unexpected prices can occur; slippage and gaps are real risks.
– Margin/shorting rules: For entry OCOs that could initiate short positions, ensure you have margin permission and borrowing availability.
– Pre‑ and post‑market: Many platforms don’t execute stop orders outside regular trading hours—verify session coverage.
Risk management tips
– Use stop‑limits if you must avoid a bad execution price, but recognize the risk of non‑execution.
– Size stops according to volatility (e.g., ATR) rather than arbitrary dollar amounts to reduce whipsaw.
– Don’t rely solely on OCO automation—have contingency plans for platform outages.
– For large positions, factor in market impact and fill probabilities.
Costs and practical impacts
– Transaction costs (commissions, fees) and bid/ask spreads affect net profit.
– Slippage can turn a winning target into a loss or worsen the loss on a stop.
– Overnight or gap risk can cause execution at prices far from the trigger.
Differences from related order types
– OCO vs OSO (Order‑Sends‑Order): OCO cancels the other leg when one executes. OSO triggers a secondary order only when the first executes rather than canceling it.
– OCO vs bracket order: Some platforms offer a bracket order (entry order with attached stop and take‑profit). Bracket orders are a form of OCO for managing a single position; terminology and implementation can vary.
– OCO vs separate independent orders: Independent orders need manual cancellation; OCO automates that cancellation.
Checklist before placing an OCO
– Strategy objective (entry or exit) confirmed.
– Levels and sizes set and reviewed.
– Order types chosen (limit, stop, stop‑limit).
– Same time‑in‑force for both legs.
– Broker rules and platform behavior understood.
– Margin/borrowing confirmed for shorts.
– Contingency plan for failed fills or platform outages.
Practical scenario walk‑through (numbers & outcomes)
Using the earlier exit example (1,000 shares at $10, limit $13, stop $8):
– If limit fills at $13: gross proceeds = 1,000 × $13 = $13,000; profit before costs = ($13 − $10) × 1,000 = $3,000. Stop canceled.
– If stop fills at $8 (market stop): proceeds roughly 1,000 × execution price (may be $8 or worse). Loss before costs ≈ ($10 − execution price) × 1,000, potentially larger than $2,000 if slippage occurred.
– If stop is stop‑limit (stop triggers a limit at $8) and price gaps to $7.50: the order may not fill and you may remain long.
Best practices summary
– Know your broker’s exact OCO mechanics (including behavior on partial fills).
– Match time‑in‑force for both legs.
– Choose stop type (market vs limit) based on your tolerance for execution certainty vs price certainty.
– Size stops to market volatility, not just round numbers.
– Monitor during volatile periods and have backup plans for tech failures.
References and further reading
– Investopedia: One‑Cancels‑the‑Other (OCO) Order (summary and examples).
– U.S. Securities and Exchange Commission. Rule 6: Options Trading Rules (for related trading rules and market structure considerations).
Editor’s note: The following topics are reserved for upcoming updates and will be expanded with detailed examples and datasets.