A proper backtesting framework that handles the tedious parts: fetching historical data, running eight common strategies (SMA, RSI, MACD, Bollinger bands, etc.), and calculating the metrics you actually care about like Sharpe ratio, max drawdown, and win rate. The parameter optimization via grid search is genuinely useful for finding which moving average periods or RSI thresholds work best. Everything outputs to reports with equity curves, trade logs, and performance summaries. Built on yfinance and pandas, so it's straightforward Python without exotic dependencies. The honest limitation is that backtesting always looks better than live trading, but at least this gives you a systematic way to eliminate bad ideas before risking capital. Good for both crypto and traditional assets if you want to validate a signal or compare different approaches.

install copies · 90 days. Times the install command was copied on this site in the last 90 days, bots filtered.
9
skills.sh installs
4.2K
GitHub stars
2.6K
last updated
Aug 21, 2026

Install

$ npx -y skills add jeremylongshore/claude-code-plugins-plus-skills --skill backtesting-trading-strategies --agent claude-code

Installs into .claude/skills of the current project.

Files

Backtesting Trading Strategies

Overview

Simulate trading strategies against historical data. Results describe a historical simulation, not expected future performance. The framework includes 8 built-in strategies, the metrics listed below, and parameter optimization.

Key Features:

  • 8 pre-built trading strategies (SMA, EMA, RSI, MACD, Bollinger, Breakout, Mean Reversion, Momentum)
  • Performance metrics (Sharpe, Sortino, Calmar, VaR, max drawdown)
  • Parameter grid search optimization
  • Equity curve visualization
  • Trade-by-trade analysis

Prerequisites

Before invoking this skill, the user installs the required dependencies in the Python environment used for the simulation:

set -euo pipefail
pip install pandas numpy yfinance matplotlib

Optional for advanced features:

set -euo pipefail
pip install ta-lib scipy scikit-learn

Instructions

  1. Fetch historical data (cached to ${CLAUDE_SKILL_DIR}/data/ for reuse):

    python ${CLAUDE_SKILL_DIR}/scripts/fetch_data.py --symbol BTC-USD --period 2y --interval 1d
    
  2. Run a backtest with default or custom parameters:

Sponsors

Details

Repository
github.com/jeremylongshore/claude-code-plugins-plus-skills
Categories
Testing & QA, Debugging, Finance & Trading

More from jeremylongshore/claude-code-plugins-plus-skills

All 13
1dotnet avatarmicrobenchmarkingdotnet/skillsActivate this skill when BenchmarkDotNet (BDN) is involved in the task — creating, running, configuring, or reviewing BDN benchmarks. Also activate when microbe4.2Kskills.sh installs
2elastic avatarsecurity-detection-rule-managementelastic/agent-skillsCreate, tune, and manage Elastic Security detection rules (SIEM and Endpoint). Use for false positives, exceptions, new coverage, noisy rules, or rule managemen4.1Kskills.sh installs
3openai avataraspnet-coreopenai/skillsBuild, review, refactor, or architect ASP.NET Core web applications using current official guidance for .NET web development. Use when working on Blazor Web App4.1Kskills.sh installs
4anthropics avataruser-researchanthropics/knowledge-work-pluginsPlan, conduct, and synthesize user research. Trigger with "user research plan", "interview guide", "usability test", "survey design", "research questions", or w4.1Kskills.sh installs
5coralogix avatarcx-observability-setupcoralogix/cx-cliUse this skill when the user asks to "set up monitoring", "configure observability", "onboard new service", "create saved view", "set up notifications", "config4.1Kskills.sh installs
6ghostsecurity avatarghost-validateghostsecurity/skillsThis skill should be used when the user asks to "validate a finding", "check if a vulnerability is real", "triage a security finding", "confirm a vulnerability"4.1Kskills.sh installs