
Bracket Orders and OCO Explained: Why Your Bot's Stop and Target Aren't Independent Orders
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.



