Home
Trade
LongbridgeAI

One-Cancels-The-Other (OCO) Order: Definition Uses Examples

1352 reads · Last updated: March 4, 2026

A One-Cancels-The-Other Order (OCO) is a type of trading instruction that combines two orders, with the condition that when one of the orders is executed, the other is automatically canceled. OCO orders are widely used in financial market trading strategies to help investors manage risk and achieve trading goals.Key characteristics of a One-Cancels-The-Other Order include:Dual Orders: Comprises two interrelated orders, which can be buy or sell instructions.Automatic Cancellation: When one of the orders is triggered and executed, the other order is automatically canceled to avoid double execution or conflict.Risk Management: Investors can set OCO orders at different price levels to lock in profits or limit losses.Flexibility: Suitable for various trading strategies, such as breakout trading, retracement trading, and stop-loss protection.A common example of an OCO order:Buy/Sell OCO Order: If a stock's current price is $100, an investor can set an OCO order that includes a buy stop order at $105 and a sell stop order at $95. If the price rises to $105, the buy order is triggered, and the sell stop order is automatically canceled. Conversely, if the price falls to $95, the sell stop order is triggered, and the buy stop order is automatically canceled.By using One-Cancels-The-Other orders, investors can more effectively manage their trading strategies and reduce the risks associated with market volatility.

1. Core Description

  • A One-Cancels-The-Other Order (often shortened to OCO order) links two orders so they act as one decision: if one executes, the other is canceled.
  • Investors use a One-Cancels-The-Other Order to automate "either/or" outcomes such as take profit vs. stop loss, reducing the need to watch prices constantly.
  • A One-Cancels-The-Other Order can support operational discipline, but it still faces real-market risks such as gaps, partial fills, and broker-specific rules.

2. Definition and Background

A One-Cancels-The-Other Order is a conditional trading instruction that bundles two linked orders (commonly a limit order and a stop order) into a single group. The defining rule is mutual exclusivity: once one order is triggered and filled, the other order is automatically canceled.

Why OCO exists

Before electronic trading became dominant, traders often wanted to express a simple plan: "If price goes up to my target, sell. If it drops to my risk limit, sell." Doing this manually means watching the market and canceling the unused order in time, which can be difficult during fast moves. The One-Cancels-The-Other Order formalized that workflow into an automated mechanism.

Key components of a One-Cancels-The-Other Order

ComponentWhat it means in practice
Two legsTwo separate orders, submitted as a linked pair
Triggers vs. executionA stop price may "trigger" an order, but the fill price depends on liquidity
Auto-cancel logicWhen one leg fills (fully, or per broker rules), the other is canceled
Broker rules matterPartial fills, session rules, and trigger basis (last vs. bid/ask) can vary

Common mental model

Think of a One-Cancels-The-Other Order as a pre-written decision tree. You are not predicting the future. You are defining what you will do under two alternative outcomes, and letting the trading system enforce it.


3. Calculation Methods and Applications

OCO is primarily an order-handling tool, so you typically do not "calculate" OCO itself. What you do calculate are the price levels and risk sizes that feed into the two legs.

Setting OCO levels with simple, auditable rules

Below are common rule styles that investors use to choose OCO prices. They are not guarantees, but structured methods to reduce random decision-making.

Percentage bands (simple and beginner-friendly)

You can define a take-profit limit and a stop based on percentage distance from the entry price.

  • Entry price: $100
  • Take-profit limit: $110 (+10%)
  • Stop-loss trigger: $95 (-5%)

This method is easy to review in a trading journal. The tradeoff is that it may ignore volatility differences across assets.

Volatility-aware distance (conceptual)

Some traders set wider distances for more volatile instruments and tighter distances for calmer ones. Even without complex formulas, you can apply a consistent idea: "Higher typical daily swings → wider OCO band."

For an educational workflow, the key is consistency. You should be able to explain why the stop is $95 rather than $99.

Applications: what a One-Cancels-The-Other Order is used for

A One-Cancels-The-Other Order typically supports one of two intents.

Exit management for an existing position (most common)

  • Leg A: sell limit at a profit-taking price
  • Leg B: sell stop (or stop-limit) at a risk-control level

If either leg fills, the other is canceled. This helps reduce the risk of two independent sell orders over-closing, or creating unintended exposure.

Direction decision around a level (entry planning)

Some traders use OCO-like logic to decide direction when price is near a key level. However, placing opposing entry orders can create exposure if cancellation is not instantaneous during fast markets. For many investors, OCO is clearer as an exit tool rather than a dual-entry tool.

Why the "trigger vs. fill" distinction changes outcomes

A stop order is not a promise of the stop price. It is a trigger condition that can convert into a market order (or a limit order, if a stop-limit is used). In thin liquidity or during price gaps, a fill may occur away from the trigger. A One-Cancels-The-Other Order coordinates cancellation. It does not change how the market fills orders.


