Trading Technology·10 min read

How To Clear NinjaTrader 8 Cache: Fix Lag, Data Errors, and Slow Charts

CN
Carlos Navarro
How To Clear NinjaTrader 8 Cache: Fix Lag, Data Errors, and Slow Charts

How To Clear NinjaTrader 8 Cache: Fix Lag, Data Errors, and Slow Charts

If NinjaTrader 8 is lagging, charts are slow, or data seems incorrect, clearing the cache can solve these issues. Cache files store temporary data to speed up performance but can accumulate over time, causing problems like incorrect bars, data gaps, or charts stuck on "Calculating." Here's how to fix it:

  • Save your workspaces: Back up your settings via Tools > Export > Backup File and ensure all workspaces are saved.
  • Close NinjaTrader completely: Disconnect from all data providers and exit the platform properly.
  • Locate and delete cache files: Go to Documents\NinjaTrader 8\db and delete the cache, tick, minute, and day folders.
  • Empty the Recycle Bin: Permanently remove deleted files to free up space.
  • Restart NinjaTrader: Relaunch the platform to regenerate fresh data.

Doing this regularly can improve performance, reduce lag, and ensure accurate data. If issues persist, reload historical data or check system resource usage.

5-Step Process to Clear NinjaTrader 8 Cache and Fix Performance Issues

5-Step Process to Clear NinjaTrader 8 Cache and Fix Performance Issues

5-Step Process to Clear NinjaTrader 8 Cache and Fix Performance Issues

How Cache Affects NinjaTrader 8 Performance

NinjaTrader 8

What Cache Does in NinjaTrader 8

NinjaTrader 8 uses caching to store temporary and historical data - like tick, minute, and daily data - to make chart loading quicker and reduce the need for repeated downloads. When you open a chart, the platform pulls this information from cached files instead of retrieving everything from scratch. This approach is meant to speed up workspace loading and create a smoother trading experience.

The cache is stored in the Documents\NinjaTrader 8\db directory, and it grows as you access more charts and symbols. While this system improves performance initially, the cache doesn’t clean itself automatically, which can lead to excessive buildup over time.

Unfortunately, this can cause problems, especially when the cached data becomes outdated or corrupted.

Problems Caused by Cache Buildup

When cache files are stale or corrupted, they can cause a variety of headaches. Charts might display incorrect bars, show gaps in data, or fail to align with the actual data on your provider’s server. Even after reconnecting to the server, you could still see data gaps or encounter common NinjaTrader errors like "Error has occurred in NinjaTrader database cache".

Because NinjaTrader 8 operates as a single-core application, it heavily relies on CPU power and memory. Loading large amounts of historical data - such as a full year of 1-minute chart data - requires processing hundreds of thousands of data points. This can significantly slow down rendering times.

"The more you ask of NinjaTrader to load on your charts, the more it pushes your PC which may result in freezing or lagging behavior." - NinjaTrader_Oxana, Senior Member, NinjaTrader

"The more you ask of NinjaTrader to load on your charts, the more it pushes your PC which may result in freezing or lagging behavior." - NinjaTrader_Oxana, Senior Member, NinjaTrader

Excessive cache buildup can increase strain on your CPU, which should ideally stay below 70%, and memory, which works best under 80%. When these limits are exceeded, you may face slow load times, lag, freezing, platform crashes, or charts stuck on "Calculating".

Before You Clear the Cache

Before you dive into clearing the cache, make sure your settings are protected. This will help you avoid losing any of your customized workspaces.

Save Your Workspaces

Workspaces in NinjaTrader 8 are your personalized setups, including trading layouts, charts, and modules. To keep these intact, it's crucial to save them before proceeding.

One thing to note: NinjaTrader 8 might not save changes to your workspaces if the application is closed incorrectly. For instance, if you right-click the NinjaTrader icon in the Windows taskbar and close it from there, the platform skips the step where it prompts you to save your workspaces. When you restart after clearing the cache, you might find that it reverts to an earlier state or only displays the main Control Center.

"The only item that may be happening is if you are using the windows taskbar to right click the NinjaTrader icon and close it, that would close the windows before bringing the control center to view to save the workspace. As long as you are clicking the X in the control center that should save it." – NinjaTrader_Jesse, NinjaTrader Customer Service

