LogoAwesome Skills
  • Search
  • Category
  • Tag
  • Blog
LogoAwesome Skills
LogoAwesome Skills

Discover Open-Source Agent Skills for AI Coding Assistants

Product

  • Search
  • Category
  • Tag
  • Blog

Resources

  • Claude Skill Docs
  • Antigravity Skills Docs

Tools

  • Claude Code
  • OpenCode
  • Cursor
  • Codex
  • Antigravity

Company

  • Privacy Policy
  • Terms of Service
  • Sitemap

©2026 Awesome Skills. All rights reserved.

Privacy PolicyTerms
Back to Skills

vectorbt-expert

VectorBT backtesting expert. Use when user asks to backtest strategies, create entry/exit signals, analyze portfolio performance, optimize parameters, fetch historical data, use VectorBT/vectorbt, compare strategies, position sizing, equity curves, drawdown charts, or trade analysis. Also triggers for openalgo.ta helpers (exrem, crossover, crossunder, flip, donchian, supertrend).

162stars42forksUpdated 6/29/2026
Data Science & ML#quantitative-finance#vectorbt#trading#python#backtesting

Security Assessment

Medium Risk(50/100)

Detected risks:

Secret Exposure([rules/data-fetching.md] api_key=, [rules/data-fetching.md] API_KEY=, [rules/data-fetching.md] api_key =)
Sensitive File Access([rules/data-fetching.md] .env, [SKILL.md] .env)
Security Score50/100

About vectorbt-expert

A VectorBT backtesting expert for designing and running quantitative trading backtests in Python. It activates when the user wants to backtest strategies, create entry and exit signals, analyze portfolio performance, optimize parameters, fetch historical data, compare strategies, work with position sizing, equity curves, drawdown charts, or trade analysis, and it also triggers on openalgo.ta helpers such as exrem, crossover, crossunder, flip, donchian, and supertrend. The working environment is Python with vectorbt, pandas, numpy, and plotly, drawing data from OpenAlgo for Indian markets, DuckDB for direct database access, yfinance for US and global data, and CCXT for crypto.

The skill enforces a set of critical rules. Technical indicators are always computed with TA-Lib, never with VectorBT built-ins, while specialty indicators not in TA-Lib (Supertrend, Donchian, Ichimoku, HMA, KAMA, ALMA, ZLEMA, VWMA) and signal utilities (exrem, crossover, crossunder, flip) come from openalgo.ta, with an inline exrem fallback when openalgo.ta is unavailable. Raw signals are always cleaned with ta.exrem() after a fillna(False), fees are auto-selected per market (Indian STT and statutory charges plus a fixed per-order amount, or US and crypto equivalents), every backtest produces a Strategy versus Benchmark comparison table, and reports are explained in plain language. Plotly candlestick charts use a category x-axis to avoid weekend gaps and the plotly_dark template, equities use whole-share sizing, and API keys load from a single root .env via find_dotenv rather than being hardcoded.

Depth is organized into modular rule files under rules/ covering data fetching, simulation modes, position sizing, indicators and signals, stop-loss and take-profit, parameter optimization, performance analysis, plotting, market-specific cost models, futures, long-short trading, DuckDB and CSV loading and resampling, walk-forward analysis, robustness testing, pitfalls, a strategy catalog, and QuantStats tearsheets. Production-ready strategy templates live in rules/assets, including EMA crossover, RSI, Donchian, Supertrend, MACD, SDA2, momentum and dual momentum, buy and hold, RSI accumulation, walk-forward, and realistic-cost comparisons, and a standard backtest script template is provided inline. Scripts are placed in backtesting/{strategy_name}/ directories created on demand, and no icons or emojis are used in code or logger output.

FAQ

Which library is used to compute technical indicators?

TA-Lib is always used for indicators such as EMA, SMA, RSI, MACD, BBANDS, ATR, ADX, STDDEV, and MOM. VectorBT built-in indicators like vbt.MA.run() or vbt.RSI.run() are never used.

Where do indicators that TA-Lib lacks come from?

From openalgo.ta, which provides Supertrend, Donchian, Ichimoku, HMA, KAMA, ALMA, ZLEMA, and VWMA, plus signal utilities like exrem, crossover, crossunder, and flip. There is an inline exrem fallback when openalgo.ta is not importable.

What data sources can it pull historical data from?

OpenAlgo for Indian markets, DuckDB for direct database access (custom or OpenAlgo Historify format), yfinance for US and global data, and CCXT for crypto, with API keys loaded from a single root .env via find_dotenv.

How are trading fees handled?

Fees are auto-selected by market: Indian markets use STT plus statutory charges and a fixed per-order amount, with separate cost models for US and crypto. Every backtest also produces a Strategy versus Benchmark comparison table.

Why must candlestick charts use a category x-axis?

Plotly candlestick charts use xaxis type category to avoid weekend gaps in the chart, and they use the plotly_dark template.

All Files

34 files
rules/assets/buy_hold/backtest.py8.7 KB
View
rules/assets/dual_momentum/backtest.py7.7 KB
View
rules/assets/macd/backtest.py6.2 KB
View
rules/assets/momentum/backtest.py5.1 KB
View
rules/assets/rsi_accumulation/backtest.py10.8 KB
View
rules/assets/sda2/backtest.py5.2 KB
View
rules/assets/walk_forward/template.py8.2 KB
View
rules/csv-data-resampling.md3.5 KB
View
rules/duckdb-data.md8.0 KB
View
rules/futures-backtesting.md2.4 KB
View
rules/indian-market-costs.md7.2 KB
View
rules/long-short-trading.md2.0 KB
View
rules/parameter-optimization.md4.9 KB
View
rules/pitfalls.md6.1 KB
View
rules/assets/donchian/backtest.py5.4 KB
View
rules/assets/ema_crossover/backtest.py6.1 KB
View
rules/assets/realistic_costs/template.py6.9 KB
View
rules/assets/rsi/backtest.py5.7 KB
View
rules/assets/supertrend/backtest.py5.5 KB
View
rules/crypto-market-costs.md9.7 KB
View
rules/data-fetching.md16.2 KB
View
rules/indicators-signals.md5.4 KB
View
rules/openalgo-ta-helpers.md4.6 KB
View
rules/performance-analysis.md4.4 KB
View
rules/plotting.md5.8 KB
View
rules/quantstats-tearsheet.md6.9 KB
View
rules/simulation-modes.md4.1 KB
View
rules/strategy-catalog.md5.3 KB
View
rules/walk-forward.md7.4 KB
View
rules/position-sizing.md2.7 KB
View
rules/robustness-testing.md12.5 KB
View
rules/stop-loss-take-profit.md1.8 KB
View
rules/us-market-costs.md7.9 KB
View
SKILL.md12.0 KB
View

Install vectorbt-expert

Download and extract the skill files to your .claude/skills/ directory.

Quick Setup:

  1. Copy the skill folder to .claude/skills/
  2. Claude will automatically detect and use the skill

Repository

marketcalls/vectorbt-backtesting-skills

Related Skills

dbt-sf-to-bq-translator

21,076

build-models

102

html-prototype

3,588

doc

448