backtest

Installation
Summary

Generate complete VectorBT backtesting scripts with data fetch, signals, stats, and plots.

  • Supports 10+ pre-built strategies (EMA crossover, RSI, Donchian, Supertrend, MACD, SDA2, momentum, and more) with template-based script generation
  • Fetches data from OpenAlgo API or loads directly from DuckDB; auto-detects Historify vs custom formats
  • Uses TA-Lib for standard indicators and OpenAlgo ta for specialty indicators (Supertrend, Donchian, Ichimoku); includes signal deduplication via exrem()
  • Generates portfolio stats, strategy vs NIFTY benchmark comparison table, QuantStats HTML tearsheet, Plotly equity/drawdown charts, and CSV trade exports
  • Handles Indian delivery fees (0.111% + ₹20 fixed) and F&O lot-size constraints (NIFTY 65, BANKNIFTY 30)
SKILL.md

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

Related skills
Installs
1.3K
GitHub Stars
133
First Seen
Feb 25, 2026