Trading Insights appInstant alerts + MT4/MT5 auto-trade
Get app

OCO and Bracket Orders: How to Automate Entry, Stop and Target

OCO and bracket orders link several orders so that one fill cancels another or attaches a stop and target. Learn how they work, where they help, and where they can go wrong.

OCO and Bracket Orders: How to Automate Entry, Stop and Target
Timeframe
H1
Best for
Intermediate
Risk per trade
1% or less
In this article
  1. What OCO and bracket orders are
  2. How bracket orders work
  3. Common uses
  4. How to set up an OCO or bracket order, step by step
  5. What can go wrong
  6. The main risks
  7. An illustrative example of an OCO breakout pair
  8. Common mistakes
  9. Frequently asked questions
  10. What does OCO mean?
  11. What is a bracket order?
  12. Do all brokers support OCO orders?
  13. Are OCO orders safe around news?
  14. Your next step

An OCO order, short for "one cancels the other", links two orders so that when one fills, the other is removed. A bracket order attaches a stop loss and a take profit to an entry. Both reduce manual steps once the trade is open. Not every broker or platform supports them in the same way, so check yours. For the basics of orders, see forex order types.

What OCO and bracket orders are

An OCO is common for exits. You place a stop loss and a take profit, and when one is hit, the other is cancelled. This means you cannot end up with a leftover order that opens a new trade by mistake.

An OCO can also link two entries, such as a buy above a range and a sell below it. Only one of them should end up as a trade.

A bracket order places the entry, the stop and the target at the same time. The trade is protected from the moment it opens, even if you are away from the screen.

Three cards on linked orders: an OCO cancels one order when the other fills, a bracket attaches a stop and target to an entry, and both reduce manual steps
Figure 1: Linked orders.

How bracket orders work

Think of a bracket as three orders tied together. The entry can be a market, limit or stop order. The stop and the target are the two "sides" of the bracket, and they work as an OCO pair.

When the entry fills, the stop and target become active. When either exit fills, the other is cancelled. If the entry never fills, you can cancel the whole bracket.

The value is discipline. You decide the entry, stop and target before the trade starts, when your head is clear, and the platform carries out the plan.

Common uses

Breakout traders can place a buy above a range and a sell below, and cancel the other when one fills. Some traders use the same idea around news, but fast markets can fill the wrong side or slip. See trading the news spike and slippage.

For exits, the stop and target pair is the most common use. See stop loss and take profit.

A table of OCO uses: breakout orders on both sides, news orders each side of a range, stop and target exits, attaching stop and target to an entry, and testing on a demo
Figure 2: Plan before the trigger.

How to set up an OCO or bracket order, step by step

  1. Check that your platform supports OCO or bracket orders, and where the setting is.
  2. Define the entry, stop and target before you place anything.
  3. Put the stop beyond a level that proves the idea wrong, not at a random distance.
  4. Put the target at the next level, and check that the ratio is at least 1:2 with the risk reward calculator.
  5. Size with the position size calculator, using the stop distance.
  6. Place the order and confirm on the platform that both sides are linked.
  7. Test the whole process on a demo account first.

What can go wrong

An OCO setup is weaker in a news spike, where price can jump past your entry and fill at a worse price. It also fails when the range is too narrow, because both sides may trigger within minutes.

If the first side fills and price reverses, you take the loss. Check that the second order was really cancelled, so you do not end up in an unplanned trade.

The main risks

On a fake breakout, the first side can trigger, reverse and hit the stop, and the second order may already be cancelled. See the false breakout strategy.

Platforms also differ in how they handle partial fills and gaps. Test on a demo first. See demo account vs live account.

Three cards on risks: the wrong side may trigger first on a fake breakout, fast markets fill at worse prices, and platform behaviour should be tested on a demo
Figure 3: Automation is not safety.

An illustrative example of an OCO breakout pair

EUR/USD is in a tight range. A trader places an OCO pair: a buy stop 5 pips above the range high, and a sell stop 5 pips below the range low. Each has a 30-pip stop and a 60-pip target. When the buy fills, the sell is cancelled.

With a $10,000 account risking 1% ($100), the position size is $100 / (30 pips x $10 per pip per lot) = about 0.33 lot. A win pays about $200, and a loss costs about $100.

Common mistakes

  • Using OCO breakout orders around news at full size. Fast moves can slip or fill the wrong side. Cut the size or stay out.
  • Forgetting to cancel an unused order. A leftover order can open a trade later. Check your pending orders at the end of the day.
  • Assuming a stop will fill at the set price. In fast markets it may not. Allow for slippage in your risk.
  • Skipping the demo test. Platforms handle linked orders differently. Learn how yours behaves before using real money.

Frequently asked questions

What does OCO mean?

It means "one cancels the other". When one of two linked orders fills, the other is cancelled automatically.

What is a bracket order?

It is an entry order with a stop loss and a take profit attached at the same time. The trade is protected from the moment it opens.

Do all brokers support OCO orders?

No. Support differs by broker and platform, so check before you rely on it. Some platforms offer only the stop and target pair.

Are OCO orders safe around news?

Not necessarily. Fast moves can slip or trigger the wrong side, so reduce size or avoid them.

Your next step

Open a demo account and place one bracket order with a stop and a target. Watch how your platform cancels the second exit when the first one fills.

This is education, not financial advice. Trading carries risk, and no method guarantees results. The charts are illustrative and not real market data.

#OCO order#bracket order#order types#stop loss#take profit#pending orders#trade automation#forex orders

Risk warning: this article is educational content, not financial advice. Trading forex, gold, indices and crypto involves substantial risk of loss. Test any strategy on a demo account first and never risk money you can't afford to lose.

Put this into practice with real signals.

Signals are free on the website. Get the Trading Insights app for instant push alerts, the MT4/MT5 auto-execution EA and a live results dashboard.

Trading Strategy

MACD Histogram: How to Read Momentum Shifts Before the Lines Cross

The MACD histogram plots the gap between the MACD line and its signal line. Learn how growing and shrinking bars show momentum, how divergence works, and the risks.

Read more →
Trading Strategy

Bollinger %B and BandWidth: How to Measure Where Price Sits in the Bands

%B shows where price sits between the Bollinger Bands, and BandWidth shows how wide they are. Learn the formulas, a worked example and how traders use them with care.

Read more →
Trading Strategy

Camarilla Pivot Points: How to Trade the H3, L3, H4 and L4 Levels

Camarilla pivots build eight levels from the previous day range. Learn the formulas, a worked example, how to fade H3 and L3 or trade breakouts at H4 and L4, and the risks.

Read more →