backtest

backtest

marketcalls 177 ↓ 2.5k updated 1mo ago
Claude Code
View source ↗

What it does

  • $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
  • Load .env from the project root using finddotenv() (walks up from script dir automatically)
  • Fetch data via client.history() from OpenAlgo
  • If openalgo.ta is not importable (standalone DuckDB), use inline exrem() fallback.

Requirements & configuration

Configuration: ARGUMENTS

Derived from the skill's own SKILL.md documentation · extracted 2026-07-23

backtest FAQ

What does the backtest skill do?

Quick backtest a strategy on a symbol. Creates a complete .py script with data fetch, signals, backtest, stats, and plots. $0 = strategy name (e.g., ema-crossover, rsi, donchian, supertrend, macd, sda2, momentum) $1 = symbol (e.g., SBIN, RELIANCE, NIFTY). Default: SBIN

How do I install backtest?

Run: npx -y skills add https://github.com/marketcalls/vectorbt-backtesting-skills --skill backtest --agent claude-code — the source lives at github.com/marketcalls/vectorbt-backtesting-skills.

Maintain backtest?

Let people know it's listed here — add the badge (live metrics, light/dark aware) or a plain link to your README or docs.

[backtest on getagentictools](https://getagentictools.com/skills/marketcalls-vectorbt-backtesting-skills-backtest?ref=badge)
npx agentictools info skills/marketcalls-vectorbt-backtesting-skills-backtest

The second line is the CLI lookup for this page — handy in READMEs and docs.