Order Types

OCOOrder

Last Updated
Quick Definition

OCO Order — One-Cancels-Other (OCO) order pairs two orders where execution of one automatically cancels the other, used for stop loss and take profit combinations.

Track OCO Order with JournalPlus

An OCO (One-Cancels-Other) order is a pair of linked orders where the execution of one automatically cancels the other. The most common use is combining a stop loss and take profit order for an existing position. When price reaches either level, that order executes and the other disappears—ensuring you have exactly one exit, not conflicting orders.

  • Two orders linked: when one fills, the other cancels
  • Primary use: stop loss + take profit combination
  • Ensures clean exit without duplicate orders

How OCO Orders Work

OCO creates a logical link between two orders:

OCO Exit Strategy:
You own 100 shares at ₹500

Order 1: Sell limit at ₹550 (take profit)
Order 2: Sell stop at ₹475 (stop loss)
Link: OCO

Scenario A: Price rises to ₹550
→ Limit order triggers, sells at ₹550
→ Stop at ₹475 automatically cancels
→ Position closed for profit

Scenario B: Price falls to ₹475
→ Stop order triggers, sells at ~₹475
→ Limit at ₹550 automatically cancels
→ Position closed for loss

Quick Reference: OCO Order Structure

ComponentOrder TypePurposeTrigger
Order 1Sell limitTake profitAbove market
Order 2Sell stopStop lossBelow market
LinkOCOAuto-cancel otherOne fills

Example: OCO in Action

Position: Long 200 shares INFY at ₹1,500

OCO Setup:

  • Take Profit: Sell limit ₹1,620 (+8%)
  • Stop Loss: Sell stop ₹1,425 (-5%)
  • Risk-Reward: 1:1.6

Trade Progress:

DayPriceAction
1₹1,500Entry, OCO active
2₹1,520Both orders waiting
5₹1,580Both orders waiting
8₹1,620Take profit triggers!
--Stop at ₹1,425 auto-cancels

Result: Profit of ₹24,000 (200 × ₹120)

OCO orders link two orders so when one executes, the other cancels. Use OCO to combine stop loss and take profit orders, ensuring clean exits without conflicting or duplicate orders when price moves.

OCO Use Cases

1. Standard Exit Management

The most common use—stop loss and take profit for an open position.

2. Breakout or Pullback Entry

Place OCO with buy stop above (for breakout) and buy limit below (for pullback). Enter whichever scenario happens first.

3. Straddle Entry

Before major news, place OCO with buy stop above and sell stop below. Catch the move whichever direction it goes.

4. Range Trading

At range midpoint, place OCO with sell limit at resistance and buy limit at support.

OCO vs. Individual Orders

Without OCO:

  • Place stop loss at ₹475
  • Place take profit at ₹550
  • Price hits ₹550, sells for profit
  • Stop at ₹475 still active!
  • Price later drops to ₹475
  • Stop triggers, sells shares you don’t own
  • Short position created accidentally

With OCO:

  • Same orders, but linked
  • Price hits ₹550, sells for profit
  • Stop at ₹475 automatically cancels
  • No accidental short position
  • Clean exit

Common Mistakes

  1. Not using OCO for exits – Separate stop and target orders can both trigger, creating problems.

  2. Forgetting to cancel if position closes manually – If you exit manually, cancel the OCO orders.

  3. OCO with wrong quantities – Both orders should be for your full position size to close completely.

  4. Imbalanced risk-reward – OCO makes R:R visible. Don’t accept bad R:R just because it’s easy to place.

How JournalPlus Tracks OCO Exits

JournalPlus logs which side of your OCO triggered—target or stop—tracking your hit rate on targets versus stops over time. This helps you analyze whether your target placement is realistic.

Common Questions

What is an example of an OCO order?

You own stock at ₹100. Place OCO: sell limit at ₹120 (take profit) and sell stop at ₹90 (stop loss). If price hits ₹120 first, you sell for profit and the stop at ₹90 cancels. If price hits ₹90 first, you sell for loss and the ₹120 target cancels.

How does an OCO order work?

OCO links two orders together. Both orders remain active until one triggers. When the first order executes, the linked order automatically cancels. This ensures you don't end up with duplicate or conflicting orders.

When should I use an OCO order?

Use OCO when you want both a stop loss and take profit active simultaneously but only one to execute. It's essential for managing positions when you can't monitor markets constantly. One exit is guaranteed; the other cancels.

What is the difference between OCO and bracket order?

OCO manages exits for an existing position with two linked exit orders. Bracket orders include the entry plus both exits. Think of bracket as 'entry + OCO'—the entry creates the position, and the OCO portion manages exits.

Can OCO orders be used for entries?

Yes, though less common. You could place an OCO with a buy limit below current price and a buy stop above—entering on either a pullback or breakout, whichever happens first.

Share this article

Track OCO Order Automatically

JournalPlus calculates your oco order and other key metrics from your trade data. Import trades and get instant insights.

SSL Secure
One-Time Payment
7-Day Money-Back
4.9/5 (1,287 reviews)
Track OCO Order automatically 7-Day Money-Back
Buy Now - ₹6,599 for Lifetime Buy Now - $159 for Lifetime