OCO and bracket orders explained
An OCO (one-cancels-other) order links two orders so that when one fills, the other is canceled. A bracket order adds an entry order in front: once you get in, a take-profit and a stop-loss are placed around your position as an OCO pair.
OCO in one sentence
"Sell my shares at $23 if it goes up, or sell them if it falls to $18.50, whichever happens first, and cancel the other one."
Without the link, you could have two separate sell orders working on the same shares. If one filled and you forgot to cancel the other, the second could fill later and sell shares you no longer have, which could open a short position or be rejected, depending on your account. OCO handles that cleanup automatically.
Bracket in one sentence
"Buy 100 shares at $20. Once that fills, place a take-profit sell at $23 and a stop-loss at $18.50 as an OCO pair."
A bracket is three orders: the entry, the take-profit (usually a limit order) and the stop-loss (a stop or stop-limit order). The two exit orders only go live after the entry fills. Brokers may also call the entry-then-exits structure "OTO" (one-triggers-other) or "OTOCO," and some use the word bracket for an OCO on an existing position. The names vary, so read what the ticket actually shows.
Worked example
Example numbers
Bracket order: buy 100 shares with a limit at $20. Take-profit: sell limit $23. Stop-loss: sell stop $18.50.
If the stock rises to $23, the limit sells your shares at $23 or better and the stop is canceled. If it falls to $18.50, the stop triggers and the take-profit is canceled.
The gap case: the stock closes at $19 and opens the next day at $17. The stop triggers and becomes a market order, selling near $17: (17 − 20) × 100 = −$300, twice the planned loss. If the stop leg were a stop-limit with a limit at $18.25 instead, it would not fill at $17, and you would still hold the shares.
You can play out the stop leg’s gap behavior in the stop vs stop-limit simulator, and read more in what is a stop-limit order.
The parts of a bracket ticket
- Entry: buy (or sell short) with an order type, usually limit or market.
- Take-profit: a limit order on the other side. For a long position, a sell limit above your entry.
- Stop-loss: a stop or stop-limit on the other side. For a long position, a sell stop below your entry.
- Quantity: the exits should match the entry quantity.
- Time in force: for each leg. A day-only stop that expires tonight leaves you without protection tomorrow.
Plain-English check: "If I get in at $20, I am out at $23 for +$300, or out around $18.50 for about −$150, maybe worse on a gap."
What can go differently than planned
Gaps and fast markets
The stop leg behaves like any stop order. A plain stop can fill well below the stop price. A stop-limit can fail to fill. A bracket does not change that.
Partial fills
If the entry only partly fills, say 60 of 100 shares, brokers differ on how they size the exit orders. Some adjust them to 60 shares, some handle it differently. Check the open orders after a partial fill.
Partial exits
If the take-profit fills for only part of the shares, the other leg may be reduced or may stay at the original size, depending on the broker. Again, look at what is still working.
Canceling the entry
If the entry never fills and you cancel it, the attached exits should go away too. It is still worth checking that nothing is left open.
Editing one leg
Changing one leg can sometimes break the link or replace the order. After any edit, confirm both legs are still linked.
Trading hours
Whether stop and limit legs can trigger outside regular hours depends on the broker and the order settings.
Brackets with options
Some brokers allow bracket or OCO exits on options positions. Option prices can jump around more, and the bid-ask spread can be wide, so stop legs on options can trigger on brief moves and fill at prices far from what you expected. If your broker offers it, read how they decide when an option stop triggers.
Why traders use them
- The exit plan is written down before the trade. You decide the planned reward and risk before you are emotional about the position.
- No double-fill cleanup. The cancel happens automatically.
- You do not need to watch the screen. Both exits are working while you are away.
None of that makes the trade itself better or worse. It just makes the plan visible. A 2 : 1 planned reward-to-risk is only a plan; how often each side gets hit is a separate question.
Common mix-ups
- Putting the stop on the wrong side. For a long position the sell stop goes below the current price. A sell stop above the current price may trigger right away.
- Mismatched quantities. If the exits are larger than the position, the extra shares could open a short position.
- Thinking the stop price is a guaranteed price. It is a trigger, not a promise.
FAQ
What is an OCO order?
One-cancels-other: two linked orders where filling one automatically cancels the other, such as a take-profit limit and a stop-loss on the same shares.
What is a bracket order?
An entry order with two exit orders attached, a take-profit and a stop-loss. Once the entry fills, the exits go live as an OCO pair.
Does a bracket order guarantee my stop-loss price?
No. If the stop leg is a plain stop, it becomes a market order when triggered and can fill below the stop on a gap. If it is a stop-limit, it may not fill at all.
What is the difference between OCO and OTO?
OCO links two orders so one cancels the other. OTO (one-triggers-other) places a second order only after the first one fills. A bracket combines both: the entry triggers an OCO pair of exits.
What happens to a bracket if only part of my entry fills?
It depends on the broker. Some resize the exit orders to match the filled shares and others handle it differently, so check your open orders after a partial fill.
Educational only. This page explains order mechanics with example numbers. It is not investment advice, not a recommendation to buy or sell anything, and not a broker. Check your own broker’s rules, fees and assignment terms before you trade.