strategy-compare

Installation
Summary

Side-by-side backtesting comparison of multiple trading strategies on the same symbol.

  • Compares user-specified strategies (or defaults to ema-crossover, rsi, donchian, supertrend) against the same historical data and NIFTY benchmark
  • Supports "long-vs-short" mode to test longonly, shortonly, and both directions for a given strategy
  • Uses TA-Lib for standard indicators and OpenAlgo ta for specialty indicators like Supertrend and Donchian; cleans signals with exrem() to avoid consecutive duplicates
  • Generates a side-by-side metrics table (Total Return, Sharpe, Sortino, Max DD, Win Rate, Trades, Profit Factor) and overlaid Plotly equity curves; includes plain-language explanation of which strategy performed best
  • Applies Indian delivery equity fees (0.00111 + 20 fixed) and loads data from OpenAlgo or DuckDB depending on availability
SKILL.md

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

Related skills
Installs
877
GitHub Stars
132
First Seen
Feb 25, 2026