Inline EMA 10/20 crossover backtest that prints key stats and NIFTY alpha without creating files.

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

Own this skill? Claim it

What it does

  • Covers fetching OHLC data from OpenAlgo, DuckDB, or yfinance, then running an EMA 10/20 crossover backtest
  • Uses OpenAlgo ta for EMAs by default, cleans signals with ta.exrem(), and applies Indian delivery fees
  • Prints a compact summary of return, Sharpe, Sortino, drawdown, win rate, profit factor, trades, and NIFTY alpha
  • Designed for traders on NSE who want a quick notebook or console check of a symbol's backtest

Install

$ npx -y skills add marketcalls/vectorbt-backtesting-skills --skill quick-stats -y

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

Files

Generate a quick inline backtest and print stats. Do NOT create a file - output code directly for the user to run or execute in a notebook.

Arguments

  • $0 = symbol (e.g., SBIN, RELIANCE). Default: SBIN
  • $1 = exchange. Default: NSE
  • $2 = interval. Default: D

Instructions

Generate a single code block the user can paste into a Jupyter cell or run as a script. The code must:

  1. Fetch data from OpenAlgo (or DuckDB if user provides a DB path, or yfinance as fallback)
  2. Use OpenAlgo ta for EMA 10/20 crossover by default (never VectorBT built-in); only use TA-Lib if the user explicitly says "talib"/"TA-Lib"
  3. Clean signals with ta.exrem() (always .fillna(False) before exrem)
  4. Use Indian delivery fees: fees=0.00111, fixed_fees=20
  5. Fetch NIFTY benchmark via OpenAlgo (symbol="NIFTY", exchange="NSE_INDEX")
  6. Print a compact results summary:

Details

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

More from marketcalls/vectorbt-backtesting-skills

All 6

Similar to Quick Stats

More Finance & Trading