NinjaTrader does not carry the last quantity you typed on a chart into the next order or the next strategy by itself — the order quantity box on the Chart Trader panel resets to the instrument's default account quantity every time you reload, switch instruments, or restart the platform. To make a quantity stick, you change the default at the source: the Simulated Data Feed or account-level order quantity in the Accounts window, the ATM Strategy quantity in the ATM Strategy parameters, or the strategy's DefaultQuantity in the Strategies tab. Whichever you pick, you stop retyping it manually.

That boundary matters, because "last quantity used" means different things to different readers: the quantity you fat-fingered into Chart Trader for one manual entry, the quantity an ATM strategy template fires with, or the quantity a fully automated NinjaScript strategy submits. Each of those three has its own persistent setting, and only the ATM path remembers a per-template value across sessions.

Why the Chart Trader Quantity Box Forgets Your Last Number

Chart Trader is a manual entry panel, not a memory system. When you type 3 contracts into the quantity field and fire an order, NinjaTrader sends 3 to the broker or the Simulated Data Feed and then rebuilds the panel against the instrument's default when the chart reloads, the account reconnects, or you switch the chart's instrument away and back. The field behaves like a scratch pad with a default value, not like a saved preference.

That default value comes from the account's configured order quantity in the Accounts window, which for a simulated account is set per instrument on the Simulated Data Feed. If you have never touched that setting, it sits at 1. This is the single most common reason a reader types 5, sees 5 fill, and then sees 1 sitting in the box on the next entry — nothing malfunctioned, the panel simply refreshed to its base value.

On a live account the same rule holds, but the default comes from whatever the broker connection reports and from your own account configuration, and it can differ between instruments. A chart on ES and a chart on MES can show different starting quantities for that reason alone. If you have ever set 2 on one symbol and found 1 waiting on another symbol, that is expected behavior rather than a bug.

The practical consequence is that persistence has to be engineered. There is no checkbox labeled "remember last quantity" in the Chart Trader properties, and treating the panel as though it should remember is where most of the frustration starts. Instead you pick the layer that already stores a number and make that layer hold the number you want.

One more wrinkle: the quantity field follows the panel's focus behavior. If you type a new quantity and click directly on the chart without pressing Enter or tabbing out of the field, the value can be discarded before it ever reaches an order. Confirm the number registers — the field should show the cursor leave it — before you click Buy or Sell.

Fix One: Set the Account and Simulated Data Feed Order Quantity

For anyone trading a simulated account, the cleanest fix lives in the Simulated Data Feed settings. NinjaTrader stores a per-instrument order quantity there, and Chart Trader reads that value as its starting point. Change it once and every new chart on that instrument opens with your number already in the box, which removes the retyping habit entirely.

The steps run in this order. Open the Control Center, then Tools, then Options, and select the Simulated Data Feed on the left. In the grid, find the instrument row you trade — for example ES 12-26 — and set the Order quantity column to the size you want as your default. Click OK or Apply, then close and reopen any chart on that instrument so the panel rebuilds.

For a live or brokerage account, the equivalent setting appears in the Accounts window, where NinjaTrader lists each account with an order quantity field per instrument in some configurations. The exact label depends on your connection provider, so confirm in the account row rather than assuming the layout matches another broker. The principle is the same: you are editing the number the panel starts from.

Failure case: after editing the Simulated Data Feed, an already-open chart keeps the old value until it reloads. Reopen the chart or refresh the data series. Failure case: instruments are matched by full contract name, so setting ES 12-26 does not change ES 03-27. You have to set each contract you trade, or set the front month again after a roll. Failure case: a second NinjaTrader installation on another machine carries its own settings. Copy nothing; set it again there.

If your platform build does not show an Order quantity column in the Simulated Data Feed grid, check the NinjaTrader help guide for your version before hunting elsewhere — the field's location has shifted between major releases, and the guide is the authority for the build you run.

Fix Two: Bake the Size Into an ATM Strategy Template

Automated Trade Management strategies carry their own quantity, and this is the layer that genuinely remembers a per-template value across sessions. If you always trade 2 contracts with a 10-tick stop and a 20-tick target, put 2 in the ATM template and select that template in Chart Trader; the panel then adopts the template's quantity and you never touch the box.

Open the ATM Strategy selection area on Chart Trader, choose the template you use, and open its parameters. The order quantity field in that template is the number that will be used when the strategy fires, and it survives restarts because templates are saved files. Save the template under a name you recognize, such as "ES 2-lot 10/20," so the quantity and the risk profile are tied together.

