What Is an OCO Order? One-Cancels-the-Other Explained
In this article

An OCO (One-Cancels-the-Other) order links two orders so that when one is executed, the other is automatically cancelled. Traders may use OCO orders to manage an existing position with a take-profit and stop-loss, or to prepare for an entry in either direction where the trading platform supports it.
So, what is an OCO order in practice? It links two conditional orders so that when one is executed, the other is automatically cancelled. Depending on the broker or platform, cancellation may occur when the first order is triggered or filled.
OCO orders can help traders manage entries and exits without continuously monitoring the market. With the OCO order explained in the sections below, you'll see how it works, how it can be used for entry and exit strategies, and the main execution risks to consider, including slippage, market gaps and wider spreads.
Quick Takeaways
- An OCO order links two orders so that when one is executed, the other is cancelled automatically.
- An exit OCO can combine a take-profit order with a stop-loss order to manage an existing position.
- Where supported, an entry OCO can link a buy stop above the market with a sell stop below it to prepare for a breakout in either direction.
- OCO orders do not guarantee an exact execution price. Standard stop-loss orders can still be affected by gaps, slippage and wider spreads.
- OCO functionality and execution rules vary between brokers and trading platforms.
What Is an OCO Order?
Put simply, what is an OCO order? It's a pair of linked orders — short for One-Cancels-the-Other — governed by a conditional rule, where executing one automatically cancels the other.
This structure allows traders to define two alternative outcomes in advance. For example, a trader with an open position might set one order to take profit if the market moves favourably and another to close the position if the market moves against them.
In simple terms, if the take-profit order executes first, the linked stop-loss is cancelled. If the stop-loss executes first, the take-profit order is cancelled instead.
The exact way an OCO order is handled depends on the broker and trading platform. Some platforms offer OCO orders directly, while others provide similar functionality by linking a stop-loss and a take-profit order to an existing position.
Where supported, OCO structures are commonly used in two ways:
- Exit OCO: Links a take-profit order and a stop-loss order to manage an existing position. For a long position, the take-profit is normally above the current market price and the stop-loss below it. The arrangement is reversed for a short position.
- Entry OCO: Links two pending entry orders, such as a buy stop above resistance and a sell stop below support. If one entry is activated, the other is cancelled. Availability depends on the trading platform.
How Does an OCO Order Work in Trading?
When an OCO order is placed, the broker or trading platform links two separate orders under a single conditional rule. Both remain active until one is executed, at which point the linked order is automatically cancelled.
In practice, an OCO order typically works in four steps:
- Set two order levels: You define Order A, such as a take-profit at 1.1050, and Order B, such as a stop-loss at 1.0950.
- Both orders remain active: The broker or platform monitors the relevant market prices against the conditions of each order.
- One order condition is met: The market reaches the trigger or execution level for one of the linked orders.
- The other order is cancelled: Once the first order executes, the OCO rule automatically cancels the remaining order according to the platform's order-handling rules.

