Skip to content
On this page
  1. Key Takeaways
  2. What It Is
  3. The Intuition
  4. How It Works
  5. Worked Example
  6. Common Mistakes
  7. Frequently Asked Questions
  8. Sources
  9. Disclaimer
← All concepts
Trading MechanicsBeginner4 min read

OCO and Bracket Orders: Automate Both Exits at Once

A One-Cancels-Other (OCO) order links two exit instructions so that filling one automatically cancels the other. A bracket order wraps an entry with an OCO exit: a target on the upside, a stop on the downside.

Key Takeaways

  • An OCO links two orders so the first to fill cancels the other, preventing the dangerous scenario of both exits triggering.
  • A bracket order automates the full trade: one entry and two linked exits (target and stop) without any screen time after submission.
  • The most dangerous mistake is mismatched share counts between the entry fill and the OCO children, leaving unprotected shares.
  • Bracket orders enforce risk-reward discipline by requiring you to define both the upside target and the downside stop before the trade opens.

Key Takeaways

  • An OCO links two orders so the first to fill cancels the other, preventing the dangerous scenario of both exits triggering.
  • A bracket order automates the full trade: one entry and two linked exits (target and stop) without any screen time after submission.
  • The most dangerous mistake is mismatched share counts between the entry fill and the OCO children, leaving unprotected shares.
  • Bracket orders enforce risk-reward discipline by requiring you to define both the upside target and the downside stop before the trade opens.

What It Is

An OCO order pairs two orders that sit in the market together but can only fill once. When one fills, partially or in full, the broker cancels its sibling. FINRA describes conditional orders of this type as common tools retail platforms offer for managing exits without constant screen time.

A bracket order uses that OCO logic on top of an entry. You submit an entry order (market or limit). Once that entry fills, the broker attaches a bracket: one upside exit (a sell limit as the profit target) and one downside exit (a sell stop as the risk cap). The two exits are linked as an OCO. The first to trigger closes the trade, and the other dies.

The Intuition

Most traders know where they want to get out on the downside and where they would happily take profits on the upside. Staring at a screen to manage both exits by hand is exhausting and error-prone. OCO and bracket orders push both targets to the exchange or broker and let the software manage the race between them.

The design also prevents a nasty failure mode. Without OCO linkage, if your stop fills first and the target order is still live, a later rally could accidentally open a brand-new short position at your old target price. Linking the two orders eliminates that risk.

How It Works

An OCO ties two orders together with a shared cancellation rule. Most brokers support sell OCOs for long positions and buy OCOs for short positions.

Long 100 shares at $50
OCO exit:
  Sell limit 100 @ $60  (profit target)
  Sell stop  100 @ $45  (stop-loss)

If stock reaches $60 first -> sell limit fills, stop canceled
If stock reaches $45 first -> stop triggers, sell limit canceled

A bracket simply prepends an entry order.

Bracket to enter long:
  BUY limit 100 @ $49          (entry)
  then attach OCO exit:
    SELL limit 100 @ $58       (target)
    SELL stop  100 @ $46       (stop)

If the entry fills, the two exits go live as an OCO. If the entry never fills, no exits exist. Some platforms also support bracket attachments with trailing stops instead of a fixed stop price.

Worked Example

You want to buy XYZ on a pullback to $49 with a target of $58 and a stop at $46. You submit a bracket order: buy limit at $49, OCO children at $58 (sell limit) and $46 (sell stop).

Monday: the stock opens at $50.20 and dips through the morning. At 11:14 a.m. it prints $49.00 and fills your entry. The two children activate immediately in the OCO group.

Tuesday through Thursday: the stock grinds up to $56 with no trouble.

Friday: a strong number lifts the stock to $58.10. Your sell limit fills at $58.00. Automatically, the $46 stop-loss cancels. Your round-trip profit is $9 per share minus any commission, with no manual intervention after the original submission.

Had the stock instead dropped to $46 before $58, the stop would have triggered, the target would have canceled, and you would have exited with a $3 per-share loss on the same auto-pilot.

Common Mistakes

  1. Misaligned share counts in the bracket children. If the entry fills 100 shares but the OCO children are coded for 50 each, you are left with 50 unprotected shares. Most platforms auto-match quantities, but custom setups need a check.

  2. Confusing OCO with OTO. One-Triggers-Other (OTO) is the cousin: one order submission triggers the other to go live. A bracket is effectively an OTO of the entry with an OCO of the exits. Different brokers use different names for the same idea. Read the labels before trusting them.

  3. Forgetting the time-in-force cascade. If the entry is GTC and the exits are day orders, your position can fill tomorrow with no protection tonight. Match the TIF across the bracket.

  4. Setting target and stop too close together. A bracket with a 1 percent target and a 3 percent stop is a poor risk-reward profile. Before placing the bracket, compute the ratio. Many investors will not take a trade below 1.5:1 reward to risk.

  5. Assuming the exit fills at the limit or stop price. The sell limit fills at your price or better, but the sell stop triggers a market order whose fill can slip. Plan for realistic fill prices, not the headline numbers on the ticket.

Frequently Asked Questions

Q: What is an OCO bracket order in simple terms? An OCO links two orders, a profit target and a stop-loss, so that when one fills, the exchange automatically cancels the other. A bracket wraps that OCO around an entry order so the entire trade is managed from one submission.

Q: How does an OCO bracket order affect investment decisions? It enforces pre-trade discipline. You cannot place the bracket without deciding both your upside exit and your downside limit, which forces a risk-reward calculation before the trade goes live.

Q: What is a real-world example of an OCO bracket order? You submit a buy limit at $49, a sell limit at $58 as the target, and a sell stop at $46 as the stop. The entry fills Monday. Friday a rally takes the stock to $58.10, the target fills, and the stop auto-cancels. No manual action needed.

Q: How can investors use OCO bracket orders effectively? Match the time-in-force across the entry and both exits. Verify share counts after partial fills. Confirm the broker's specific OCO naming convention, as platforms call the same idea OTO, bracket, and OCO interchangeably.

Q: How is an OCO order different from two separate orders? Two separate orders are independent. If your stop triggers and closes the position but your sell limit is still live, a later rally could accidentally open a short position at your old target. The OCO linkage prevents that.

Sources

  1. SEC Investor Bulletin. "Understanding Order Types." https://www.sec.gov/resources-for-investors/investor-alerts-bulletins/ib_ordertypes
  2. FINRA. "Order Types." https://www.finra.org/investors/investing/investment-products/stocks/order-types
  3. Charles Schwab. "How to Use Advanced Stock Order Types." https://www.schwab.com/learn/story/how-to-use-advanced-stock-order-types
  4. Interactive Brokers. "One-Cancels-Another (OCA/OCO) Orders." https://www.interactivebrokers.com/en/trading/orders/oca.php

Disclaimer

This article is educational content only and is not financial advice. Nothing here is a recommendation to buy, sell, or hold any security. Consult a licensed advisor before making investment decisions.

Back to your knowledge path

The IWP Substack

You understand the concept. Now see it applied.

The Investing With Purpose Substack turns ideas like this into research and risk-managed trade plans on real stocks, updated every week.

Read on Substack (opens in a new tab)

Related concepts