Generates a complete VectorBT backtest script for a chosen strategy on a symbol, with NIFTY benchmarking.

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

Own this skill? Claim it

What it does

  • Covers ten strategy templates, including EMA crossover, RSI, Donchian, Supertrend, MACD, SDA2, momentum, dual momentum, buy-and-hold, and RSI accumulation
  • Writes each script to backtesting/{strategy}/{symbol}_{strategy}_backtest.py, fetching data via OpenAlgo or a DuckDB file
  • Uses OpenAlgo ta indicators by default and applies Indian delivery and F&O fee and lot-size settings
  • Prints full stats and a strategy-versus-benchmark table, and generates an OpenStatz tearsheet and Plotly equity and drawdown charts

Install

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

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

Files

Create a complete VectorBT backtest script for the user.

Arguments

Parse $ARGUMENTS as: strategy symbol exchange interval

  • $0 = strategy name (e.g., ema-crossover, rsi, donchian, supertrend, macd, sda2, momentum)
  • $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 they want.

Instructions

Details

Repository
github.com/marketcalls/vectorbt-backtesting-skills
Categories
Finance & Trading, Data Science & Analytics, Python

More from marketcalls/vectorbt-backtesting-skills

All 6

Similar to Backtest

More Finance & Trading