Side-by-side strategy comparison script for one symbol, benchmarked against NIFTY with Indian delivery fees.

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

Own this skill? Claim it

What it does

  • Covers fetching data once from OpenAlgo, running each strategy on identical data, and writing backtesting/strategy_comparison/{symbol}_strategy_comparison.py
  • Defaults to ema-crossover, rsi, donchian, and supertrend, or a longonly/shortonly/both split when long-vs-short is requested
  • Prints a Strategy vs NIFTY table of Total Return, Sharpe, Sortino, Max DD, Win Rate, Trades, and Profit Factor, then saves the results to CSV
  • Enforces OpenAlgo ta indicators by default, ta.exrem() signal cleaning, and fees=0.00111, fixed_fees=20 delivery costs

Install

$ npx -y skills add marketcalls/vectorbt-backtesting-skills --skill strategy-compare -y

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

Files

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

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 Strategy Compare

More Finance & Trading