Here is where readers get caught. Chart Trader shows two numbers that can disagree: the quantity box on the panel and the quantity inside the selected ATM template. If the panel says 1 and the template says 2, the template's number governs the strategy order. That mismatch is the usual explanation for "the chart says 1 but I got filled for 2." Make the two agree, or trust the template and stop reading the box.

The failure handling is straightforward. If the template's quantity looks wrong mid-session, do not fix it by editing the panel — open the template, change it, and re-save. If you switch templates frequently, name them by size so the selection itself tells you the quantity. And if you share a workspace across machines, remember templates live in the local NinjaTrader documents folder, so a fresh install will not have them.

Fix Three: Set DefaultQuantity in the Strategies Tab

Fully automated NinjaScript strategies ignore Chart Trader's box entirely. They submit whatever the strategy code says, and the strategies that ship with NinjaTrader expose that number as DefaultQuantity, a parameter you set when you enable the strategy on the Strategies tab. Changing the Chart Trader quantity while an automated strategy runs does nothing to its order size.

The path is Control Center, then Strategies, then select your strategy and open its parameters. Find DefaultQuantity and set the contract count you want the strategy to trade, then enable it. Because strategy parameters are stored with the strategy instance, the value returns the next time you enable it, which is exactly the persistence the Chart Trader panel lacks.

Set DefaultQuantity to 2 and the strategy submits 2 per entry, regardless of what the panel shows. If the strategy is disabled and re-enabled, confirm DefaultQuantity before starting — re-enabling can reset parameters to their compiled defaults in some workflows. If you run two instances on different instruments, set each instance separately; there is no global strategy quantity.

For custom NinjaScript, the same idea applies in code: the strategy's quantity parameter should be a user input rather than a hard-coded value, so you adjust it from the parameters grid instead of recompiling. Custom strategies are outside what the standard documentation promises for parameter persistence, so test a disable-enable cycle on your own build before relying on it.

Manual Chart Trader, Chart Trader With ATM, and Automated Strategies Compared

The three layers behave differently, and knowing which one owns the number saves a lot of confusion. The table below compares them on the dimensions that actually decide where you should set your size.

Path Where the default lives Survives platform restart Survives instrument switch Applies to manual clicks Applies to strategy orders Main catch
Chart Trader manual Account / Simulated Data Feed order quantity Yes, once set No — per instrument contract Yes No Must be set per contract, including after a roll
Chart Trader + ATM template Saved ATM template quantity Yes Yes, if same template selected Only with template active Yes, strategy orders Panel box and template can disagree
Automated NinjaScript DefaultQuantity on Strategies tab Yes, with the instance Per strategy instance No Yes Panel changes are ignored

The split rule is simple. If you click Buy and Sell yourself, set the account or Simulated Data Feed quantity. If you click once and let an ATM strategy manage stops and targets, set the template quantity and select that template. If the strategy enters on its own, set DefaultQuantity and stop looking at the panel.

There is a fourth scenario worth naming: you trade manually but want a size that varies by setup, say 1 contract on a scalp and 3 on a swing. No persistence setting solves that cleanly, because persistence means one stored number. In that case keep two ATM templates named by size and switch between them, which is faster than retyping and leaves an obvious visual record of which size is armed.

Cost matters here too, and it is easy to compute. If you retype a quantity on every entry and you take 6 entries a day, that is 6 corrections; at 2 seconds each you spend 12 seconds daily, which is trivial, but the error rate is not. One mistyped extra zero on a 1-contract order places a 10-contract order, and on ES at $50 per point per contract a 4-point adverse move on those 10 contracts is $2,000 rather than $200. Setting the default once removes that failure mode, and the arithmetic is what makes it worth doing.

Why Your Quantity Keeps Reverting and How to Prove It Stuck

Reverting has a short list of causes, and each has a test. The first is that you edited the panel without committing the value — type the number, press Enter or tab away, and watch the field. The second is a chart reload or instrument switch, which rebuilds the panel from the account default. The third is that you are looking at the panel while an ATM template or automated strategy is actually supplying the quantity.

The proof is a deliberate test rather than a guess. Set the account or Simulated Data Feed quantity to 3, open a fresh chart on that instrument, and confirm the panel shows 3. Then switch the chart to a different instrument and back, and confirm it still shows 3. Restart NinjaTrader and check again. If it holds through all three, the persistence is set at the right layer.

Do the same for the ATM path. Select a template with quantity 2, place a simulated order, and read the fill in the Orders tab to see how many contracts filled. If the fill is 2 while the panel says 1, the template is doing its job and the panel is decorative for that order. That single observation resolves most "it won't remember" complaints.

If a value reverts after you have confirmed all of the above, suspect a workspace or template file issue rather than a setting. NinjaTrader stores workspaces and templates as local files, and a corrupted or read-only workspace can discard changes at shutdown. Rebuild the workspace with a fresh chart and test again; if the new workspace holds the value, the old file was the problem.