"The only item that may be happening is if you are using the windows taskbar to right click the NinjaTrader icon and close it, that would close the windows before bringing the control center to view to save the workspace. As long as you are clicking the X in the control center that should save it." – NinjaTrader_Jesse, NinjaTrader Customer Service

To avoid this, save your current workspace through the Workspaces tab in the Control Center. Additionally, back up your settings by navigating to Tools > Export > Backup File. This backup will include essential settings, templates, and any custom instruments you've added.

Once you've saved and backed up your workspaces, you're ready to completely shut down NinjaTrader 8.

NEVER MISS A TRADE
Your algos run 24/7
even while you sleep.

99.999% uptime • Chicago, New York & London data centers • From $59.99/mo

Close NinjaTrader 8 Completely

After securing your workspaces, it’s important to fully exit NinjaTrader 8. Leaving it running - even in the background - could lead to file access errors or even data corruption when you clear the cache.

Start by disconnecting from all brokers and data providers via the Connections menu in the Control Center. Then, close the platform properly by either clicking the X in the Control Center or selecting File > Exit. This ensures all open workspaces are saved before the platform shuts down.

To double-check, open the Workspaces menu in the Control Center. A green icon indicates an active workspace that’s currently visible, while a grey icon means the workspace is open in the background. Close any grey workspaces to ensure nothing is left running.

"If you see a grey icon [in the Workspaces menu], the workspace is opened in the background. Meaning you don't see its windows, but it will use PC resources." – NinjaTrader_Jason, NinjaTrader Customer Service

"If you see a grey icon [in the Workspaces menu], the workspace is opened in the background. Meaning you don't see its windows, but it will use PC resources." – NinjaTrader_Jason, NinjaTrader Customer Service

Finally, open Task Manager (Ctrl+Shift+Esc) to confirm that no NinjaTrader processes are still running. If you spot any lingering processes, end them before moving on to clear the cache. This step ensures a smooth and error-free experience.

How to Clear NinjaTrader 8 Cache

To improve NinjaTrader 8's performance, clearing its cache is a straightforward process. Follow these steps carefully to ensure everything runs smoothly.

Step 1: Locate the Cache Folder

Start by opening Windows File Explorer and navigating to your Documents folder. Inside, go to the NinjaTrader 8 > db directory. This is where NinjaTrader keeps temporary and historical data.

Within the db folder, you'll see four sub-folders: cache, tick, minute, and day. These hold processed bar data and cached information that can accumulate over time, potentially slowing down the platform. It's worth noting that NinjaTrader does not automatically clear these files.

"NinjaTrader does not do anything to delete files from the Documents\NinjaTrader 8\db\cache folder so the data in the folder does increase over time." – Brandon H., NinjaTrader Customer Service

"NinjaTrader does not do anything to delete files from the Documents\NinjaTrader 8\db\cache folder so the data in the folder does increase over time." – Brandon H., NinjaTrader Customer Service

If you're using the best VPS for NinjaTrader 8, the typical path is C:\Users\Administrator\Documents\NinjaTrader 8\db. Replace "Administrator" with your Windows username if you're on a local PC.

Step 2: Delete Cache Files

Next, select the cache, tick, minute, and day folders and delete them. Make sure to delete only these folders to avoid any issues with the platform's installation. If the platform continues to struggle, you may need to access NinjaTrader log files to identify deeper technical errors.

If there are thousands of files in the cache folder, the deletion process might be slow in Windows Explorer. To speed things up, consider using Command Prompt. Once deleted, these folders will automatically regenerate when you restart NinjaTrader 8.

Step 3: Empty the Recycle Bin

After deleting the folders, open your Recycle Bin and empty it. This step ensures the files are permanently removed, freeing up disk space. Skipping this step means the files remain on your hard drive, which can limit the benefits of clearing the cache.

Step 4: Restart NinjaTrader 8

Finally, relaunch NinjaTrader 8. The platform will recreate the cache, tick, minute, and day folders automatically. Be prepared for a slightly longer initial load time as historical data is re-downloaded.

"When you restart NinjaTrader 8, you may notice a slightly longer initial load time as all of your historical chart data is re-downloaded, but your overall performance should be better." – Erick P., NinjaTrader Customer Service

