In this lesson, we’ll walk you through how to set up a One-Cancels-All (OCA) order using TWS Mosaic.
- We’ll define the objective of the OCA order type
- Show you how to create an OCA order in TWS Mosaic
- Show you where you can locate OCA orders within the Activity panel
This lesson will show you how you can enter multiple orders, such that as one of them begins to fill, the remaining ones will be cancelled.
Imagine you’ve done your research and you’ve identified three companies you may want to invest in, and you’ve also determined the right price below the market to enter your trades.
However, while you don’t want to miss an opportunity, you also don’t want to commit to all three trades – just whichever one reaches your entry point first. That’s where the One-Cancels-All, or “OCA”, group order type comes into play.
Creating an OCA order in TWS Mosaic
Now let’s see how we can do this In Mosaic. The first thing I’ll do is select Microsoft – ticker MSFT, the first ticker – create an order to buy, let’s say 500 shares in Microsoft – ticker MSFT – at my target price below the market, where the time-in-force is GTC.
To add and group further associated orders, I’ll select Advanced and then the One Cancel Another option in the expand menu.
I’ll now add a second contract in the input field – this will be buy Intel – ticker INTC – with a GTC order for 400 shares, and again set the price to my target.
When additional contracts are added using the One Cancel Another functionality, the Order Entry panel will display the letters OCO plus the number of group members to clearly display the nature of the OCA order.
Now, using the Add Order button I can tack on a third GTC order – this time to buy Google – ticker GOOG – for 300 shares, setting the limit price once again below at my target price.
Great, I’ve now set up three GTC limit orders for my three favorite tech companies at target prices below the ones prevailing in the market, but remember, I only want to commit to the first one that fills – not all three.
So, I have to instruct TWS what it should do in the event that one of them starts to execute. To do this, I’ll use this dropdown menu for what we call On Fill instructions.
Here, I have three choices, and for the purposes of this example, when that first order starts to fill, I want to make sure the other two get cancelled.
This will be the case If I click on Cancel Other Orders.
Now, if I selected Reduce other orders, I may continue executing across the three tickers, and the order will rebalance the outstanding positions.
Finally, the choice to provide Overfill Protection dictates that only one of the submitted orders will be routed to an exchange at a time. This completely removes the possibility of overfill within the order. Remember that the first ticker I entered became the main order.
Once you are satisfied with the variety of input choices for your order, as I am with mine in this example, I’ll transmit it by clicking on Submit.
Once I do, the Order Preview window will display all orders in the OCA Group, which is also assigned a number.
The initial order appears first and shows the additional ones as group members. You’ll also see that the Order Confirmation window shows your estimated Post-Trade margin impact.
*Note the footnote stating that the estimation is presented for the main order only. This is important because if your main order was a futures contract, as opposed to a security, your margin requirements would most likely differ.
Locating OCA orders within the Activity panel
You can also cancel all parts of your OCA group by right-clicking on any member in the Orders tab in the Activity panel – there you would select Cancel from the expansion menu.
The OCA group is a smart order type that offers you greater flexibility over your investments. Remember to take a look at this order type using the Advanced expand button in the Order Entry tile.
Now that you know how to create an OCA order in Mosaic, let’s turn our attention in the next lesson on order types in Traders’ Academy.
Disclosure: Interactive Brokers
The analysis in this material is provided for information only and is not and should not be construed as an offer to sell or the solicitation of an offer to buy any security. To the extent that this material discusses general market activity, industry or sector trends or other broad-based economic or political conditions, it should not be construed as research or investment advice. To the extent that it includes references to specific securities, commodities, currencies, or other instruments, those references do not constitute a recommendation by IBKR to buy, sell or hold such investments. This material does not and is not intended to take into account the particular financial conditions, investment objectives or requirements of individual customers. Before acting on this material, you should consider whether it is suitable for your particular circumstances and, as necessary, seek professional advice.
The views and opinions expressed herein are those of the author and do not necessarily reflect the views of Interactive Brokers, its affiliates, or its employees.
Disclosure: Order Types / TWS
The order types available through Interactive Brokers LLC’s Trader Workstation are designed to help you limit your loss and/or lock in a profit. Market conditions and other factors may affect execution. In general, orders guarantee a fill or guarantee a price, but not both. In extreme market conditions, an order may either be executed at a different price than anticipated or may not be filled in the marketplace.