NinjaTrader trading screen showing linked stop and target order rows with Push Button Trading logo overlay

Bracket Orders and OCO Explained: Why Your Bot's Stop and Target Aren't Independent Orders

November 30, 2026

Open a trade manually and you place one order. Let a bot manage that same trade and you're suddenly looking at three — the entry, the stop, and the target — all submitted at once and wired together so that whichever one fills first cancels the other two. That's a bracket order, and the "one cancels other" logic (OCO) behind it is the piece of NinjaTrader automation most traders never actually read the manual on. They assume the stop and target are just two separate orders sitting in the queue. They're not, and the difference matters the first time something goes wrong.

What a bracket order actually submits

When one of our bots fires an entry, it doesn't send a single order and wait to see what happens. It sends the entry plus a linked stop-loss and a linked profit target in the same breath — three orders, one package. NinjaTrader tags the stop and target as an OCO group tied to that specific entry. The moment price touches either one and it fills, the platform automatically cancels the other. You don't get a stray stop sitting live after the target already closed you out, and you don't get a target waiting around after the stop already took the loss.

That automatic cancellation is the entire point. A bot running unattended can't watch two resting orders and manually cancel the loser the instant the winner fills — milliseconds matter, and a human reaction time doesn't. OCO logic is what lets "one setup a day" actually mean one setup, not one setup plus a phantom order you find sitting in the order book that evening.

Why this isn't two independent orders

The mistake we see most often is a trader treating the stop and target as if they could be managed separately — moving one, cancelling one, or placing a brand-new manual order "just to be safe" on top of what the bot already has resting. Do that and you've broken the OCO link. NinjaTrader doesn't know your manual order is related to the bot's bracket, so now there are two unlinked orders that can both fill, or one can fill while the other keeps sitting live because nothing told it to cancel. That's how a single losing trade turns into a double-filled position nobody intended to hold.

The stop and target exist as a pair because the risk math behind every one of our bots — ORB, Snapback, Scalper, the 10 EMA setup, NR7, Volume Spike — assumes both legs are live at the same size, the same instrument, and the same OCO group from the moment the entry fills. Touch one leg by hand and you're no longer trading the backtested setup; you're trading something the backtest never saw.

Where this shows up on a funded account

This matters more, not less, once you're trading an evaluation or a funded account. A firm's daily loss limit and consistency rule are both calculated off what actually closed, not what you intended to happen. If a manually-touched bracket leaves a position open longer than the bot's logic called for, or lets a stop slip past because its OCO partner was cancelled by hand, the loss that posts to your account is bigger than the one your risk plan accounted for. On a one-step evaluation with a hard daily drawdown line, that's the difference between a flagged account and a clean one.

It's also why we tell traders running multiple bots on one account to actually open the orders tab and look, at least once a session, rather than trusting the platform silently. Confirm each bracket shows as one OCO group with exactly two working orders — a stop and a target, linked, nothing extra layered on top.

The five-minute check worth running

Before you walk away from the screen — or before you trust an automated session to run overnight — open NinjaTrader's Orders tab and confirm every working stop and target is still tagged to the same OCO ID it started with. If you see an unlinked order, a duplicate, or a leg with no partner, something was touched manually or a connection hiccup broke the pairing, and it needs fixing before the next entry fires on top of it. Thirty seconds of looking is cheaper than finding out the hard way which order actually closed the trade.

If you're ready to stop guessing which order fired and let bracket logic do what it's built for, the Push Button Trading 14-day free trial puts all 13 automated bots — bracket orders and all — in front of you with no coding required.

Back to Blog

EMAIL NEWSLETTER

Funded Account Tips

Weekly emails sent to your inbox

We don't sell your information, it's stored securely.

Learn More About

  • Funded Accounts 101

  • Quick Start Checklist

  • Top rated prop firms to use

  • What to Do vs. What to Avoid

  • Why most traders fail "evaluation accounts"

  • Pro trading tipes & strategies

  • How trailing drawdown works

  • And more...

Works with funded accounts (Lucid, Tradeify, etc)

and personal cash accounts

Push Button Trading logo — automated NinjaTrader 8 trading bots and education

We provide trading technology, education and technology tools that make trading easy and fun. Through the use of our custom-built technologies, education classes, and online community we bridge the gap for some of the most challenging obstacles traders face.

Trustpilot 4.5 out of 5 star rating for Push Button Trading

4.5 / 5 Trustpilot

BBB Accredited

Risk Disclosure: Futures and forex trading contains substantial risk and is not for every investor. An investor could potentially lose all or more than the initial investment. Risk capital is money that can be lost without jeopardizing one's financial security or life style. Only risk capital should be used for trading and only those with sufficient risk capital should consider trading. Past performance is not necessarily indicative of future results.

Hypothetical Performance Disclosure: Hypothetical performance results have many inherent limitations, some of which are described below. No representation is being made that any account will or is likely to achieve profits or losses similar to those shown; in fact, there are frequently sharp differences between hypothetical performance results and the

actual results subsequently achieved by any particular trading program. One of the limitations of hypothetical performance results is that they are generally prepared with the benefit of hindsight. In addition, hypothetical trading does not involve financial risk, and no hypothetical trading record can completely account for the impact of financial risk of actual trading. for example, the ability to withstand losses or to adhere to a particular trading program in spite of trading losses are material points which can also adversely affect actual trading results. There are numerous other factors related to the markets in general or to the implementation of any specific trading program which cannot be fully accounted for in the preparation of hypothetical performance results and all which can adversely affect trading results.

Testimonial Disclosure: Testimonials appearing on this website may not be representative of other clients or customers and is not a guarantee of future performance or success.

Educational Disclosure: The Push Button Trading mentorships, courses, classes, live events, and content are provided for educational purposes only. We are not providing financial advice. It is your responsibility to test all strategies and plans. You are the only one pushing the buttons and it is your responsibility to fully understand the risks before implementing any of the education provided by Push Button Trading.

© 2026, Push Button Trading, All Rights Reserved