"When you restart NinjaTrader 8, you may notice a slightly longer initial load time as all of your historical chart data is re-downloaded, but your overall performance should be better." – Erick P., NinjaTrader Customer Service

Once the platform is fully loaded, reconnect to your broker or market data feeds. Your workspaces, indicators, and strategies will remain intact, and the platform should run more efficiently without outdated or corrupted cache data.

Benefits of Regular Cache Maintenance with QuantVPS

After following the steps to clear your cache, the next challenge is maintaining NinjaTrader 8's performance. Regular upkeep and reliable hosting solutions are key to keeping everything running smoothly.

STOP LOSING TO LATENCY
Execute faster than
your competition.

Sub-millisecond execution • Direct exchange connectivity • From $59.99/mo

How QuantVPS Improves NinjaTrader 8 Performance

Clearing your cache is just the first step. Restarting NinjaTrader forces it to rebuild data, which can strain less capable systems and lead to lag. QuantVPS hosting plans are built to handle this heavy data processing with ease, ensuring your platform remains responsive.

With NVMe storage, high-speed CPUs, and plenty of RAM, QuantVPS regenerates cache files quickly without causing your charts to freeze. For instance, the VPS Pro plan, equipped with 6 cores and 16GB of RAM, keeps CPU and RAM usage between 15–25% during trading hours. This buffer is essential because when resource usage hits 90–100%, you’re likely to face frozen charts and delayed inputs, even if your cache is clean.

QuantVPS also prioritizes low-latency trading infrastructure. If you encounter lag despite low CPU usage, the issue is often tied to network connectivity rather than the platform itself. QuantVPS reduces input delays and "mouse click lag" by maintaining low-latency connections to major broker data centers. This ensures a smooth and responsive trading experience, even during periods of high market activity.

How Often to Clear Cache

There’s no one-size-fits-all rule for cache clearing, but active traders should make it a regular habit. If you’re frequently switching between instruments, running multiple charts, or using resource-heavy indicators, clearing the cache every few weeks can help prevent performance issues before they arise.

Certain situations call for immediate action, such as switching to a new data feed, encountering unexplained lag or chart errors, or trading during periods of extreme market volatility. If your VPS Task Manager shows CPU or RAM usage consistently maxed out, it’s time to clear the cache. You might also consider upgrading from a basic plan like VPS Lite ($59.99/month) to a more robust option like VPS Pro ($99.99/month) to ensure your system stays responsive. With regular maintenance and the right hosting plan, QuantVPS helps keep your trading platform running at its best.

Fixing Cache Clearing Problems

If you're dealing with issues after clearing the cache, here’s how to troubleshoot and get things back on track.

Confirm Cache Clearing Worked

Before restarting NinjaTrader 8, double-check that the necessary folders have been removed. Head to Documents\NinjaTrader 8\db and ensure the cache, tick, minute, and day folders are no longer there. Once you restart NinjaTrader, look for the "Loading" symbol - this shows the platform is rebuilding its historical data. The initial load might take a bit longer than usual, but you should notice improved performance afterward. If your charts were stuck on "Calculating" for an extended time, clearing the cache should fix that.

If verifying the cache clearing doesn’t resolve all data-related problems, the next step is to reload historical data.

Reload Historical Data

Still seeing missing bars or price gaps? Reloading historical data might do the trick. Right-click on the chart and select "Reload Historical Data", or use the shortcut Ctrl+Shift+R. Just make sure you’re connected to your data provider, as the reload function relies on it.

Managing Cache on a VPS

For persistent issues or if you're using a VPS, there are additional steps to follow. When running NinjaTrader 8 on a VPS, the cache folder is usually located at C:\Users\Administrator\Documents\NinjaTrader 8\db. After deleting the cache folders, restart the entire VPS. This ensures all settings are fully reloaded and clears temporary files from memory.

If you encounter an "Access to the path is denied" error, make sure NinjaTrader is completely closed and pause any cloud syncing of the db folder. To avoid future access issues, consider excluding NinjaTrader folders from Windows search indexing and antivirus scans. This can prevent background processes from interfering with file access.

Conclusion

