Skip to content
Glossary

One-Cancels-the-Other Order

Updated 27 November 2026 · 4 min read · Reviewed against our editorial policy

In brief

A one-cancels-the-other (OCO) order is a pair of linked orders in which the execution of one automatically cancels the other. Investors most often use it to set a profit target and a protective stop on the same position at once. It automates the exit plan, but it does not remove risks such as gaps and slippage.

  • An OCO order links two orders so that only one of them can ever execute, because the first fill cancels the other.
  • The classic use is pairing a limit order above the market as a profit target with a stop order below it as protection.
  • OCO orders enforce a plan made in advance, but they do not guarantee the price at which the stop side fills.

Definition

A one-cancels-the-other (OCO) order is a pair of conditional orders submitted together, where the execution of either order automatically cancels the remaining one.

How it works

An ordinary order stands alone. If you hold a position and want both a profit target and a safety net, you would otherwise have to place two separate orders and risk both being live at once. If both could fill, you might sell more than you own, or end up with an unintended position.

An OCO order solves this by linking the two orders into one instruction. The broker or exchange system watches both:

  • If order A executes, order B is cancelled.
  • If order B executes, order A is cancelled.
  • If neither triggers, both remain working until they expire or you cancel the pair.

The two legs are usually different order types. The most common pairing is:

  • A limit order to sell at a higher price (the target).
  • A stop-loss order or stop-limit order to sell at a lower price (the protection).

The same logic can be used to enter a position. For example, a buy limit below the market can be paired with a buy stop above it, so that whichever price level is reached first starts the trade and the other is withdrawn.

Availability varies. Some brokerages and trading platforms offer OCO natively, some call it by another name, and some offer only a related feature such as a bracket order. Order types, time-in-force options and rules differ by platform and country, so check what your own platform supports.

Worked example

Assume, purely hypothetically, that an investor holds 100 shares of a company trading at 100 (in any currency; ₹100 or $100 works the same way). The investor decides in advance:

  • Take profit if the price rises to 115.
  • Limit the loss if the price falls to 92.

The investor places an OCO order with two sell legs:

  1. A sell limit at 115.
  2. A sell stop at 92.

There are two main outcomes.

Outcome 1: price rises. The price reaches 115 and the limit leg fills. Gain: (115 − 100) × 100 = 1,500, before costs and tax. The stop at 92 is cancelled automatically.

Outcome 2: price falls. The price drops to 92 and the stop is triggered, becoming a market order. Suppose it fills at 91.50 because prices moved quickly. Loss: (100 − 91.50) × 100 = 850, before costs. The limit at 115 is cancelled automatically.

The figures are illustrative, not a forecast. Notice that the planned loss was 800 but the actual loss was 850. That gap is slippage, discussed below.

Why it matters to investors

  • Discipline. The exit rules are decided calmly in advance rather than in the middle of a fast market, which helps counter impulsive decisions linked to loss aversion.
  • Convenience. An investor who cannot watch the market all day still has both scenarios covered.
  • Safety against double execution. Without the link, a target and stop could both remain live, creating the risk of an accidental short position or an unwanted trade.
  • Defined risk planning. Setting both levels forces a view on the ratio between potential gain and potential loss before the trade begins. In the example, the planned gain of 1,500 against a planned loss of about 800 is roughly 1.9 to 1.

What to watch out for

  • Gaps. If a stock closes at 100 and opens the next day at 85 after bad news, a stop at 92 becomes a market order at the open and may fill near 85, far below the trigger.
  • Slippage. In thin or fast markets, stop orders can fill at worse prices than expected. A stop-limit leg controls the price but may not fill at all.
  • Short-term noise. A stop placed too tightly may be triggered by routine volatility, selling a position that then recovers.
  • Expiry. Many OCO orders carry a time-in-force setting. If it lapses, you may be left with no protection and not notice.
  • Partial fills. In some systems a partial fill on one leg may reduce the other leg's quantity rather than cancel it entirely. Read your platform's rules.
  • Platform differences. Not every venue supports OCO for every instrument, and some may require orders to be placed during specific sessions.

Common mistakes

  • Choosing the stop level from the amount one hopes to avoid losing, instead of from a sensible distance relative to the asset's normal price movement.
  • Assuming the stop guarantees the exit price.
  • Forgetting to cancel the pair after changing the original position, such as selling part of the holding manually.

Related concepts

An OCO order builds on the limit order and the stop-loss order. A bracket order extends the idea by attaching a target and a stop to an entry order. Understanding slippage, the order book and volatility helps explain how these orders behave in practice.

Frequently asked questions

What is the difference between an OCO order and a bracket order?

An OCO order links two orders so that one cancels the other, and it is usually placed on a position you already hold or as two alternative entries. A bracket order typically combines three parts: an entry order plus a profit target and a stop that become active once the entry fills. Terminology varies by platform, so check how your broker defines each.

Does an OCO order guarantee that my stop-loss will fill at the price I set?

No. When the stop level is reached, the stop leg usually turns into a market order, which fills at the next available prices. In a fast market or after an overnight gap, that price can be noticeably worse than the trigger. A stop-limit leg sets a price floor but risks not being filled at all.

Can I use an OCO order to buy as well as sell?

Yes, on platforms that support it. An investor might place a buy limit below the current price and a buy stop above it, so that whichever level is reached first opens the position and the other order is cancelled. This is more common with active trading than with long-term investing, and the rules differ between brokers.

Continue learning

Educational content only — not investment, tax or legal advice. See our disclaimer.