They are two different positions. The strategy position is virtual and comes from the strategy's own entries and exits; the account position is what you really hold. They usually split when you start a strategy mid-session, and the Start Behavior setting decides what happens at that moment.
On this page
The typical case: starting mid-session
When enabled, the strategy runs through the chart's historical bars to work out what position it would hold. If it would have bought 1 contract and still be in that trade, its position is long 1, but your account is flat because that order was never sent. If they aren't synced, the sell order that closes its position will leave your account short: the strategy thinks it is exiting while it actually opens a trade the other way.
Other causes of the gap
- You trade manually in the same market from the SuperDOM or Chart Trader.
- You run several strategies on the same instrument. Each keeps its own position: if A is long 1 and B is long 2, the account should be long 3.
- Active orders already existed before start that the strategy didn't generate. They aren't cancelled when it starts.
The five Start Behavior options
| Option | What it does | When to use it |
|---|---|---|
| Wait until flat | The default. If the strategy isn't flat, it trades virtually until it is. It then goes live and assumes the account matches. | When your account is already flat at start. |
| Wait until flat, synchronize account | If the account isn't flat, it sends market orders to flatten it, then waits for the strategy to be flat too. | To start from flat with little intervention. |
| Immediately submit | Starts trading right away and assumes the account matches the strategy. | Only when you're sure your account is where it should be. |
| Immediately submit, synchronize account | Starts right away and sends market orders so the account matches the strategy. | To trade at once without worrying about the prior position. |
| Adopt account position | Ignores the historical virtual position and starts with the real account position. | Only if the strategy is programmed for it. |
Four warnings from the official guide
- It only syncs once. These options act at start and don't guarantee the account stays in sync afterwards.
- Synchronize account can open or close live trades. That market order is sent outside the strategy, so your code can't manage it from OnOrderUpdate() or OnExecution().
- Wait until flat assumes your account is flat. If the account isn't flat when the strategy reaches flat, the two end up out of sync.
- There is a 40-second limit. If the strategy can't cancel its earlier orders in that time, it won't start and an alert is issued.
If you can't see Adopt account position, your install isn't broken: the strategy wasn't programmed to handle account positions. The developer must set IsAdoptAccountPositionAware to true and prepare the code for it.
Before you enable a strategy
- Check your real position on that instrument and any active orders.
- Check what position the strategy shows when enabled.
- Pick the Start Behavior from the table, not out of habit.
- Avoid manual trades on that instrument while the strategy runs.
- Test the start on Sim101 with the session already under way.
On a prop firm account it can cost you the account. An unexpected position, or a market order sent at start, uses up drawdown like any other trade. Before automating, review why a strategy doesn't place orders and check your firm's limits.
Want someone to review it? We check how your NinjaScript strategy starts and what it does with the account position.
Review from $90 Analyze NinjaTrader with AISources
- Strategy Position vs. Account Position (NinjaTrader 8 Help Guide)
- Syncing Account Positions (NinjaTrader 8 Help Guide)
- StartBehavior (NinjaScript Language Reference)
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.