How to trade stagflation, the macro desk playbook, KenMacro guide
|

OCO Order: One Cancels the Other for Bracketed Trades

Macro Glossary, Orders and Risk

By Ken Chigbo, macro trader and founder of KenMacro, 18+ years in markets.

Updated 2026-05-20

Not sure which broker fits?

Tell the desk your country, market, platform and priority. We will show the cleanest route and the honest watch-out, in about 20 seconds.

Other sites compare brokers. KenMacro routes traders. Affiliate links, no extra cost to you. CFDs are leveraged; most retail accounts lose money.

The desk’s answer

An OCO order (One Cancels the Other) pairs two resting orders so that the execution of one automatically cancels the other. The standard use is bracketing an open position with a take profit on one side and a stop loss on the other; when either fills, the broker cancels the partner order. It is also used for breakout setups where a buy-stop above resistance and a sell-stop below support are placed simultaneously, with the order that triggers first cancelling the other. OCO logic is built into MT4, MT5, cTrader and most professional platforms.

Defined term, OCO order

An OCO (One Cancels the Other) order pairs two resting orders, typically a take profit and a stop loss, so that the execution of one automatically cancels the other. It is the standard mechanism for bracketing an open position with defined exits on both sides and preventing the trader from being left with an orphan order after one side fills.

Current offer
Up to 50% off
E8 Markets simulated funding challenges
Use code
Claim the offer with code KENMACRO →
Offers vary by product and change over time. Enter the code at checkout to see your final price.

How OCO orders work

The trader places two linked orders simultaneously, identified to the broker as an OCO pair. The pair sits in the order book as two normal resting orders. When the market reaches the price level of either order, that order executes and the broker’s order engine immediately cancels the partner. The two orders never both fill, even if the market moves to both price levels in fast succession; the engine processes the trigger of the first order and the cancellation of the second as a single transaction. This eliminates the risk of being left with an orphan order after one side has filled, a common manual-management error.

Standard OCO uses

Three patterns. First, bracketing an open position: take profit above for a long, stop loss below, both as an OCO pair. When TP fills, the SL is cancelled; when SL fills, the TP is cancelled. This is the default risk-management discipline on any trade held overnight. Second, breakout trading: a buy-stop order above resistance and a sell-stop order below support, placed simultaneously as an OCO pair. When the market breaks one side, the order triggers and the partner is cancelled; the trader is positioned in the direction of the actual break. Third, range trading: buy-limit at the bottom of the range and sell-limit at the top, as an OCO, with the first to fill cancelling the other and the trader entering on whichever side touches first.

Limitations and edge cases

Two cautions. First, not all brokers implement true server-side OCO; some require client-side software to monitor both legs, which fails if the platform disconnects. Verify on a funded account that the OCO pair is server-side, not platform-side. Second, in extreme fast markets the order engine can struggle with the cancellation, occasionally allowing both orders to fill if the second order touches its level within a few milliseconds of the first executing. This is rare but documented; for a critical OCO setup, monitor live during high-volatility events.

Frequently asked

What is an OCO order?

One Cancels the Other order, a pair of linked resting orders where the execution of one automatically cancels the other. The standard use is bracketing an open position with a take profit and stop loss, or placing a breakout setup with buy-stop and sell-stop orders simultaneously.

How do I bracket a trade with OCO?

Place the take profit order (limit) on one side of the open position and the stop loss order (stop) on the other side, both linked as an OCO pair. The broker’s order engine will execute whichever order is hit first and cancel the other automatically. Standard on most modern trading platforms.

Are OCO orders server-side?

On most regulated brokers yes, with the OCO logic executed by the broker’s order engine. Some smaller brokers implement OCO client-side via the platform software, which fails if the platform disconnects. Verify server-side execution on a funded account before relying on OCO for critical risk management.

What this means at the desk

Bracket every overnight trade with OCO. The discipline is server-side execution that does not depend on a running terminal.

Educational glossary entry only,

From the desk

Knowing the term is step one. The next question is always which broker actually serves you well. The desk audits eight brokers on regulation by entity, true cost, and honest fit, with the regulatory caveats the comparison sites bury.

See the eight brokers KenMacro approves

not financial advice and not a trade signal. The desk teaches a reading framework, never entries, targets or recommendations. Trading forex, indices and leveraged products carries significant risk and may not be suitable for all traders. Some broker links on this site are commercial partnerships and KenMacro may receive compensation, which does not change the editorial view. Only trade with capital you can afford to lose.

From the desk, free

Get the macro framework the desk actually trades

The same regime-first framework behind every call on this site. Free. No spam, unsubscribe anytime.

Trading this with real money?

The desk routes traders to the broker that fits their style, not to whoever pays most. Find your route in under a minute.

Find my broker

Where this gets traded

Reading the macro driver is half of it. The other half is an account that holds execution when the driver actually moves the tape. See the KenMacro desk guide to the best brokers for macro traders.

Read the desk guide →

Your next step

Read the whole market, not just the chart

If this changed how you read the market, get the free KenMacro Framework. It shows how rates, the dollar, gold, oil and central banks connect into one trading read. Go deeper with the Macro Trading Blueprint when you are ready.

Get the free framework →The Macro Trading Blueprint

Leave a Reply

Your email address will not be published. Required fields are marked *