4. Comparison, Advantages, and Common Misconceptions

This section helps you avoid treating a One-Cancels-The-Other Order as "magic risk control." It is a useful tool, but only when you understand what it can and cannot do.

Advantages of a One-Cancels-The-Other Order

Better risk control as a packaged plan

A One-Cancels-The-Other Order lets you pair:

  • a profit-taking exit (limit), and
  • a loss-limiting exit (stop)

This can reduce the chance of having no protective plan when you step away from the screen.

Automation supports discipline

Many losses are not caused by analysis alone, but by slow reactions, hesitation, or forgetting to cancel an order. A One-Cancels-The-Other Order can reduce these operational mistakes because the platform manages the mutual cancellation.

Cleaner order management

Instead of managing two separate orders that you must remember to edit and cancel, you manage one linked structure. This can reduce "double execution" risk (for example, a limit sells your shares, but the stop remains active and later sells again if you re-enter unintentionally).

Disadvantages and constraints

Execution risk and slippage

In rapid moves, a stop can fill worse than expected. Once it fills, the profit-taking leg is canceled, locking the outcome. This is expected behavior, but it may surprise investors who assumed the stop price would be the fill price.

Partial fills can create mismatches

Broker handling differs:

  • Some cancel the other leg after the first fill (including partial fills).
  • Others cancel only after the full quantity fills.
  • Some adjust the remaining quantity dynamically.

If you do not know the rule, you can end up under-hedged or with an unintended remaining live order.

Platform and venue differences

A One-Cancels-The-Other Order is not standardized perfectly across all brokers and exchanges. Details like time-in-force, extended-hours eligibility, and trigger basis (last price vs. bid/ask) can change behavior.

Comparison: OCO vs. related order structures

Order typeStructureKey logicTypical use
One-Cancels-The-Other OrderTwo peer ordersOne fills → other cancelsTake-profit vs. stop-loss
Bracket orderEntry + two exitsExits activate after entry. Exits often form OCOFull trade lifecycle automation
OTO (One-Triggers-the-Other)Sequential pairA fills → B activatesPlace exit only after entry fills
Stop-loss orderSingle orderTrigger converts to execution orderBasic downside protection
Limit orderSingle orderPrice control, may not fillTargeted entry or exit price

Common misconceptions (and the practical correction)

"One fills, the other is always canceled instantly"

Real markets involve routing and acknowledgment. During fast markets, the cancel request may not be instantaneous. Treat a One-Cancels-The-Other Order as a system feature that can reduce operational error, not as a guaranteed atomic transaction.

"OCO guarantees my maximum loss"

OCO coordinates orders. It does not guarantee fill price. Gaps and illiquidity can cause slippage, and losses can exceed the stop level if the market trades through it quickly.

"OCO is the same as a bracket order"

A bracket order is typically an entry plus two exits (profit-take and stop). The exit pair often behaves like a One-Cancels-The-Other Order, but the overall structure is different. Confusing them can lead to placing an order type that does not match your intent.

"Editing one leg is harmless"

Some platforms treat edits as cancel and replace, which can break the linkage. After any modification, confirm both legs are still grouped as a One-Cancels-The-Other Order.


5. Practical Guide

A One-Cancels-The-Other Order is easier to use correctly when you treat it as a checklist-driven process rather than a last-second click.

Step 1: Define the scenario in one sentence

Examples of clear intent:

  • "I already hold shares and want a target and a stop."
  • "I want a pre-defined exit plan during a volatile week."

If you cannot explain your intent simply, the OCO setup may be inconsistent.

Step 2: Choose the two legs that match your intent

Common exit pairing for a long stock position:

  • Leg A: sell limit (profit-taking)
  • Leg B: sell stop (loss-limiting) or sell stop-limit (price-controlled)

Step 3: Set prices using a repeatable rule

Use one rule set and keep it consistent:

  • Percent bands (easy)
  • Technical levels (support and resistance)
  • Volatility-aware buffer (conceptual, but consistent)

Avoid placing triggers so close that normal "noise" hits them. Tight triggers can increase whipsaw risk: one leg triggers, cancels the other, and price reverses shortly after.

Step 4: Align quantity and confirm position intent

A common practice is to use the same quantity on both legs, especially for exit OCO. This can reduce the chance of partial exposure (for example, only part of your position is covered due to a mismatch).

Step 5: Configure time-in-force and trading session rules

  • DAY vs. GTC changes how long your OCO remains active.
  • Extended-hours rules can differ by venue and order type.

If one leg expires earlier than the other, the "mutual cancellation" design may not protect you as intended.

