StructureX

Home › Comparisons

OCO vs bracket order: set your exit before you enter

An OCO order links two exits so only one can fill. A bracket order adds the entry. Both let your plan run without you watching every tick.

Comparison · 5-minute read · By Paspir · Updated 2026-11-07

The short answer

An OCO order (one-cancels-other) is a pair of orders. When one fills, the other is canceled. Traders often use it for a stop and a target on a trade they're already in.

A Bracket order is a full plan in one ticket: an entry order, plus a stop and a target that wait in the background. When the entry fills, the stop and target switch on as an OCO pair.

In short: a bracket is an entry with an OCO attached.

Side by side

OCO orderBracket order
Parts2 orders3 orders: entry, stop, target
Includes the entry?NoYes
When you use itYou're already in a tradeBefore you enter
What happens on a fillThe other order cancelsEntry fill turns on the stop and target; one exit cancels the other
Main jobManage an open tradePlan the whole trade at once
Also used forTwo entries, like a breakout either wayMost planned trades
Platform supportMost brokersMost brokers, sometimes called "attached orders"

How an OCO works

You bought a stock at $50. You plan:

Place them as an OCO. If price hits $54 first, the target fills and the stop is canceled. If price hits $48 first, the stop fills and the target is canceled.

Without the link, you could end up with an extra order still live after you're out. If price later hit it, you'd be in a new trade you never planned.

How a bracket works

Same plan, placed before you enter:

  1. Entry: buy limit at $50.
  2. Stop: sell stop at $48.
  3. Target: sell limit at $54.

Nothing but the entry is live at first. When the entry fills, the stop and target turn on. When one of those fills, the other cancels.

Risk is $2 a share. Reward is $4 a share. That's a 2:1 plan. The risk-reward calculator checks this for you.

An illustration, not a result: entry, stop and target planned together before the trade.
An illustration, not a result: entry, stop and target planned together before the trade.

OCO: strengths and limits

The good parts:

The limits:

Bracket: strengths and limits

The good parts:

The limits:

Size first, then bracket. Your stop distance sets your size. $2 risk a share and $100 to risk means 50 shares. The position size calculator does this in seconds.

Which fits you?

  1. You plan trades ahead of time. A bracket fits best. One ticket, whole plan.
  2. You enter by hand at the moment. Add an OCO right after the fill, before anything else.
  3. You want to catch a breakout either way. Two entry stops linked as an OCO can do that, each with its own stop.

When both sides fill anyway

The cancel is not instant. In a fast move, the stop and the target can both trade before the cancel lands (hypothetical).

You hold 100 shares. The stop is $48 and the target is $54. Price falls through $48 and the stop sells your 100. A spike then trades the target, which sells another 100 you no longer have. You are short 100 shares at $54.

You buy them back at $60.

What happenedCash from the salesCost to get flatVersus a stop-only exit
Only the stop filled, at $48$4,800already flatthe planned loss
Both filled, then you buy 100 at $60$4,800 + $5,400$6,000−$600

The extra sale brought $5,400 and the buy cost $6,000. That gap is −$600 on top of the stop. The link between the orders makes this rare. It does not make it impossible. If it happens, buy the short amount back the same day. My guide to a short you did not mean to open walks that cover.

Common mistakes

Questions

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

An OCO links two orders so one cancels the other. A bracket adds an entry order, and once the entry fills, its stop and target act as an OCO pair.

Does TradingView support bracket orders?

When you trade through a connected broker on TradingView, you can usually add a stop loss and take profit to an order. What's available depends on the broker.

Can I use an OCO order for entries?

Yes. Some traders place a buy stop above a range and a sell stop below it as an OCO, so only one side triggers. Each still needs its own stop.

What happens to a bracket if the entry never fills?

The stop and target never turn on. The entry stays working until it fills, you cancel it, or it expires based on its time setting.

Follow along

XTradingViewFacebook