Delete your cache folder or how to deal with ghost indicators

Ninjatrader Utilization Monitor was showing an indicator running and taking a lot of CPU time (pure single file ninjascript) even though I no longer had it attached to any chart window. Removing the indicator from Indicators folder and recompiling did not help. Only after I deleted /db/cache folder, it stopped showing as running.

2 Likes

yeah after a bad import I had a ghost name sitting in the list that wouldnt delete, still eating cpu on a blank chart. nuked the cache folder same as you and it came back clean, lost my workspace layout though.

Actually, I delete all the subfolders of /NinjaTrader 8/db/ (leaving only NinjaTrader.sqlite) on a regular basis to keep it fresh and clean. Same with /NinjaTrader 8/tmp/, /cache/, /log/, and /trace/

* after running a backup, of course