Step 6: Decide between stop and stop-limit

  • Stop (market after trigger): higher chance of execution, lower price control.
  • Stop-limit: more price control, but risk of no fill if price moves beyond your limit.

A protective stop is often about certainty of exit rather than a specific price.

Step 7: Confirm linkage behavior on the broker platform

On Longbridge ( 长桥证券 ), confirm:

  • whether the OCO is displayed as a linked group,
  • what happens on partial fills,
  • what trigger basis is used (last price vs. bid or ask),
  • whether both legs are active in the sessions you trade.

Case Study (hypothetical scenario, not investment advice)

Assume a U.S.-listed stock is trading at $100. An investor holds 100 shares and wants a defined exit plan using a One-Cancels-The-Other Order on Longbridge ( 长桥证券 ).

Investor's rule (simple percentage bands):

  • Take profit at +10%
  • Cut loss at -5%

OCO setup:

  • Leg A: Sell 100 shares at $110 (sell limit)
  • Leg B: Sell 100 shares at $95 trigger (sell stop)

Possible outcomes:

  1. If the stock trades up and fills the sell limit at around $110, the stop leg is canceled automatically.
  2. If the stock drops and triggers the stop around $95, the limit leg is canceled automatically, and the investor exits (the fill may be below $95 if the market gaps).

What the investor logs after the trade (for review):

  • Entry price, the 2 OCO levels, and time-in-force
  • Actual fill price and any slippage
  • Whether cancellation happened cleanly, and how quickly the platform reported it

This type of log can help you evaluate whether the One-Cancels-The-Other Order behaved as expected under the broker's rules.


6. Resources for Learning and Improvement

Broker documentation first

The most important resource is your broker's official explanation of:

  • partial-fill handling,
  • cancellation timing,
  • stop vs. stop-limit mechanics,
  • session eligibility and time-in-force rules.

For platform-specific behavior, consult Longbridge ( 长桥证券 ) order-type documentation and FAQs.

Exchange and regulator education pages

To understand why stops behave differently than limits (especially around auctions, halts, and fast markets), exchange rulebooks and regulator education pages can help clarify mechanics and terminology.

Market microstructure and execution-quality learning

Look for learning materials focused on:

  • spread and liquidity,
  • slippage and gaps,
  • order priority and routing,
  • how auctions differ from continuous trading.

These topics explain many "unexpected" One-Cancels-The-Other Order outcomes without treating the tool itself as the cause.

Community discussions (verify before using)

Forums can highlight edge cases (such as session boundaries or platform UI behavior), but treat them as leads. Verify any claim against official broker and venue rules.


7. FAQs

What is a One-Cancels-The-Other Order in plain English?

A One-Cancels-The-Other Order is 2 linked orders where only one can finish. When one order fills, the other is canceled automatically. It is commonly used to set a profit target and a stop loss at the same time.

When does a One-Cancels-The-Other Order make the most sense?

It is most useful when you want a pre-defined "either/or" plan, especially when you cannot watch prices continuously, or when you expect higher volatility that could make manual cancellation too slow.

Can a One-Cancels-The-Other Order prevent losses completely?

No. It helps you execute a plan, but it cannot remove market risk. Stops can slip during gaps, and limits may not fill. The tool reduces operational mistakes, not uncertainty.

What is the difference between a stop and a stop-limit inside an OCO order?

A stop typically becomes a market order after triggering, prioritizing execution. A stop-limit becomes a limit order after triggering, prioritizing price control but risking no fill if the market moves past your limit.

What happens if one leg partially fills?

It depends on broker rules. Some systems cancel the other leg immediately on the first partial fill. Others wait until the full quantity fills. Others adjust remaining quantities. Confirm the exact policy on Longbridge ( 长桥证券 ) before relying on it.

Can both legs ever execute?

Under normal conditions, the design is that one fill cancels the other. In fast markets, there can be brief timing windows before cancellation is acknowledged. This is uncommon but possible, which is why understanding broker handling matters.

Is a One-Cancels-The-Other Order the same as a bracket order?

Not exactly. A bracket order usually includes an entry order plus 2 exit orders, and the exit orders often behave like an OCO pair. OCO is the mutual-cancel relationship. A bracket is a broader multi-order structure.

How do I confirm my One-Cancels-The-Other Order is linked correctly?

Look for an order group or OCO identifier that shows both legs together. After any edit, re-check that both legs remain linked, and that quantities, time-in-force, and sessions match your intent.


8. Conclusion

A One-Cancels-The-Other Order is a practical way to convert a trading plan into enforceable instructions: 2 linked orders represent 2 alternative outcomes, and when one fills, the other is canceled. Used thoughtfully, it can support discipline, reduce operational errors, and simplify risk-control workflows. However, you still need to account for real execution limits such as slippage, gaps, partial fills, and broker-specific rules.

Suggested for You

Refresh