Your Search Bar For Shrewd Tips

How Do I Clear Nt8 Cache?


If NinjaTrader 8 (NT8) is displaying stale chart data, loading slowly, or behaving unexpectedly, clearing its cache may help. The cache stores temporary information that the platform can usually recreate, so removing it can resolve certain data or display glitches. The key is to close NinjaTrader first and delete only the intended cache files—not your historical market data, workspaces, or other important files.

This guide explains how to clear the NT8 cache, what to expect afterward, and what to try if the issue continues. The instructions apply to the standard NinjaTrader 8 user-data folder on Windows; your exact folder location may differ if you use a custom installation or data directory.

What Does the NT8 Cache Do?

NinjaTrader uses cache files to temporarily store information that can help it load or display data more efficiently. If these files become outdated or corrupted, you may notice chart display problems, slow loading, or unusual behavior after an update. Removing the relevant cache files gives NT8 a chance to create fresh ones the next time it runs.

Clearing the cache is a troubleshooting step, not a guaranteed fix for every problem. It will not repair a disconnected data feed, correct a trading-hours template, or restore historical data that your provider does not supply. It also does not normally remove your NinjaScript source code, chart templates, or workspaces when you delete only the cache contents.

Before You Clear the NT8 Cache

Save your work and make sure NinjaTrader is completely closed before changing files. If the platform is open, it may keep cache files in use or recreate them while you are trying to remove them. Closing chart windows is not enough; exit the application itself.

  • Save any workspace changes and close NinjaTrader from the Control Center.
  • Check the Windows taskbar and system tray to confirm the platform has exited.
  • If NinjaTrader still appears to be running, open Task Manager and confirm that its process has stopped before proceeding.
  • If you are unsure which folder is the correct user-data folder, make a backup before deleting anything.

For additional peace of mind, you can copy the entire Documents\NinjaTrader 8 folder to another location before troubleshooting. This is especially sensible if you have custom scripts, templates, workspaces, or other files that would be difficult to recreate.

How to Clear the NT8 Cache

The standard cache location is inside your NinjaTrader 8 user-data folder. On many Windows computers, the path is Documents\NinjaTrader 8\db\cache. If Windows stores your Documents folder in OneDrive or another location, the full path may be different.

  • Open File Explorer.
  • Open your Documents folder, then open NinjaTrader 8.
  • Open the db folder, followed by the cache folder.
  • Select the contents of the cache folder and delete them. If you prefer, move them to a temporary backup folder instead.
  • Empty the Recycle Bin only after you are confident that you selected the correct files.
  • Start NinjaTrader 8 and allow it to rebuild the cache as needed.

In most cases, it is safer to remove the contents of the cache folder rather than delete or rename other folders in db. If the cache folder is missing, do not guess by deleting similarly named folders. Check the user-data path shown in NinjaTrader, or move on to the troubleshooting options below.

You can typically find the active user-data directory by opening NinjaTrader and checking Help > About. The exact wording or information shown may vary by version. Use that location to find the matching db\cache folder, then close the platform again before making changes.

What Happens When You Restart NinjaTrader?

After you restart NT8, it may take longer than usual to open charts or display data while it creates new cache files. This is generally expected. Let the platform finish loading before deciding whether the problem has been resolved, and avoid repeatedly deleting the cache during startup.

Depending on your data provider and the information requested by your charts, the platform may need to retrieve historical data again. How much data is available depends on your provider, subscription, instrument, and chart settings. If a chart appears incomplete after clearing the cache, check that your connection is active and that the chart’s date range and data series are set as expected.

Clearing the cache should not be treated as a way to erase all NinjaTrader data. The database also contains other folders and files that may store historical data or support platform functions. Deleting those items can have a much bigger impact than clearing temporary cache files.

Files and Folders You Should Not Delete

Do not delete the entire NinjaTrader 8 folder or the entire db folder as a shortcut. Those locations may contain important user settings and data. In particular, avoid removing folders such as minute, day, or tick unless NinjaTrader support has specifically instructed you to do so for a particular issue.

