Strategy compare

From marketcalls/vectorbt-backtesting-skills · View interactive version

Strategy compare is an AI agent skill from the GitHub repository marketcalls/vectorbt-backtesting-skills. Compare multiple strategies or directions (long vs short vs both) on the same symbol. Generates side-by-side stats table.

How to use this skill

Skill file

Create a strategy comparison script.

Arguments

Parse $ARGUMENTS as: symbol followed by strategy names

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:
  1. 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

Use this skill with your AI agent: Open on Skill Issue to copy, download, or add to your library. Works with Claude, ChatGPT, Gemini, Cursor, Windsurf and more.