If NinjaTrader ignores an order and points to its internal rules, it's rarely a bug. With managed order methods, NinjaTrader blocks orders that could leave you with a bigger position than you planned. A typical case: a target or stop is still working and your strategy submits another non-market order to reverse the position.
An example
You have a 1-contract profit target working, and your strategy also wants to reverse with a limit order very close to that price. If both filled in quick succession, you could end up with more contracts than planned. That's why NinjaTrader ignores one of them.
| What you submit | It's ignored if... |
|---|---|
| An entry | A position is open and a non-market exit (such as ExitLongLimit()) is active and used to open a position in the opposite direction. |
| An entry | A position is open and an order from SetStopLoss() or another Set method is active and used to open a position in the opposite direction. |
| An entry | A position is open and you submit two or more entries together to reverse it. The second one is ignored. |
| An entry | You're flat and another entry, such as EnterLongLimit(), is active and used to open a position in the opposite direction. |
| An entry | The entry signal name isn't unique. |
| An exit | A position is open and an entry, such as EnterLongLimit(), is active and used to open a position in the opposite direction. |
| An exit | A position is open and an order from a Set method, such as SetStopLoss(), is active. |
| A Set method | A position is open and an entry is active and used to open a position in the opposite direction. |
| A Set method | A position is open and a non-market exit, such as ExitLongLimit(), is active. |
How to find the cause
- Open the Log tab in the Control Center. That's where the message appears.
- Don't rely on the number of messages: to avoid excessive logging, NinjaTrader only reports the first order that breaks a rule. Later ones can be ignored with no message.
- Check which orders the strategy has working at that moment and compare each signal name: the rules apply per signal name.
- Check whether you're mixing
SetStopLoss()orSetProfitTarget()with exits likeExitLongLimit(). That's one of the combinations that trigger the rules.
What you can change
- Use one exit system: Set methods or Exit methods, depending on what your strategy needs.
- Give each entry a unique name. A repeated name is enough on its own for an entry to be ignored.
- Use a market order only if it fits your logic: these rules don't apply to market orders such as
ExitLong()orExitShort(). - If you need more control, consider the unmanaged approach. There, it's up to you to control the risk of duplicate orders.
On a prop firm account, don't remove a safeguard just to get an order through. These rules exist to prevent a bigger position than planned. Before you change anything, check your firm's contract limit and work out how many fit your drawdown.
If no orders go out at all, see the 11 causes of a strategy not placing orders. If only the second entry fails, see EntriesPerDirection and EntryHandling.
Want someone to review it? We check how your NinjaScript strategy submits and cancels orders.
Review from $90 Analyze NinjaTrader with AISource
Keep reading
Free: The Other Half Workbook. Nine templates for trading with a cool head: your one-page plan, the pre-session checklist, the twelve-patterns test, your size and the bill for your mistakes.
Get the free workbookGet ready for 2027: the Trader Planner. Each day's US releases in New York time, your pre-market routine and a log for every session.
Paperback on Amazon, $16.99 Get the PDF, $9Educational content based on the official NinjaTrader documentation. Not investment advice. Test any change on a simulation account before using it live.