Parameter optimization script generator for VectorBT strategies that sweeps parameter grids and renders Plotly heatmaps.

skills.sh installs
2.4K
GitHub stars
229
last updated
Aug 21, 2026
View on GitHub

Own this skill? Claim it

What it does

  • Covers loop-based sweeps for ema-crossover, rsi, donchian, and supertrend, with default ranges for each strategy
  • Tracks total return, Sharpe ratio, max drawdown, and trade count per combination, printing top 10 by each criterion
  • Enforces OpenAlgo ta indicators by default, ta.exrem() signal cleaning, and Indian delivery fees of 0.00111 plus a fixed 20
  • Designed for Indian equity and futures backtesting that compares results against a NIFTY benchmark, with lot-size-aware sizing

Install

$ npx -y skills add marketcalls/vectorbt-backtesting-skills --skill optimize -y

Installs into .agents/skills for every agent it finds here, and .claude/skills for Claude Code.

Files

Create a parameter optimization script for a VectorBT strategy.

Arguments

Parse $ARGUMENTS as: strategy symbol exchange interval

  • $0 = strategy name (e.g., ema-crossover, rsi, donchian). Default: ema-crossover
  • $1 = symbol (e.g., SBIN, RELIANCE, NIFTY). Default: SBIN
  • $2 = exchange (e.g., NSE, NFO). Default: NSE
  • $3 = interval (e.g., D, 1h, 5m). Default: D

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

Instructions

Details

Repository
github.com/marketcalls/vectorbt-backtesting-skills
Categories
Finance & Trading, Data Science & Analytics, Python
First seen
May 16, 2026

More from marketcalls/vectorbt-backtesting-skills

All 6

Similar to Optimize

More Finance & Trading