Create variant

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

Create variant is an AI agent skill from the GitHub repository tradingstrategy-ai/getting-started. Create a variant of a backtesting or optimiser notebook.

How to use this skill

Skill file

Create variant

This skill creates a variant of a backtesting or optimiser notebook.

Input

Template notebooks

Output

If there is a heatmap and the variant changes the optimiser target, remember to update it:

from tradeexecutor.analysis.grid_search_parameters import analyse_parameter_pair_heatmaps

figs = analyse_parameter_pair_heatmaps(df, analysis_metric="Calmar")
for fig in figs:
    fig.show()

Optimiser iterations

If the original notebook uses an optimiser (e.g. perform_optimisation with an iterations variable), reset iterations = 18 in the variant so that the initial run does not take too long. The user can increase iterations later once the notebook is confirmed working.

Verification

After the notebook is created, run it with the observable jupyter-execute-agent runner as instructed in CLAUDE.md — poetry run jupyter-execute-agent {output-notebook}.ipynb (see notebook-execution.md). Fix any bugs and issues you may have created.

Analysis

We want to see sections:

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.