NinjaTrader 8 Chart Not Loading Historical Data (or Showing Only a Few Bars): How to Fix It
You open a chart in NinjaTrader 8 and it's empty, or it only shows today's bars while yesterday is missing. It's one of the most common NinjaTrader problems and it usually has a simple cause. Here are the fixes in the order worth trying them.
1. Check the connection and the contract
- Are you connected? Historical data comes from your data connection. If it's disconnected or still connecting, the chart has nothing to load.
- Right contract? If the chart is on an expired month or one that isn't trading yet, there's little or no data. Around rollover, switch to the new contract (see NQ and ES rollover dates).
- Does your provider offer that history? Some connections only provide a limited number of days, especially for tick data. No setting will load more than the provider has.
2. Raise "Days to load"
If the chart shows only recent bars, it's usually just the setting. Right-click the chart background, open Data Series, increase Days to load and press OK. Keep it reasonable: loading many days of tick or 1-second data slows the platform (see charts slow or frozen).
3. Reload all historical data
Right-click the chart and choose Reload All Historical Data. This asks the server for the history again instead of using what's stored locally, which fixes gaps and partially downloaded days.
4. Clear the local cache
If reloading doesn't help, the local database may be corrupted. Close NinjaTrader and, under Documents\NinjaTrader 8\db, delete the cache, tick, minute and day folders. When you reopen NinjaTrader and connect, it downloads fresh data. It's a good idea to make a backup first (see NinjaTrader backup).
5. Test with a clean chart
Open a new 1-minute chart with no template, 5 days to load and the default 24/7 trading hours. If that one loads, the problem is in your original chart's template, trading hours or indicators, not in the data.
And TQ Charts
TQ Charts draws its charts from the data your NinjaTrader connection receives, so if NinjaTrader can't get history, start with the steps above. Until NinjaTrader is linked, TQ Charts shows delayed data so you can still look at charts, and it switches to real time once NinjaTrader is open and linked.
FAQ
Why does my NinjaTrader chart only show a few bars?
Usually because "Days to load" is set low. Right-click the chart, open Data Series and increase it.
How do I reload historical data in NinjaTrader 8?
Right-click the chart and select Reload All Historical Data. If that doesn't fix it, clear the cache, tick, minute and day folders in Documents\NinjaTrader 8\db with NinjaTrader closed.
Why is my NinjaTrader chart blank?
Most often the data connection isn't connected, the chart is on an expired contract, or the provider doesn't offer history for that instrument or interval.