Order Types

What is OCO Order?

Reviewed by Karthikeyan Anbarasan (Founder, TradeLyser) · Updated 19 Oct 2026 · Editorial policy

DefinitionAn OCO (one-cancels-the-other) order links two exit orders, usually a profit target and a stop-loss, so that when one is triggered the other is cancelled. On 100 shares bought at ₹1,500, an OCO with a ₹1,590 target and a ₹1,455 stop risks ₹4,500 to make ₹9,000, and you never have to cancel the leftover leg by hand (illustrative).
Formula
Reward : risk = (Target − Entry) ÷ (Entry − Stop) for a long position
Example
(₹1,590 − ₹1,500) ÷ (₹1,500 − ₹1,455) = 90 ÷ 45 = 2, a 1:2 risk to reward: ₹4,500 at risk for ₹9,000 on 100 shares (illustrative)

An OCO solves a simple problem. Once you are in a trade you want two exits waiting: one above for the profit, one below for the loss. If both sit as separate orders, the first to fill leaves the other live, and a forgotten order can open an unwanted position. Linking them means the first fill closes the trade and the other leg disappears.

How an OCO order works

  1. Enter the position first, with your own order.
  2. Set the target leg above the current price for a long (below for a short), usually as a limit order.
  3. Set the stop leg below the current price for a long (above for a short), with a trigger and, if your broker asks for one, a limit price.
  4. When price reaches either trigger, that leg is sent to the exchange and the other leg is cancelled.
  5. Check after the fill that the remaining leg shows as cancelled and that your net position is zero.

OCO at Indian brokers

Indian brokers usually offer OCO as a two-leg GTT (good till triggered) order. The broker, not the exchange, watches the last traded price and sends a limit order when a leg is hit. That has two consequences: the order is not in the exchange book until it triggers, and a triggered leg can still miss if price moves past its limit. Validity periods and the segments covered differ by broker, so check your broker for whether OCO works on F&O as well as on delivery stocks.

OCO (two-leg GTT)

Links a target and a stop on a position you already hold. Can stay live across sessions on delivery holdings.
Exit automation only

Bracket order

Entry, target and stop on one ticket, usually intraday only. Not every broker offers it.
Entry plus OCO-style exits

Cover order

Entry with a compulsory stop-loss and no linked target, intraday only.
Forced stop, no target

Worked example: OCO on a swing trade

LegTriggerLimitResult if filled (100 shares)
Target₹1,590₹1,590+₹9,000
Stop₹1,455₹1,450−₹4,500 at the trigger, −₹5,000 at the worst limit
Risk to stop trigger
−₹4,500
Reward at target
+₹9,000
Risk : reward
1:2
Breakeven win rate
33.3%

Illustrative large-cap NSE stock bought at ₹1,500. The stop leg uses a ₹5 buffer between trigger and limit, so a quick drop through ₹1,455 still has room to fill. The cost of that room is ₹500 of extra loss in the worst case, which is the price of a higher chance of getting out. The target leg needs no buffer: if price jumps through ₹1,590, a sell limit at ₹1,590 fills at that price or better.

Logging it and avoiding the usual mistakes

  • Record both legs at entry: target, stop trigger, stop limit and the planned R. The exit then tells you which leg won without guesswork.
  • Tag manual overrides. If you move the target or close early, mark the trade “OCO overridden” so overrides can be reviewed as their own group.
  • After 30 or more OCO trades, compare the share that hit the target with your breakeven win rate for that ratio, 33.3% at 1:2.
  • Cancel the OCO whenever you exit by hand, add to the position or change quantity. A leg sized for the old quantity can over-sell, and a leg left live after a manual exit can trigger weeks later, selling shares you still hold in the demat account or opening a fresh short in F&O.
Rule of thumb
A useful monthly check splits OCO trades into three groups: target filled, stop filled, and overridden by hand. If the overridden group has worse expectancy than the other two combined, the OCO levels were better than the decisions that replaced them. If it does better, the target may be too close for the setup, and that is a rule to test at the next review rather than mid-trade.
For traders in India
Because GTT legs are held by the broker and trigger on the last traded price, they do not protect against an opening gap below the stop. For Nifty options, a stop leg on premium behaves differently from one on the underlying; note in the plan which one your setup uses. Lot sizes change periodically (Nifty 65 at present), so check the current NSE circular when sizing legs.

Reference guide

ContextValueReading
OCO placed right after entry, both legs from the written planPlan enforcedTarget and stop are fixed before emotions arrive; log both levels in the journal
Position exited by hand, OCO left liveDangerousA leg can still trigger later and sell other shares you hold or open a fresh position; cancel it
Stop leg with its limit equal to the triggerMay not fillA fast fall or gap can skip the limit; set the limit a few ticks beyond the trigger

Questions

What is an OCO order?

Two linked orders, usually a target and a stop-loss, where the fill of one cancels the other. It closes a trade at either level without leaving a stray order behind.

Is OCO available at Indian brokers?

Usually as a two-leg GTT order. Which segments it covers and how long it stays valid vary, so check your broker.

What is the difference between OCO and a bracket order?

An OCO only handles the exits of a position you already hold. A bracket order places the entry and both exits together, usually for intraday trades.

Does an OCO guarantee my stop-loss will fill?

No. When a leg triggers, it usually goes out as a limit order, which can miss in a fast move or a gap. A buffer between trigger and limit improves the chance of a fill.

Related terms