One-Cancels-the-Other (OCO) Order: Definition and Use in Trading

A man holds a cell phone displaying a chart in one hand, while typing on a laptop with the other.

Mensent Photography/Getty Images

Definition

A one-cancels-the-other (OCO) order is a pair of conditional orders stipulating that if one order executes, then the other order is automatically canceled. This mitigates risk and is often used in trading volatile stocks or managing market entry strategies. Although an OCO order is automatic, manual stop-loss placement is needed post-execution.


A one-cancels-the-other (OCO) order is a set of two orders; when one is executed, the other gets canceled. OCO orders often pair a stop order with a limit order on trading platforms. When either the stop or limit price is reached and the order is executed, the other order is automatically canceled. Traders use OCO orders to manage risk and enter the market.

OCO orders may contrast with order-sends-order (OSO) conditions that trigger, rather than cancel, a second order.

Key Takeaways

  • One-cancels-the-other (OCO) orders involve a pair of orders where executing one automatically cancels the other.
  • Traders use OCO orders, often with stop and limit orders, to manage risk in volatile markets. 
  • OCO orders can be employed for trading retracements and breakouts by setting buy and sell stops. 
  • Using OCO orders prevents potential issues like unintended short positions by automatically canceling the opposite order. 
  • For effective use, OCO orders require the same time frame for both stop and limit orders.

Understanding the Mechanics of One-Cancels-the-Other Orders

Traders can use OCO orders to trade retracements and breakouts. If a trader wanted to trade a break above resistance or below support, they could place an OCO order that uses a buy stop and sell stop to enter the market.

For example, if a stock is trading in a range between $20 and $22, a trader could place an OCO order with a buy stop just above $22 and a sell stop just below $20. When the price breaks above resistance or below support, a trade is executed and the corresponding stop order is canceled. Conversely, if a trader wanted to use a retracement strategy that buys at support and sells at resistance, they could place an OCO order with a buy limit order at $20 and a sell limit order at $22.

When using OCO orders to enter the market, traders must manually set a stop-loss order once the trade executes. The time in force for OCO orders should match, so both the stop and limit orders have the same time frame.

Practical Example of a One-Cancels-the-Other Order

Suppose an investor owns 1,000 shares of a volatile stock that is trading at $10. The investor expects this stock to trade over a wide range in the near term and has a target of $13. For risk mitigation, they do not want to lose more than $2 per share. The investor could, therefore, place an OCO order, which would consist of a stop-loss order to sell 1,000 shares at $8, and a simultaneous limit order to sell 1,000 shares at $13, whichever occurs first. These orders could either be day orders or good-'til-canceled orders.

If the stock trades up to $13, the limit order to sell executes, and the investor's holding of 1,000 shares sells at $13. Concurrently, the $8 stop-loss order is automatically canceled by the trading platform. If the investor places these orders independently, there is a risk that they might forget to cancel the stop-loss order, which could result in an unwanted short position of 1,000 shares if the stock subsequently trades down to $8.

Article Sources
Investopedia requires writers to use primary sources to support their work. These include white papers, government data, original reporting, and interviews with industry experts. We also reference original research from other reputable publishers where appropriate. You can learn more about the standards we follow in producing accurate, unbiased content in our editorial policy.
  1. U.S. Securities and Exchange Commission. "Rule 6 Options Trading Rules Principally Applicable to Trading of Option Contracts," Page 20

Take the Next Step to Invest
The offers that appear in this table are from partnerships from which Investopedia receives compensation. This compensation may impact how and where listings appear. Investopedia does not include all offers available in the marketplace.
Part of the Series
Guide to Trade Order Types
Take the Next Step to Invest
The offers that appear in this table are from partnerships from which Investopedia receives compensation. This compensation may impact how and where listings appear. Investopedia does not include all offers available in the marketplace.

Related Articles