The time-in-force available for OCO orders also depends on the provider. Some platforms allow linked orders to remain active as Good 'Til Cancelled (GTC) orders, while others offer a specific expiry date or session-based setting. Traders should therefore check their platform's rules rather than assume an OCO order will remain active indefinitely.
Why OCO Orders Matter for CFD Traders
Contracts for Difference (CFDs) are leveraged products, so relatively small price movements can produce larger gains or losses relative to the margin used. This is exactly why it helps to know what is an OCO order before trading CFDs: setting predefined exit levels can help manage this risk, although an OCO order cannot prevent losses or guarantee an execution price.
Overnight fees also need to be considered when an OCO is attached to an open CFD position. The financing charge relates to the open position, not to the OCO instruction itself.
For example, an exit OCO attached to a cash CFD that remains open overnight may continue to incur overnight funding until the position closes. A pending entry OCO does not itself create an overnight financing charge while neither order has opened a position. The precise charging structure depends on the product and provider.
Spread widening can also affect tightly placed stop-loss levels. CFD and Forex prices normally have separate bid and ask prices, while a chart may display only one side of the market or a mid-price. The price used to trigger a stop therefore may not be identical to the price visible on the chart.
For example, a long position is generally closed using the bid price, while a short position is generally closed using the ask price. If the spread widens, the relevant dealing price can reach the stop level even when a mid-price chart appears not to have touched it. Exact trigger rules depend on the broker, instrument and platform.
CFD trading carries a high risk of loss because of leverage. In the UK, the Financial Conduct Authority (FCA) requires relevant CFD providers to display an up-to-date, provider-specific percentage showing how many retail investor accounts lose money with that provider. The percentage is recalculated every three months using data from the previous 12 months, so there is no single current FCA percentage that applies to every CFD provider.
Automated tools such as OCO orders can support more consistent trade management, but they do not remove market, leverage or execution risk.
Entry OCO vs Exit OCO: Trading Examples
The main difference between entry and exit OCO orders is whether the linked instructions manage an existing position or prepare for a new one.
Example 1: Exit OCO for an Open Trade
Assume you hold a long EUR/USD position opened at 1.0850 and want to define both a profit target and a downside exit.
You could set:
- Leg A — Take-Profit: Sell limit at 1.0950, which is 100 pips above the entry price.
- Leg B — Stop-Loss: Sell stop at 1.0800, which is 50 pips below the entry price.
If EUR/USD rises and Leg A executes at the take-profit level, the position closes for a gain before trading costs and Leg B is cancelled.
If EUR/USD falls to the stop level, Leg B activates and attempts to close the position, while Leg A is cancelled. A standard stop-loss does not guarantee an execution at exactly 1.0800 because slippage or a market gap could result in a different closing price.
Example 2: Entry OCO for a Volatile Breakout
Suppose GBP/USD is trading within a narrow range between 1.2650 and 1.2700 ahead of a central bank interest-rate decision.
On a platform that supports entry OCO orders, a trader might set:
- Leg A — Buy Stop: Pending buy order at 1.2715, above the range.
- Leg B — Sell Stop: Pending sell order at 1.2635, below the range.
If the market rises through 1.2715 and the buy-stop order is activated, the sell-stop order is cancelled under the OCO rule. If the market instead falls through 1.2635, the sell-stop order can activate and the buy-stop order is cancelled.
This approach avoids leaving the opposite pending entry active after one side has been triggered. However, sharp moves around major announcements can still cause slippage, gaps or rapid reversals.
Parameter | Exit OCO Order | Entry OCO Order |
|---|---|---|
Primary purpose | Manage an existing position | Prepare for a new position in either direction |
Typical first leg | Take-profit order | Buy stop |
Typical second leg | Stop-loss order | Sell stop |
Position already open? | Yes | No |
Margin treatment | The existing leveraged position already requires margin | Treatment of pending orders varies; margin generally becomes relevant when an order creates an open position |
Platform availability | Common as linked stop-and-limit functionality | Not supported by every broker or platform |
Risks, Market Gaps and Common OCO Mistakes
Understanding what is an OCO order also means understanding its limits: it can automate parts of trade management, but it doesn't guarantee that every order will execute at the requested price.
- Market gaps and slippage: A standard stop-loss normally becomes an executable order once its trigger level is reached. If the market gaps beyond that level or moves quickly, the actual fill may be worse than expected. This can occur around major announcements, periods of low liquidity or market reopenings.
- Different platform rules: OCO implementation is not identical across brokers. Some platforms cancel the remaining order when the first order executes, while handling of triggers, partial fills and linked orders can vary. Traders should check the provider's order rules before relying on a particular behaviour.
- Spread widening: A wider bid-ask spread can bring the relevant dealing price closer to a stop-loss level even when a mid-price chart shows less movement.
- Setting levels too close to the market: Very tight stop or entry levels may be triggered by ordinary short-term price fluctuations or temporary changes in the spread rather than a sustained market move.
- Assuming OCO means guaranteed protection: OCO describes the relationship between linked orders. It does not make a standard stop-loss guaranteed. Some providers offer guaranteed stop-loss orders separately, usually under different conditions or charges.
To build a broader understanding of trade execution, explore how different order types in trading affect price control, execution and risk.
Conclusion
In short, what is an OCO order? It links two conditional instructions so that the execution of one causes the other to be cancelled. It can be used to manage an existing position with a take-profit and stop-loss combination or, where the platform supports it, to prepare for an entry in either direction.
The main benefit is automation: traders can define alternative outcomes before the market reaches either level. However, an OCO order does not remove execution risk. Slippage, market gaps, wider spreads and platform-specific order rules can all affect the final result.
For CFD traders, OCO orders can form part of a structured approach to trade management, but the order settings, execution rules and risks should be understood before they are used.
FAQ
What Does an OCO Order Mean?
The OCO order meaning is straightforward: it stands for One-Cancels-the-Other and refers to two linked orders where, once one order is executed, the other is automatically cancelled. The exact trigger and cancellation rules can vary between brokers and trading platforms.
Can an OCO Order Be Used to Enter a Trade?
Yes, where the trading platform supports entry OCO orders. A trader can link a buy stop above the current market with a sell stop below it. If one order is activated and executed, the other is cancelled automatically. This can be used to prepare for a breakout in either direction, although execution rules and availability vary by provider.
Does an OCO Order Guarantee Protection Against Slippage?
No. An OCO order controls the relationship between two linked orders but does not guarantee their execution price. A standard stop-loss may be filled at a worse price than expected during market gaps, periods of low liquidity or fast price movements. Some providers offer guaranteed stop-loss orders separately.
What Is the Difference Between an OCO Order and a Bracket Order?
An OCO order describes the cancellation relationship between two linked orders: when one executes, the other is cancelled. A bracket order typically combines an entry or existing position with two exit orders, usually a take-profit and a stop-loss. The two exit orders are often linked using OCO logic so that executing one cancels the other.
How Do Overnight Fees Affect OCO Orders?
Overnight fees apply to an open leveraged position, not to the OCO instruction itself. A pending entry OCO does not incur overnight funding before either order opens a position. If an exit OCO remains attached to an open cash CFD position held overnight, the position may continue to incur overnight funding until it is closed. Charges and cut-off times vary by provider and product.