One edge case deserves a mention because it wastes hours: contract rollover. When ES 12-26 becomes ES 03-27, the new contract has its own Simulated Data Feed row and its own default. Your old setting does not follow the roll, so the first order on the new front month opens at 1. Set the new contract's quantity on roll day, or set both contracts ahead of time.

Chart Trader Quantity Versus Position Size: A Distinction Worth Getting Right

A lot of readers searching this topic are really asking about position size, and conflating the two produces bad settings. The Chart Trader quantity is the order size in contracts or shares for each entry. It is not a risk limit, not a max position, and not enforced by anything. Setting it to 2 does not stop you from placing a 20-lot order by typing 20.

NinjaTrader enforces limits elsewhere, through account-level risk settings and, at the broker, through margin. The quantity field is a convenience default. If your goal is "never trade more than 2 contracts," the durable fix is a broker-side or account-side restriction where your provider offers one, plus a discipline habit, rather than a default that any keystroke can override.

That distinction also explains why the platform does not try to remember arbitrary last-used values. A remembered 47 from one unusual trade would be a dangerous starting point on the next order. Defaults anchored to an account setting or a saved template are predictable, and predictability is the point.

So decide which question you are answering. If it is "how do I avoid retyping 2 every time," the account default or ATM template answers it. If it is "how do I cap my risk," the quantity field is the wrong tool and the account or broker configuration is the right one. Getting clear on that saves you from setting a default and then trusting it as a safety mechanism it was never designed to be.

Where the Quantity Persists, Where It Does Not, and What to Expect After Updates

Persistence is uneven across the platform, and knowing the map prevents surprise. Saved ATM templates persist as files and survive restarts and upgrades. Account and Simulated Data Feed settings persist in the platform's configuration and survive restarts, though they are per installation. Strategy parameters persist with the strategy instance once configured.

Chart Trader's typed-in number persists nowhere. It is a live field bound to the current panel state. Updates to NinjaTrader can move settings between menus, and major releases have reorganized the options dialogs before, so after an upgrade confirm the Simulated Data Feed quantity is still where you left it rather than assuming continuity.

Backup is worth two minutes. Copy your templates and workspace files from the NinjaTrader documents folder to another drive before a big upgrade. If the upgrade resets a template quantity to 1, you can restore the file instead of reconstructing five templates by memory. Readers who trade multiple instruments with distinct sizes feel this most.

For a multi-machine setup, expect to configure each machine independently. Settings do not sync through a NinjaTrader account for the Simulated Data Feed, and templates are local files. A second trading computer needs the same setup, and the fastest route is copying the template files rather than re-entering parameters by hand.

FAQ

Does NinjaTrader remember the last quantity I typed into Chart Trader?

No — the typed value is discarded when the panel rebuilds, and the field returns to the account or Simulated Data Feed default. The number you type is used for the order you place and then forgotten. Persistence only comes from setting the default at the account, template, or strategy layer.

Why does my Chart Trader show 1 when I set it to 3 last time?

Most likely you edited the panel without committing the value, or the chart reloaded and rebuilt the panel from the instrument's default. Set the default in the Simulated Data Feed grid for that exact contract instead of typing into the panel. Then reopen the chart to confirm.

Does changing Chart Trader's quantity affect an automated strategy?

No. Automated NinjaScript strategies submit their own DefaultQuantity from the Strategies tab, and the Chart Trader box has no influence on them. If a running strategy is filling a different size than the panel shows, the fix is on the strategy parameters, not the chart.

Can I set a different default quantity for each instrument?

Yes, on the Simulated Data Feed grid and in account configurations, defaults are per instrument contract. ES 12-26 and NQ 12-26 can hold different values. Note that a roll to ES 03-27 creates a new row, so the old setting does not carry across the rollover.

What happens if the ATM template quantity and the panel quantity disagree?

The ATM template wins for any order placed while that template is selected. A panel showing 1 while the template holds 2 will fill 2 contracts. Make the two match, or stop relying on the panel number when a template is active.

Is there a hard cap on order quantity in Chart Trader?

NinjaTrader does not impose a risk-based cap on the quantity field itself; your broker's margin and any account-level restrictions govern what can fill. Setting the field to a small number does not prevent placing a larger order by typing it, so treat it as a default rather than a limit.

Does the last quantity survive a NinjaTrader upgrade?

Account settings and saved templates generally survive, but upgrades have reorganized settings dialogs between major versions. Back up template and workspace files before upgrading. After the upgrade, verify the Simulated Data Feed quantity on your main instruments rather than assuming it carried over.