OCO Order (One-Cancels-Other)
Definition
A pair of orders where execution of one automatically cancels the other, useful for setting profit targets and stop losses simultaneously.
In Detail
A One-Cancels-Other (OCO) order links two separate orders together so that when one is executed, the other is automatically cancelled by the broker or exchange. This is one of the most practical order types for active traders because it allows you to set both a profit target and a stop loss on the same position simultaneously, ensuring that only one exit triggers. Without an OCO, if you place a separate take-profit limit order and a separate stop-loss order, both remain active — if your profit target fills, you must manually cancel the stop loss, and vice versa. Forgetting to cancel the leftover order can result in opening an unintended new position. OCO orders eliminate this risk entirely. The two orders in an OCO pair can be any combination: a limit order and a stop order (the most common use), two limit orders at different prices, or two stop orders. Some brokers extend the concept into bracket orders (also called OTO-OCO), where a single entry order, upon being filled, automatically places an OCO pair for the exit. This creates a fully automated trade from entry to exit with no further intervention required. OCO orders are available on most professional trading platforms and many retail brokers, though the specific implementation varies — some brokers call them "paired orders" or "linked orders" and the interface for setting them up differs between platforms.
How to Use in Trading
Place an OCO order immediately after entering a position (or use a bracket order that does both simultaneously). The first leg should be your profit target as a limit order — placed at the price level where your technical analysis suggests the move will stall or where you want to take profits. The second leg should be your stop loss as a stop order — placed at the price level that invalidates your trade thesis. For example, if you buy a breakout above resistance, your stop goes below the breakout level and your target goes at the next significant resistance zone. The key benefit is psychological: once the OCO is set, you can walk away from the screen knowing that your trade is managed automatically. This removes the temptation to move your stop loss further away during a drawdown (a common emotional mistake) or to close a winning trade too early because of anxiety. For swing traders who hold positions overnight or over weekends, OCO orders are essential because price can gap through your levels while you are not watching. Review and adjust your OCO levels if market conditions change significantly (for example, if a major news event shifts the technical picture), but avoid adjusting them based on emotions or impatience.
Example
You identify a bullish setup on a stock at $82, with strong support at $78 and resistance at $92. You buy 200 shares at $82 and immediately place an OCO order: a sell limit at $91.50 (just below resistance, your profit target) and a sell stop at $77.50 (just below support, your stop loss). Your risk is $4.50 per share ($900 total) and your reward is $9.50 per share ($1,900 total) — a 2.1:1 reward-to-risk ratio. Over the next two weeks, the stock rallies to $91.50. Your sell limit fills automatically, locking in your $1,900 profit. The $77.50 stop order is simultaneously cancelled — you do not need to remember to remove it. If instead the stock had dropped, breaking support at $78 and hitting $77.50, your stop would have triggered to sell at approximately $77.50 (limiting your loss to ~$900), and the $91.50 profit target would have been automatically cancelled. Either way, you had a defined plan with automated execution, removing the need to monitor the position constantly and eliminating the risk of emotional decision-making.
Order Types Guide
Go beyond the definition with our in-depth guide
Related Terms
More Trading Terms
Ask Price
The lowest price a seller is willing to accept for an asset. Also called the offer price.
ATH (All-Time High)
The highest price an asset has ever reached in its trading history.
ATL (All-Time Low)
The lowest price an asset has ever reached in its trading history.
Bid Price
The highest price a buyer is willing to pay for an asset.
Breakout
When price moves above resistance or below support with increased volume, potentially signaling a new trend.
Put This Knowledge to Use
Practice crypto trading with $10,000 virtual capital. No risk, real market conditions.
Start Paper Trading Free