New advertisers: 50% off your first month with code FIRSTMONTHSee slots
jeremylongshore avatar

Backtesting Trading Strategies

Simulates crypto and traditional trading strategies against historical data, reporting risk-adjusted metrics and equity curves.

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.9K
last updated
Aug 21, 2026
View on GitHub

What it does

  • Covers historical backtesting with 8 built-in strategies, parameter grid search, and trade-by-trade analysis
  • Includes fetch_data.py, backtest.py, and optimize.py, with reports for summary metrics, trade logs, equity curves, and charts
  • Reports Sharpe, Sortino, Calmar, max drawdown, VaR, and CVaR, and labels results as in-sample simulation rather than forecasts
  • Designed for traders validating signals or comparing strategies, with yfinance as the default market data provider

Install

$ npx -y skills add jeremylongshore/tons-of-skills-marketplace --skill backtesting-trading-strategies -y

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

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:

Details

Repository
github.com/jeremylongshore/tons-of-skills-marketplace
Categories
Finance & Trading, Data Science & Analytics

More from jeremylongshore/tons-of-skills-marketplace

All 13

Similar to Backtesting Trading Strategies

More Finance & Trading