Clearing the cache in NinjaTrader 8 can directly enhance the platform's performance. Regularly removing the contents of the cache, tick, minute, and day folders located in Documents\NinjaTrader 8\db helps eliminate temporary files that can bog down the system. As Brandon H. from NinjaTrader Customer Service explains, while the cache improves platform speed, unchecked growth can lead to performance issues, requiring manual deletion.

Beyond cache maintenance, reliable hosting plays a critical role in achieving optimal performance. Combining a clean cache with stable computing resources helps maintain CPU and RAM usage within the ideal 15–25% range, avoiding spikes to 90–100% that can result in frozen charts or delayed order execution. QuantVPS offers flexible hosting plans tailored to meet various trading demands, ensuring efficient resource utilization.

After clearing the cache, it’s important to restart NinjaTrader 8 and your VPS to ensure all files reload properly. If problems persist, use Task Manager to monitor resource usage or reach out to QuantVPS support for assistance. Consistent maintenance like this keeps your trading platform running smoothly and accurately.

FAQs

Will clearing the cache delete my workspaces or indicators?

Clearing the cache in NinjaTrader 8 won't delete your workspaces or indicators. It simply gets rid of temporary files and outdated data to help the platform run more smoothly. All your saved workspaces, indicators, and settings are stored separately, so they stay intact even after clearing the cache.

Why do my charts load slower right after clearing the cache?

When you clear the cache in NinjaTrader 8, charts may load more slowly because the platform has to rebuild the deleted cached and historical data. This process happens because clearing the cache removes temporary files from folders such as 'cache,' 'tick,' 'minute,' and 'day.' After restarting the platform, NinjaTrader regenerates this data, which can temporarily slow down chart loading until the rebuilding process is finished.

What should I do if data gaps remain after clearing the cache?

If clearing the NinjaTrader 8 cache doesn’t resolve data gaps, consider resetting the database. This step can address problems like missing trade history or data inconsistencies. However, keep in mind that resetting will erase historical trade data, orders, and executions. The good news? Your workspaces and strategies will remain intact.

Before proceeding, make sure to close NinjaTrader 8, back up any essential data, and disconnect from active positions. Once ready, follow the platform’s reset instructions carefully to complete the process.

CN

Carlos Navarro

March 17, 2026

Share this article:

About the Author

CN

Carlos Navarro

Prop Firm Trading Coach

Carlos has passed multiple prop firm challenges and now guides traders through the evaluation process, sharing strategies for funded trading success.

Areas of Expertise
Prop Firm ChallengesFunded TradingPosition SizingTrading Psychology
Published:

Disclaimer: QuantVPS does not represent, guarantee, support, or endorse any third-party brands, products, or services mentioned in this article. All brand references are for informational purposes only. Read our full Brand Non-Endorsement Disclaimer.

More articles

All posts
Best VPS optimized for futures trading - QuantVPS Logo
Best VPS optimized for futures trading - QuantVPS Logo

ONLINE WHILE YOU SLEEP
Run your trading setup
24/7 - always online.

Manage trades seamlessly with low latency VPS optimized for futures trading
CME GroupCME Group
Latency circle
Ultra-fast low latency servers for your trading platform
Best VPS optimized for futures trading in Chicago - QuantVPS LogoQuantVPS
Best VPS optimized for futures trading - QuantVPS Logo
Best VPS optimized for futures trading - QuantVPS Logo

Billions in futures
VOLUME TRADED DAILY
ON OUR LOW LATENCY
SERVERS

Chart in box

24-Hour Volume (updated Mar 17, 2026)

$11.71 Billion
2.91%
Best VPS optimized for futures trading - QuantVPS Logo
Best VPS optimized for futures trading - QuantVPS Logo

99.999% Uptime
– Built for 24/7
Trading Reliability.

Core Network Infrastructure (Chicago, USA)
100%
180 days ago
Today
DDoS Protection | Backups & Cyber Security
Operational
Best VPS optimized for futures trading - QuantVPS Logo
Best VPS optimized for futures trading - QuantVPS Logo

ELIMINATE SLIPPAGE
Speed up order execution
Trade smarter, faster
Save more on every trade

ES 03-26
CME
BidPriceAsk
5766.00
67
5765.75
45
5765.50
128
5765.25
89
5765.00
234
312
5764.75
156
5764.50
78
5764.25
203
5764.00
Spread0.25

Market Buy Order

50 Contracts

Target: 5765.00