Also avoid deleting files simply because their names look unfamiliar. Your user-data folder can contain custom NinjaScript files, templates, add-ons, workspaces, logs, and configuration information. Removing the wrong item may reset settings, remove scripts, or make it harder to diagnose the original problem. If you are uncertain, stop and confirm the folder path before proceeding.

Clear the Cache or Reset Something Else?

“Cache” can refer to different kinds of temporary or compiled information. The steps above address the standard database cache folder. They may not resolve an issue caused by a broken custom indicator, a compilation problem, or a corrupted workspace.

If the problem started after installing or changing a NinjaScript indicator, strategy, or add-on, test NinjaTrader with the relevant custom item disabled if you can do so safely. For compilation-related errors, use NinjaTrader’s built-in NinjaScript options and review the error message rather than deleting random folders from the installation directory. Do not manually remove source files or compiled components unless you understand their purpose or have directions from support.

If only one chart is affected, check that chart’s instrument, interval, trading-hours template, and data-series settings. If all charts are affected, check your data-provider connection and platform status. A cache reset is most useful when the symptoms point to stale or damaged temporary data, not when the underlying cause is a setting or connection problem.

What to Try If Clearing the Cache Does Not Work

If the same symptoms return after NT8 rebuilds its cache, use a step-by-step troubleshooting process instead of repeatedly deleting files. Note when the problem occurs and whether it affects one instrument, one workspace, or the whole platform. That information can help narrow down the cause.

  • Confirm that NinjaTrader is connected to the correct market-data provider.
  • Check whether the provider is supplying data for the instrument and time period you are viewing.
  • Review the chart’s instrument, interval, trading-hours template, and historical-data range.
  • Restart NinjaTrader and, if appropriate, restart Windows to rule out a temporary process issue.
  • Check for NinjaTrader updates and review any recent changes to add-ons or custom scripts.
  • Record the error message and the steps that reproduce the issue before contacting support.

If you contact NinjaTrader support, describe what you were doing when the problem occurred and what you already tried. Include relevant error messages and your platform version. Avoid sending passwords or other sensitive account information. Support can help determine whether you should investigate a different folder or use a more targeted repair method.

Frequently Asked Questions About Clearing the NT8 Cache

Will clearing the NT8 cache delete my charts? Deleting only the contents of the standard database cache folder should not delete your saved chart layouts or workspaces. Still, close the platform first and avoid deleting folders outside the cache directory.

Will I lose historical data? Clearing the cache is different from deleting historical-data folders. However, charts may need to request data again, and what can be reloaded depends on your provider and its available history. Do not remove other database folders unless you have a specific reason and a reliable backup.

How often should I clear the cache? You generally do not need to clear it on a schedule. Use this as a targeted troubleshooting step when you have a reason to suspect stale or corrupted cached information.

Can I clear the cache while NinjaTrader is open? No. Exit NinjaTrader completely first. Removing files while the platform is running can lead to files being locked, recreated, or handled unpredictably.

Conclusion

To clear the NT8 cache, close NinjaTrader, open the active user-data folder, go to db\cache, and remove only the contents of that cache folder. Restart the platform and give it time to rebuild temporary files and reload data. If the issue continues, check your connection, chart settings, and recent script or add-on changes rather than deleting other database files. When in doubt, back up your NinjaTrader folder and ask NinjaTrader support before removing anything else.


Disclaimer: Articles are written by Humans, AI or Both. Verify Important information.

Shrewdnia

Shrewdnia

Shrewdnia is a destination for curious minds seeking clarity, knowledge, and informed perspectives. Through insightful articles and practical guides our passionate team explores a wide range of topics designed to help readers understand the world around them, make smarter decisions, and stay informed in an ever-changing landscape.


💡 Every question sparks discovery, and every perspective enriches the conversation. Share your thoughts and insights in the comments 👇

Back to blog

Leave a comment

JOIN THE SHREWDNIA COMMUNITY FORUM

What do you think?

Have an opinion, experience, or question about this topic? Join the Shrewdnia Forum and share your thoughts with other readers.

Join the Forum →