OCO Order
By Chad Smith, Director of Research & Analysis · Updated
An OCO (one-cancels-the-other) order is a pair of linked orders in which the filling of one automatically cancels the other.
Worked example
Example: GBP/USD has been trading between 1.2600 and 1.2700 ahead of a major data release. You do not know which way it will break, so you place an OCO pair:
- A buy stop at 1.2710, above the range.
- A sell stop at 1.2590, below it.
The data comes out strong and price jumps to 1.2715. The buy stop fills, and the sell stop is canceled at once. Without the OCO link, a later fall back below 1.2590 could also trigger the sell stop, leaving you with two opposite positions.
Why it matters to a trader
OCO orders let you plan for two outcomes without watching the market. They are useful for:
- Breakouts in either direction, as in the example.
- Exits, where a stop-loss and a take-profit on the same position act as an OCO pair.
- Alternative entries, such as a buy limit at support and a buy stop above resistance, where you only want one of them.
They reduce the risk of forgetting to cancel an order that no longer makes sense.
Common confusions
- Platform support varies. Some platforms have OCO built in. Others need a script or expert advisor.
- News risk. Straddling news with stop orders can lead to heavy slippage and spread widening, even when the OCO logic works.
Related terms
Where to practice this
Put this into practice on a demo account first, with no money at risk.
- Featured broker
Pepperstone4.7 / 5Visit
IC Markets4.9 / 5Visit
GO Markets4.8 / 5Visit
Frequently asked questions
Does MetaTrader support OCO orders?
Not natively. MetaTrader users usually rely on an expert advisor or script to link orders. Some other platforms offer OCO as a built-in order type.
Are stop-loss and take-profit an OCO pair?
In effect, yes. When one closes the position, the other is removed, which is the same principle.
What is a bracket order?
A bracket is an entry order with an attached stop-loss and take-profit that work as an OCO pair once the entry fills.
Can both sides of an OCO fill?
In a very fast market, there is a small chance both trigger before the cancel takes effect. Most platforms handle this, but it is worth knowing.