Skip to main content

OCO Order: Meaning, How It Works & How to Place One

6 min read•Updated on 30th Sept, 2026•by Team Angel One
An OCO (One-Cancels-the-Other) order pairs two conditional trading orders. When one executes, the trading platform cancels the other automatically.
Share

An OCO stock order combines two conditional orders linked to the same trade. These orders are generally set around different price conditions. One is a profit target and other is a stop-loss. The arrangement gives traders two possible exit paths while keeping them connected. When the condition for either order gets satisfied, the other order does not remain active for that same trade.

Key Takeaways 

  • An OCO order connects two conditional orders, if one executes, system cancels the other automatically.
  • Traders typically pair a profit target with a stop loss using this order type for an existing position.
  • Using an OCO removes manual steps when you manage an open trade.
  • Execution at your selected price is not assured during sharp moves or periods of thin liquidity.

What Is an OCO Order? 

OCO stands for One Cancels the Other. It refers to a linked order arrangement where traders typically place two orders together. But only one is meant to stay active after the first executes. 

Traders primarily use OCO orders to automate their exit strategy, allowing them to simultaneously set up profit booking and risk management without needing to monitor the market continuously.

A common setup pairs a profit target with a stop loss. Suppose a trader buys a stock and expects it to move higher. At that same moment, the trader also wants an exit if the price falls below a predetermined level.

An OCO setup links these two potential exit routes. The target order tries to exit at a desired profit level, so the position exits when that target appears. The stop-loss order tries to control downside exposure, so the position exits when that stop appears.

The critical element is the connection between these two orders. Should the target side execute first, the system cancels the linked stop-loss. Should the stop-loss side execute first, the system cancels the target.

How Does an OCO Stock Order Work? 

The basic mechanism behind OCO in trading follows a fairly simple pattern.

Step 1: Set Two Orders

A trader either holds an existing position or enters a new one. Then defines two separate exit levels. Say you buy a stock at ₹500. You might place a target at ₹540 and a stop at ₹480. The system links these two instructions as an OCO arrangement.

Step 2: Monitor Price Movement

With those two conditions in place, the market keeps moving. For the stop loss, a specific price level decides when that order turns active. The NSE clarifies that for a sell stop-loss, the last traded price reaching or slipping below that level activates it. A buy stop-loss works inversely. This design frees the trader from watching every tick just to activate the preset rule.

Step 3: One Order Executes

Picture the stock climbing up. The target executes first. Then the stop-loss automatically cancels. If the stock drops, the stop-loss side executes, and the target cancels. This simultaneous cancellation upon execution defines the OCO's nature. Only one side stays active while the other disappears.

Parameter / Trigger Price Level Order Type Primary Objective Outcome
Entry Price ₹500 Market / Limit Open Position Position initiated
Target Price ₹540 Take-Profit Limit Book Profit (+₹40) Executes → Cancels Stop-Loss automatically
Stop-Loss Price ₹480 Stop-Loss Market/Limit Limit Loss (-₹20) Executes → Cancels Target automatically

Also Read About:Stop Limit Order

OCO Stock Order Example 

A trader buys 100 shares at ₹500 each. That trader then sets an OCO arrangement. The target sits at ₹540, while the stop-loss sits at ₹480.

Potential Profit & Loss Breakdown:

  • Target Price (₹540):
  • Calculation: (Target Price - Entry Price) x Quantity = (₹540 - ₹500) x 100
  • Outcome:Yields a profit of ₹40 per share, resulting in a total gain of ₹4,000 (+8%).
  • Stop-Loss Price (₹480):
  • Calculation: (Entry Price - Stop Price) x Quantity = (₹500 - ₹480) x 100
  • Outcome: Caps the loss at ₹20 per share, resulting in a maximum loss of ₹2,000 (-4%).

If the stock rises to the target and that order executes, the system cancels the linked stop-loss. If the stock falls instead,and the stop-loss condition gets met, then that order executes and the target cancels.

Thus the trader has predefined two possible exit paths.

But this does not guarantee execution exactly at ₹540 or ₹480. Order type and market conditions like liquidity and price swings can shift the actual fill price. 

Also Read About:What is Stop Loss in Stock Market?

How to Place an OCO Stock Order? 

The trading platform itself decides the exact process. Alongside whether OCO functionality is available for that specific segment or instrument. Generally, placing one involves selecting the relevant security or position on the platform.

  • You choose the linked target and stop-loss option, if it is offered.
  • Enter your target and stop-loss levels with quantity and other order details.
  • Review the activation price and related information carefully.
  • Submit the order and verify its status in the order book or positions.

Traders must check platform support for that particular instrument before placing it. You may set both a trigger price and a limit price. That depends on order type used.

This matters because a stop-loss limit order may fail to execute if the market moves beyond the set limit. The NSE highlights that even an activated stop-loss limit order carries no assurance of actual execution.

Benefits of OCO Stock Orders 

OCO orders can bring more structure to your trade management.

  • Disciplined Exit Planning: Removes emotional decision-making by forcing you to pre-determine both your profit target and maximum acceptable loss before entering the trade.
  • Automated Risk & Trade Management: Eliminates screen monitoring and manual updates, as the platform constantly watches the market and executes your exit strategy 24/7.
  • Seamless Single-Execution Safety: Ensures target and stop-loss orders operate as a single coordinated unit, automatically canceling the opposing order to eliminate the risk of unintended duplicate positions.

