NinjaTrader OCO Orders – A Lesson on Order Placement (2024)

Author: XABCD Team on January 6, 2024
Featured image for “NinjaTrader OCO Orders – A Lesson on Order Placement (2024)”Featured image for “NinjaTrader OCO Orders – A Lesson on Order Placement (2024)”

NinjaTrader OCO Orders

NinjaTrader OCO Orders are an advanced order type used in many platforms. We're going to discuss how they work in NinjaTrader 8 and will show you an example of doing this with our XABCD Pattern Indicator Suite for NinjaTrader 8. If you need specific help, feel free to visit our contact us page where you can try the live chat.

Practice on A Demo Account First

It is always best when trying out new order types to do them first inside of a demo account. Learn how to setup a NinjaTrader 8 demo account before trying this in your live account.

What is an OCO Order?

OCO is an acronym that stands for: "One Cancels the Other" and will allow you to pair orders together. Why would you want to pair an order? Let's say you have a pending order with a target and a stop, and your pending order gets filled. Here is the outcome using an OCO order and not using an OCO order.
OCO Orders Video

When NOT using an OCO order:

You have a trade you like, and you place 3 individual orders that are not paired with one another. Here are the 3 orders:
  • Pending Order
  • Stop Order
  • Target Order
If your pending order gets filled, and price reverses and hits your target then wonderful! Your orders are now going to look like this:
  • Pending Order - Filled
  • Stop Order - Still Open
  • Target Order - Filled
Your stop order is still opened and if price hits that level you're now going to have that stop order trigger which is going to put you back inside of the market.

When YOU ARE using an OCO order:

Using the same example of three orders above, you're going to have a different result because these ninjatrader oco orders are paired. Remember, here are the 3 orders:
  • Pending Order
  • Stop Order
  • Target Order
If your pending order gets filled, and price reverses and hits your target then wonderful! Your orders are now going to look like this: Your stop order is still opened and if price hits that level you're now going to have that stop order trigger which is going to put you back inside of the market.
  • Pending Order - Filled
  • Stop Order - REMOVED by the OCO since the target was filled.
  • Target Order - Filled
OCO orders are paired so that if one of these are filled or removed/cancelled, the other orders will also be cancelled.

How Do You Place The NinjaTrader OCO Order?

Open your Chart Trader from the tool bar and Select Your Simulation Account. We're going to setup NinjaTrader OCO orders where the pending order will be the white arrow, the stop will be at the red arrow and the target would be at the yellow arrow.
Cross Hairs
Switching your mouse pointer to the cross hairs can be a lot easier to line up your orders. Ctrl+Q will switch your mouse to cross hairs and Ctrl+R will put you back to your pointer. This is very handy specifically when using NinjaTrader OCO Orders.
NinjaTrader OCO Orders - The Setup
Right Click on the chart trader toolbar. A little menu will pop up and you will need to select OCO Order. When you select it you will notice a little OC in the top right of the chart window.
OCO Setup #2
Right click on the chart and sell a limit order.
OCO Setup #3
Right click on the chart and place a buy stop market order. Notice how the green OC in the top right is still on and there.
OCO Order - Adding Stop
Finally right click on the chart trader panel and uncheck the OCO Order. The green light that reads OC in the top right should go off.
OCO Order Target
Right click on the chart and place a buy limit order for your target. Notice how the green OC in the top right is still on and there.

Congrats! You Just Placed NinjaTrader OCO Orders

What's going to happen now is when price gets you filled, it will wait for your stop or target to be hit first and then it will remove the other order that is just lingering there. You're now protected. Without placing NinjaTrader OCO orders that trade previous order will still be on your chart.


xabcd on youtube
Learn the XABCD Pattern Strategy in Under 2 Minutes
learn xabcd pattern trading in 2 minutes
Take A Tour of Our Pattern Indicators
XABCD Pattern Indicator Tour
How to Find Better XABCD Patterns
Image
XABCD News (Free Version)
XABCD News Free
XABCD News (Community Edition) is the best free Indicator for NinjaTrader 8. Don't let news sneak up on you again. Puts economic news events on your charts so you can stay informed and move around positions/stops before the news is released. Works in any market.
XABCD Priceline (Free)
Image
XABCD Price Line tool for NinjaTrader 8 will draw a line at current price and move every time the market changes price. This is useful because it will allow you to easily identify where price is at all times and the exact quoted price.