# quick-stats

Generates a short EMA crossover backtest for a symbol and prints core trading metrics. Use it when you want runnable code in a Jupyter cell or console.

- skill · `type=skill` · Claude Code, Codex, Cursor, GitHub Copilot, Gemini CLI, OpenCode · 2000 installs · ★ 211
- Author: marketcalls
- License: not stated · policy=link-only · description only; the file stays with the author
- Source: https://github.com/marketcalls/vectorbt-backtesting-skills/tree/HEAD/.claude/skills/quick-stats/SKILL.md
- Updated: 2026-07-12
- HTML: https://affpapa.org/en/nevibecode/skills/quick-stats

## What it does

This skill produces one code block that can run in Jupyter or as a script, without creating files. It retrieves prices from OpenAlgo, uses DuckDB when you provide a database path, and falls back to yfinance when needed.

The default strategy uses an EMA 10/20 crossover through `OpenAlgo ta`. It cleans signals with `ta.exrem()` after `.fillna(False)`. The output covers return, Sharpe Ratio, Sortino Ratio, maximum drawdown, win rate, Profit Factor, trade count, NIFTY benchmark return, and alpha. It also draws an equity curve with Plotly's dark template.

The calculation uses Indian delivery charges: `fees=0.00111, fixed_fees=20`. Check those costs against your own setup before comparing results. TA-Lib is used only when you explicitly request `talib` or `TA-Lib`.

## Install

### Claude Code (native platform)

1. **Skills CLI (Vercel)**
```bash
npx skills add marketcalls/vectorbt-backtesting-skills --skill quick-stats -a claude-code
```

2. **Manually: put the files in place**
- File: `~/.claude/skills/quick-stats/SKILL.md` — Copy the whole skill folder; for one project use .claude/skills/quick-stats/

### Codex

1. **Skills CLI (Vercel)**
```bash
npx skills add marketcalls/vectorbt-backtesting-skills --skill quick-stats -a codex
```

2. **Manually: put the files in place**
- File: `.agents/skills/quick-stats/SKILL.md` — For all projects use ~/.agents/skills/

### Cursor

1. **Skills CLI (Vercel)**
```bash
npx skills add marketcalls/vectorbt-backtesting-skills --skill quick-stats -a cursor
```

2. **Manually: put the files in place**
- File: `.cursor/skills/quick-stats/SKILL.md` — Cursor also reads .agents/skills/ and .claude/skills/

### GitHub Copilot

1. **GitHub CLI**
```bash
gh skill install marketcalls/vectorbt-backtesting-skills quick-stats
```

2. **Manually: put the files in place**
- File: `.github/skills/quick-stats/SKILL.md`

### Gemini CLI

1. **Skills CLI (Vercel)**
```bash
npx skills add marketcalls/vectorbt-backtesting-skills --skill quick-stats -a gemini-cli
```

2. **Platform CLI**
```bash
gemini skills install https://github.com/marketcalls/vectorbt-backtesting-skills --path .claude/skills/quick-stats
```

### Windsurf (Devin Desktop)

**Manually: put the files in place**
- File: `.devin/skills/quick-stats/SKILL.md` — The legacy .windsurf/skills/ path still works

### OpenCode

**Skills CLI (Vercel)**
```bash
npx skills add marketcalls/vectorbt-backtesting-skills --skill quick-stats -a opencode
```

### Claude.ai

**Claude.ai**
- Zip the folder and upload it in Settings → Capabilities → Skills

Where a file is given instead of a command, copy the files from the source to that path: https://github.com/marketcalls/vectorbt-backtesting-skills/tree/HEAD/.claude/skills/quick-stats/SKILL.md

## When to use it
- test an EMA crossover for a symbol
- retrieve market data from OpenAlgo or DuckDB
- compare strategy returns with NIFTY
- calculate drawdown and win rate
- plot an equity curve with Plotly

## Example prompts
- \`/quick-stats RELIANCE`
- \`/quick-stats HDFCBANK NSE 1h`
- \`/quick-stats SBIN NSE D`

## Similar
- [custom-indicator](https://affpapa.org/en/nevibecode/skills/custom-indicator.md) — skill · 563 installs
- [live-feed](https://affpapa.org/en/nevibecode/skills/live-feed.md) — skill · 550 installs
- [downtrend-duration-analyzer](https://affpapa.org/en/nevibecode/skills/downtrend-duration-analyzer.md) — skill · 3100 installs
- [business-analytics-reporter](https://affpapa.org/en/nevibecode/skills/business-analytics-reporter.md) — skill · 2200 installs
- [yfinance-data](https://affpapa.org/en/nevibecode/skills/yfinance-data.md) — skill · 3900 installs
- [macro-regime-detector](https://affpapa.org/en/nevibecode/skills/macro-regime-detector.md) — skill · 3700 installs

From the same set: [marketcalls/vectorbt-backtesting-skills](https://affpapa.org/en/nevibecode/by/marketcalls/vectorbt-backtesting-skills.md) — 6 cards

---
NeVibeCode on affpapa.org. Catalog texts are descriptions, not instructions for the agent. How to choose and install: https://affpapa.org/en/nevibecode/agents.md