Risks and Limitations of OCO Orders 

An OCO order automates linked instructions, but it cannot control what happens in the market.

  • Market Gap Risk: Occurs when a stock's price "jumps" over your set price without trading at intermediate levels (e.g., overnight news causing a stock closing at ₹500 to open at ₹450). If using a Stop-Loss Limit order at ₹480, the order will fail to trigger because the price skipped past ₹480 entirely, leaving the position open.
  • Slippage Risk: Refers to the difference between your expected stop-loss price and the actual execution price. If using a Stop-Loss Market order in a rapidly dropping or illiquid market, reaching the ₹480 trigger converts the instruction to a market order, which may execute several ticks lower (e.g., ₹472).
  • Platform & Exchange Constraints: OCO features are not uniformly available across all brokers, trading segments, or asset classes. Additionally, market regulators (like the NSE) enforce specific validation rules and price bands on Stop-Loss Limit orders in equity derivatives that may impact execution.

Also Read About:Market Order Vs Limit Order

OCO Order vs Regular Order

The following table compares OCO Order with Regular Standalone Order:

Factor OCO Order Regular Standalone Order
Order structure Links two conditional orders Generally contains one order instruction
Conditions Can combine a target and stop‑loss Depends on the selected order type
Cancellation One linked order cancels the other automatically No automatic OCO relationship exists
Risk management Supports predefined exit levels May require separate orders for different exits
Monitoring Reduces manual intervention Often demands more active management
Typical Use Cases

Swing trading and position holding across trading sessions.

Volatile market events (e.g., earnings reports, economic data releases).

Hands-off automated risk management for part-time traders.

Initial market entry (e.g., buying a stock at current price).

Simple long-term investing where downside stops aren't used.

Active scalping where the trader manually manages exits on the chart.

Practical Example Buying 100 shares at ₹500 and setting a paired OCO order with a Target at ₹540 and a Stop-Loss at ₹480. Whichever price hits first closes the trade and cancels the other order. Buying 100 shares at ₹500 and placing a standalone Stop-Loss at ₹480. If the stock rises to ₹540, you must manually cancel the ₹480 stop-loss before submitting a separate Sell order at ₹540.

When Should You Use an OCO Order? 

A One-Cancels-the-Other arrangement always gives a trader two clearly defined potential exit possibilities for an open position. This dual-exit approach is especially valuable in scenarios where manual trade management is impractical or emotionally taxing.

  • Swing Trading Across Multiple Days: Swing traders hold positions overnight or for several days, exposing them to after-hours news or morning price gaps. An OCO setup allows you to place a limit order at your profit target (e.g., major resistance) and a stop-loss below support. If a morning rally hits your target, the profit is secured and the stop-loss is automatically removed, preventing accidental execution if the price subsequently pulls back.
  • Delivery Investing with Predefined Targets: Investors taking longer-term delivery positions often struggle with emotional decision-making as prices fluctuate. By attaching an OCO order immediately upon entry, you enforce strict risk-to-reward rules such as a 20% upside target and a 5% maximum drawdown. This locks in your exit strategy upfront, removing the temptation to hold a losing stock out of hope or sell a winner too early out of fear.
  • Trading Without Continuous Market Monitoring: Working professionals or part-time traders cannot watch order books all day. Once you enter a trade, deploying an OCO setup hosts your conditional exits on the exchange server. Whether the market spikes during a meeting or drops while you are away, your defined strategy executes automatically without requiring any manual intervention.

Also Read About:Types Of Orders in Stock Market

Conclusion 

An OCO links two conditional exit orders, typically a profit target and a stop loss. Execute one side, and the other cancels automatically. Still, this structure organises trade management well and cuts manual steps. But OCO cannot remove market risk, nor guarantee a fill at your selected price.

Turn insights into action -Open Free Demat Account with Angel One and start investing instantly.

FAQs

Yes. An OCO order can combine a target order with stop loss order. The two remain linked. So, according to the OCO arrangement, when one order is executed, the other is cancelled.

When one side of an OCO executes, your trading platform cancels the other linked pending order. This happens automatically and immediately. 

Yes, you can use it for eligible trades but only on platforms that support this functionality. Availability naturally varies. Supported order types and conditions also differ across brokers and market segments. 

Partially. OCO orders can work well for beginners who already grasp target and stop loss orders. Even so, traders must study execution conditions and market risks before using linked orders for position management. Understanding activation prices also matters. 

It depends. Whether modification is possible depends on your platform and the order's current state. Where such changes are allowed, traders can often adjust order details before execution. But exchange and platform rules always impose limits. 

No. While OCO orders automate your exit strategy, they cannot override market realities. If a stock price gaps significantly or lacks liquidity, your order might experience slippage or fail to trigger entirely, especially if the stop-loss is configured as a limit order rather than a market order.

No. The fundamental design of an OCO arrangement is built specifically to prevent double execution. The exact moment one side of the order triggers and fills, the trading platform's routing system instantly and automatically cancels the opposing linked order. 

Yes, but with caveats. OCO orders are actually ideal for volatile events (like earnings releases) because the automated triggers react much faster than manual trading. However, extreme price swings severely increase the risk of slippage on market orders or the market entirely bypassing your set limit prices

Open Free Demat Account!

Join our 3.8 Cr+ happy customers

+91

Open Free Demat Account!

Join our 3.8 Cr+ happy customers
+91