One-Cancels-the-Other (OCO) Order
Intermediateالأمر الذي يلغي الآخر
Also known as: OCO, One-Cancels-Other
Last updated
Definition reviewed before publishing
Our content team writes and reviews every definition before it is published, and revisits it when the way a term is used in the markets changes. The date shows the latest change to this term.
Last updated on 9 November 2026
A one-cancels-the-other (OCO) order is a pair of linked pending orders such that if one executes, the other is cancelled automatically. It is used to manage two opposite possibilities at the same time, such as exiting a position either at a profit target or at a stop-loss, or entering in the direction of a breakout whether the price rises or falls.
Quick summary
• Two linked orders where one's execution cancels the other. • Used to exit at profit or loss, or to enter on a breakout. • Prevents orphan orders.
How it works
The OCO order has two main uses. The first is managing the exit from an existing position: after opening a long position, the trader places a sell limit at the target and a sell stop at the stop-loss and links them as OCO; if the price reaches the target and the limit executes, the stop is cancelled, and vice versa. This prevents an orphan order remaining that might execute later and open an unintended new position. Many forex platforms apply this link automatically between the stop-loss and take-profit fields. The second use is entering on a breakout in an unknown direction: when the price consolidates in a tight range before important news, a trader may place a buy stop above the range and a sell stop below it, linked as OCO, so they enter in the breakout's direction and the other order is cancelled. But this carries the risk of a false breakout, where one order triggers and then the price reverses. Support for OCO orders varies between platforms; some manage them on the broker's servers, while others require additional tools.
Example
A stock consolidates between 48 and 52 riyals before its results announcement. A trader places a buy stop at 52.20 and a sell stop at 47.80 as OCO. After the announcement the stock rises to 52.20, so the buy order executes and the sell order is cancelled automatically.
Where you will see it
In advanced order types at stock and cryptocurrency brokers, in the automatic link between stop-loss and take-profit on forex platforms, and in news trading strategies.
Why it matters
It helps manage opposite scenarios with one organized order, avoid orphan orders, and carry out breakout strategies.
How it is calculated
There is no calculation. Rule: execution of the first order ⇒ automatic cancellation of the second, and vice versa.
How it differs from similar terms
• Conditional order: a broader concept covering OCO and other orders linked to conditions. • Entry order with attached orders: creates a stop and target after execution, often linked as OCO. • Standalone order: an independent order not linked to any other.
Common mistakes
Using OCO to enter before news without recognizing the risk of false breakouts and slippage, or assuming every platform links orders automatically. Check platform support and set a stop for each scenario.