Optimize

From marketcalls/vectorbt-backtesting-skills · View interactive version

Optimize is an AI agent skill from the GitHub repository marketcalls/vectorbt-backtesting-skills. Optimize strategy parameters using VectorBT. Tests parameter combinations and generates heatmaps.

How to use this skill

Skill file

Create a parameter optimization script for a VectorBT strategy.

Arguments

Parse $ARGUMENTS as: strategy symbol exchange interval

If no arguments, ask the user which strategy to optimize.

Instructions

  1. Read the vectorbt-expert skill rules for reference patterns
  2. Create backtesting/{strategy_name}/ directory if it doesn't exist (on-demand)
  3. Create a .py file in backtesting/{strategy_name}/ named {symbol}_{strategy}_optimize.py
  4. The script must:
  1. Never use icons/emojis in code or logger output
  2. For futures symbols, use lot-size-aware sizing:

Default Parameter Ranges

| Strategy | Parameter 1 | Parameter 2 |

|----------|------------|-------------|

| ema-crossover | fast EMA: 5-50 | slow EMA: 10-60 |

| rsi | window: 5-30 | oversold: 20-40 |

| donchian | period: 5-50 | - |

| supertrend | period: 5-30 | multiplier: 1.0-5.0 |

Example Usage

/optimize ema-crossover RELIANCE NSE D

/optimize rsi SBIN

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.