OCO and Linked Orders
OCO stands for one cancels the other: a pair of orders in which the execution of either automatically removes the second. The mechanism is dull, and it closes an entire class of manual management errors.
What the pairing solves
The classic case is price in a range and a willingness to trade the exit either way. Without OCO you place two pending orders and, once one fills, manually remove the other. Miss that step and a reversal opens a second position opposite the first, with no idea behind it. OCO removes that error entirely, and with it the need to sit at the terminal.
Stop and target as a special case
A stop-loss and a take-profit on an open position are linked by the same logic: one triggering cancels the other. At most brokers this works automatically and no separate OCO is required. But when managing several parts of a position manually the link is easily lost — leaving a live order for a size that no longer exists.
OTO and bracket orders
Two related constructions sit alongside. OTO — one triggers the other — means the execution of one order activates another, letting you set a stop and target for a position that is not yet open. A bracket order combines everything in a single instruction: entry, stop and target. The shared purpose is to describe the whole trade in advance, while your head is clear, and to avoid making decisions along the way.
What to ask your broker
Support for these constructions varies. Some terminals implement OCO natively, some only through scripts or expert advisors, some not at all. It is worth establishing this in advance rather than at the moment you need it. Check separately how the pairing behaves on a partial fill: a correct implementation reduces the size of the paired order, an incorrect one leaves it unchanged.
This material is educational and is not individual investment advice. Trading forex carries the risk of losing capital.
Frequently asked questions
What is an OCO order?
One cancels the other: a pair of orders in which the execution of either automatically cancels the second. Used when you are prepared to trade an exit from a range in either direction.
How does OTO differ from OCO?
OCO cancels the paired order on execution; OTO does the opposite and activates a linked order. OTO lets you pre-set a stop and target for a position that has not opened yet.
Do all brokers support OCO?
No. At some it is a native terminal function, at others it is implemented only through scripts, and at some it is absent. Check in advance, along with how the pairing behaves on a partial fill.
New backtest studies — to your inbox
When a new reproducible study comes out or the data is updated, we send a short email. No spam, no "signals", no selling your address.
By leaving your email you agree to receive occasional emails from the portal. Unsubscribe in one click from any of them.