Skip to content
Wildflower
Join waitlist

Bracket orders and OCO: how an entry, stop and target work together

By Bec, futures trader and founder of Wildflower · Updated

A bracket order is an entry order sent with two exit orders attached: a stop loss and a profit target. The exits only go live once the entry fills. They’re linked as OCO, which stands for one cancels the other: when one exit fills, the other is cancelled, so nothing is left behind.

Target 108: filledEntry 100: filledStop 96: cancelled
A buy at 100 with its stop at 96 and its target at 108. Made-up prices.
Target filledEntry 100Stop cancelled
A buy at 100 with its stop at 96 and its target at 108. Made-up prices.

What a bracket order is, and why it’s called that

Every trade needs a way in and a way out. A sends all of it at once: the entry, plus two exits waiting on either side of it.

One exit is the , for if the trade goes against you. The other is the , also called a take profit, for if it goes your way. Drawn on a chart, the two sit above and below the entry like brackets around it. That’s where the name comes from.

The stop is almost always a . The target is usually a , because it waits for a better price. Read about order types.

How a bracket order works, step by step

Target 108Buy limit 100Stop 96

1. Send all three

A buy limit at 100, with a stop at 96 and a target at 108 attached. The two exits wait.

Filled

2. The entry fills

Price comes down to 100 and the buy fills. Now the stop and target are live.

Target filled

3. One exit is reached

Price climbs to 108. The target fills and the trade is closed.

Stop cancelled

4. The other is cancelled

The stop at 96 is cancelled straight away. Nothing is left waiting.

Step 4 is the OCO part. stands for one cancels the other. The stop and the target are linked, so the moment one fills, the other is cancelled. If the stop had been reached first, the target would have been cancelled instead.

Steps 1 and 2 have a name too. The entry triggers the exits, so traders call it one triggers the other (OTO). A bracket is both at once: the entry triggers two exits, and those two cancel each other.

Bracket orders on long and short trades

Long: stop below, target aboveTargetStop
Short: stop above, target belowTargetStop

Long (you buy first). You make money if price rises, so the target is a sell limit above the entry and the stop is a sell stop below it.

Short (you sell first). You make money if price falls, so the target is a buy limit below the entry and the stop is a buy stop above it.

Where the stop and target go is your choice. There’s no single rule. The distances decide what one trade can lose at its stop, before and fees, and what it makes at its target. Read about risk to reward.

What can happen to a bracket order

Target reachedThe target fills. The stop is cancelled.
Stop reachedThe stop fills. The target is cancelled.
Entry never filledThe stop and target never went live.

The target is reached. The target fills, the stop is cancelled, and the trade is done.

The stop is reached. The stop fills, the target is cancelled. Once triggered, a stop fills where the market is, so it can fill past its price in a fast market or a gap. Read about stop losses.

The entry never fills. If price never reaches a limit entry, there’s no trade. The exits never go live. The entry waits until you cancel it or it runs out of time.

Part of the entry fills. Platforms handle a part in their own ways. Check how yours sizes the exits when only some of the contracts fill.

Why the link between stop and target matters

Linked (OCO)✓Stop cancelled. The later fall does nothing.
Not linked✕Opens a shortThe stop was left waiting and fills later.

Say you placed the stop and target yourself, as two separate orders, with no link. The target fills and the trade is closed. But the stop doesn’t know that. It keeps waiting at your broker.

Later, price falls to 96. The stop triggers and sells. You had no position, so that sale opens a new short trade you never meant to take. Traders call a leftover order like this an orphaned order.

The OCO link is what stops this. It also works the other way: when the stop fills, the target is cancelled, so it can’t open a new trade later either.

Edge cases worth knowing

Both inside one candleThe candle can’t show which came first.

Both in one candle. A long candle can reach both the stop and the target. Live, only one fills, because the first to be reached cancels the other. On a candle chart you can’t see which came first. A backtest has to assume one, and a clear test tells you which it assumed.

Where the link is kept. For CME futures, the exchange doesn’t link the two exits for you. The link is kept by your broker or trading platform. If it’s kept on their servers, it works while your computer is off. If it’s kept only by software on your own computer, it stops when that computer does.

Moving an exit. Most platforms let you move the stop or target to a new price while the trade is open. The other exit stays where it was.

Closing manually. If you close the trade yourself, check that both exits were cancelled. Platforms differ in whether they do this for you.

Often confused with

Stop-limit order. A single order: a stop that becomes a limit when triggered. It isn’t two orders linked together. Read about order types.

OCO entry orders. OCO can also link two entries, such as a buy stop above a range and a sell stop below it. Whichever fills first cancels the other.

Trailing stop. A stop that follows price your way. It can be the stop in a bracket, but it’s a different idea. Read about stop losses.

Mental stop. An exit you keep in your head, with no order placed. A bracket places the exits as real orders.

How the Bot places your stop and target

Every entry placed with its stop and target

When the Bot trades your strategy, each order goes out with its protective stop and its target attached. They wait with your broker, not on your computer, so an open trade keeps its stop and target even if your computer goes offline. Before an account switches on for live trading, Wildflower checks that the connection can place a stop and target with the order and move them. Some broker platforms need a bracket setting switched on for each account first, and the guide for connecting your broker says so. You choose where every stop and target goes.

Free on the Wildflower demo

Common questions

What is a bracket order?

An entry order with a stop loss and a profit target attached. The exits go live once the entry fills.

What does OCO mean?

One cancels the other. Two orders are linked so that when one fills, the other is cancelled.

What’s the difference between a bracket order and an OCO order?

OCO is the link between two orders. A bracket is an entry plus two exits, and the two exits are linked as OCO.

What happens to the stop when the target fills?

In a bracket, it’s cancelled straight away. Without the link, it keeps waiting and could open a new trade later.

Does a bracket order guarantee my stop price?

No. The stop is usually a stop order, so once triggered it fills where the market is, which can be past its price.

Can I move the stop in a bracket order?

On most platforms, yes. You can move the stop or the target to a new price while the trade is open.

What is an orphaned order?

An exit order left waiting after its trade has closed. If price reaches it, it can open a new trade you didn’t intend.

What does OTO mean?

One triggers the other: an order that only goes live once another fills, like the exits in a bracket.

Do bracket orders work if my computer is off?

If the stop and target are held by your broker’s servers, yes. If they’re held by software on your computer, no.

Learn it step by step in Wildflower Trading School, starting with the lesson “Bracket and one-cancels-other orders”.

In the help centre