Clear backtesting cache

From tradingstrategy-ai/getting-started · View interactive version

Clear backtesting cache is an AI agent skill from the GitHub repository tradingstrategy-ai/getting-started. Delete cached indicator data used by backtesting, grid search, and optimiser notebooks.

How to use this skill

Skill file

Delete the indicator cache directory at ~/.cache/indicators/.

This cache stores pre-calculated indicator results (e.g. from grid search / optimiser runs) as pickle files on disk. Clearing it forces indicators to be recalculated on the next notebook run.

rm -rf ~/.cache/indicators

After deleting, report the size of the deleted directory if available, or confirm deletion.

If this is an optimiser notebook, also delete its optimiser cache folder. The cache path should appear in the perform_optimisation() output, for example:

/Users/moo/.cache/tradingstrategy/grid-search/42-hyperliquid-univ-daily-august-start
Use this skill with your AI agent: Open on Skill Issue to copy, download, or add to your library. Works with Claude, ChatGPT, Gemini, Cursor, Windsurf and more.