Skip to main content
Trading Basics · Order Types

One Cancels the Other (OCO)

OCO (One Cancels the Other) links two orders so that when one order executes, the other is automatically cancelled. It’s a simple concept that helps you avoid “double execution” and manage trades more cleanly.

In plain English: “If this happens, cancel that.”

Quick Navigation

OCO is less about “strategy” and more about clean execution and risk management.

Core Concept

How OCO Works

With OCO, you place two orders as a linked pair. The platform monitors them together:

Simple OCO logic

Order A active
Order B active
One executes
Other cancels

OCO is often available on exchanges and advanced platforms. Some retail CFD platforms offer a version of it through “linked” stop-loss and take-profit settings.

Practical Use

Common Uses of OCO

1) Bracket exits (take-profit + stop-loss)

You enter a trade and attach:

If your take-profit hits, the stop-loss is cancelled. If your stop-loss hits, the take-profit is cancelled.

2) Breakout entry (up or down)

You expect a big move but don’t know the direction. You can place:

OCO ensures only one side triggers, avoiding being filled on both sides in whipsaw conditions.

Important

OCO does not remove risk. It removes operational mistakes — like leaving conflicting orders open or accidentally entering twice.

Execution Detail

Platform Considerations

Before relying on OCO, understand how your platform implements it:

Best practice

After placing OCO, always check your open orders list to confirm both legs are present and linked.

Example: Bracket Exit Using OCO

You buy EUR/USD at 1.1000. You set:

These are linked as OCO:

This prevents the common mistake of leaving the “other order” open and accidentally reversing or doubling your position later.

Common Mistakes

Common OCO Mistakes (and Fixes)

Common Misconceptions

✅ Quick Checkpoint

Try answering before expanding the model answers.

1) What does OCO stand for and what does it do?

One Cancels the Other. It links two orders so that if one executes, the other is cancelled automatically.

2) Name two common uses of OCO.

Bracket exits (take-profit + stop-loss) and breakout entries (buy stop above + sell stop below).

3) What is a key implementation detail you should check on your platform?

Whether the OCO link is server-side or client-side, and how partial fills affect cancellation.

If you can explain these points, you understand how OCO reduces operational errors in trading.

FAQ

Frequently Asked Questions: OCO Orders

Is OCO available on MetaTrader?

MetaTrader supports attached stop-loss and take-profit orders on positions, which behave like an OCO relationship. Some brokers and add-ons also provide explicit OCO order tools.

Does OCO prevent slippage?

No. Slippage is about execution and liquidity. OCO is about order relationships. If the triggered order is a stop (market), it can still slip in fast markets.

What happens if both legs trigger at the same time?

Ideally, the first execution cancels the other immediately. In extreme volatility or with client-side linking, edge cases can occur. That’s why server-side OCO is preferable and why you should monitor around major news.

Can I use OCO for scaling out?

You can, but it depends on your platform. Scaling out typically requires multiple take-profit levels and careful handling of the remaining stop-loss size.

Summary

OCO (One Cancels the Other) links two orders so that execution of one automatically cancels the other. It is widely used for bracket exits (TP + SL) and breakout entries (up or down), reducing operational mistakes and order conflicts.

Next lesson: Partial Fills.

Back to top