strategy-compare — vectorbt backtesting vectorbt-backtesting-skills, community, vectorbt backtesting, ide skills, quantstats tearsheets, trading strategy optimization, monte-carlo simulation in trading, walk-forward optimization, Claude Code, Cursor, Windsurf

v1.0.0
GitHub

About this Skill

Perfect for Trading Agents needing advanced backtesting and strategy comparison capabilities using VectorBT strategy-compare is a coding skill for backtesting trading strategies using VectorBT, supporting multiple markets and featuring realistic transaction cost modeling.

Features

Supports backtesting of trading strategies using VectorBT
Features realistic transaction cost modeling for accurate results
Includes 12 ready-made strategy templates for easy comparison
Utilizes QuantStats tearsheets for in-depth strategy analysis
Allows for Monte-Carlo simulations and walk-forward optimization
Supports TA-Lib indicators for technical analysis

# Core Topics

marketcalls marketcalls
[92]
[22]
Updated: 3/5/2026

Agent Capability Analysis

The strategy-compare skill by marketcalls is an open-source community AI agent skill for Claude Code and other IDE workflows, helping agents execute tasks with better context, repeatability, and domain-specific guidance. Optimized for vectorbt backtesting, quantstats tearsheets, trading strategy optimization.

Ideal Agent Persona

Perfect for Trading Agents needing advanced backtesting and strategy comparison capabilities using VectorBT

Core Value

Empowers agents to backtest and compare multiple trading strategies across Indian, US, and Crypto markets, utilizing technical indicators like ema-crossover, rsi, and donchian, and supporting long-vs-short strategy comparisons with libraries like VectorBT

Capabilities Granted for strategy-compare

Backtesting trading strategies for optimal performance
Comparing multiple strategies across different markets and symbols
Optimizing strategy parameters using VectorBT's backtesting capabilities

! Prerequisites & Limits

  • Requires VectorBT library
  • Limited to Indian, US, and Crypto markets
  • Default strategies used if no strategies are provided
Labs Demo

Browser Sandbox Environment

⚡️ Ready to unleash?

Experience this Agent in a zero-setup browser environment powered by WebContainers. No installation required.

Boot Container Sandbox

strategy-compare

Install strategy-compare, an AI agent skill for AI agent workflows and automation. Works with Claude Code, Cursor, and Windsurf with one-command setup.

SKILL.md
Readonly

Create a strategy comparison script.

Arguments

Parse $ARGUMENTS as: symbol followed by strategy names

  • $0 = symbol (e.g., SBIN, RELIANCE, NIFTY)
  • Remaining args = strategies to compare (e.g., ema-crossover rsi donchian)

If only a symbol is given with no strategies, compare: ema-crossover, rsi, donchian, supertrend. If "long-vs-short" is one of the strategies, compare longonly vs shortonly vs both for the first real strategy.

Instructions

  1. Read the vectorbt-expert skill rules for reference patterns
  2. Create backtesting/strategy_comparison/ directory if it doesn't exist (on-demand)
  3. Create a .py file in backtesting/strategy_comparison/ named {symbol}_strategy_comparison.py
  4. The script must:
    • Fetch data once via OpenAlgo
    • If user provides a DuckDB path, load data directly via duckdb.connect(path, read_only=True). See vectorbt-expert rules/duckdb-data.md.
    • If openalgo.ta is not importable (standalone DuckDB), use inline exrem() fallback.
    • Use TA-Lib for ALL indicators (never VectorBT built-in)
    • Use OpenAlgo ta for specialty indicators (Supertrend, Donchian, etc.)
    • Clean signals with ta.exrem() (always .fillna(False) before exrem)
    • Run each strategy on the same data
    • Indian delivery fees: fees=0.00111, fixed_fees=20 for delivery equity
    • Collect key metrics from each into a side-by-side DataFrame
    • Include NIFTY benchmark in the comparison table (via OpenAlgo NSE_INDEX)
    • Print Strategy vs Benchmark comparison table: Total Return, Sharpe, Sortino, Max DD, Win Rate, Trades, Profit Factor
    • Explain results in plain language - which strategy performed best and why
    • Plot overlaid equity curves for all strategies using Plotly (template="plotly_dark")
    • Save comparison to CSV
  5. Never use icons/emojis in code or logger output

Example Usage

/strategy-compare RELIANCE ema-crossover rsi donchian /strategy-compare SBIN long-vs-short ema-crossover

FAQ & Installation Steps

These questions and steps mirror the structured data on this page for better search understanding.

? Frequently Asked Questions

What is strategy-compare?

Perfect for Trading Agents needing advanced backtesting and strategy comparison capabilities using VectorBT strategy-compare is a coding skill for backtesting trading strategies using VectorBT, supporting multiple markets and featuring realistic transaction cost modeling.

How do I install strategy-compare?

Run the command: npx killer-skills add marketcalls/vectorbt-backtesting-skills/strategy-compare. It works with Cursor, Windsurf, VS Code, Claude Code, and 19+ other IDEs.

What are the use cases for strategy-compare?

Key use cases include: Backtesting trading strategies for optimal performance, Comparing multiple strategies across different markets and symbols, Optimizing strategy parameters using VectorBT's backtesting capabilities.

Which IDEs are compatible with strategy-compare?

This skill is compatible with Cursor, Windsurf, VS Code, Trae, Claude Code, OpenClaw, Aider, Codex, OpenCode, Goose, Cline, Roo Code, Kiro, Augment Code, Continue, GitHub Copilot, Sourcegraph Cody, and Amazon Q Developer. Use the Killer-Skills CLI for universal one-command installation.

Are there any limitations for strategy-compare?

Requires VectorBT library. Limited to Indian, US, and Crypto markets. Default strategies used if no strategies are provided.

How To Install

  1. 1. Open your terminal

    Open the terminal or command line in your project directory.

  2. 2. Run the install command

    Run: npx killer-skills add marketcalls/vectorbt-backtesting-skills/strategy-compare. The CLI will automatically detect your IDE or AI agent and configure the skill.

  3. 3. Start using the skill

    The skill is now active. Your AI agent can use strategy-compare immediately in the current project.

Related Skills

Looking for an alternative to strategy-compare or another community skill for your workflow? Explore these related open-source skills.

View All

widget-generator

Logo of f
f

f.k.a. Awesome ChatGPT Prompts. Share, discover, and collect prompts from the community. Free and open source — self-host for your organization with complete privacy.

149.6k
0
AI

flags

Logo of vercel
vercel

flags is a Next.js feature management skill that enables developers to efficiently add or modify framework feature flags, streamlining React application development.

138.4k
0
Browser

zustand

Logo of lobehub
lobehub

The ultimate space for work and life — to find, build, and collaborate with agent teammates that grow with you. We are taking agent harness to the next level — enabling multi-agent collaboration, effortless agent team design, and introducing agents as the unit of work interaction.

72.8k
0
AI

data-fetching

Logo of lobehub
lobehub

The ultimate space for work and life — to find, build, and collaborate with agent teammates that grow with you. We are taking agent harness to the next level — enabling multi-agent collaboration, effortless agent team design, and introducing agents as the unit of work interaction.

72.8k
0
AI