
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
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, andoptimize.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
yfinanceas the default market data provider
Install
$ npx -y skills add jeremylongshore/tons-of-skills-marketplace --skill backtesting-trading-strategies -yInstalls 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
-
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 -
Run a backtest with default or custom parameters:
Details
More from jeremylongshore/tons-of-skills-marketplace
All 13Similar to Backtesting Trading Strategies
More Finance & Trading
backtest-experttradermonty/claude-trading-skills4.7K installsStructured evaluation of trading strategies that stress-tests assumptions and blocks adoption on fragile or non-positive results.
trader-backtestruvnet/ruflo748 installsBacktest a strategy with the Rust/NAPI neural-trader engine and Ed25519-sign the result for paper-to-live tamper evidence.
backtesting-frameworkswshobson/agents17.9K installsPractitioner guide for building backtesting systems that control look-ahead, survivorship, and transaction-cost biases in trading strategies.
longbridge-strategy-optimizerlongbridge/skills497 installsQuantitative strategy generator that runs grid search, walk-forward validation, and overfitting checks via Longbridge data.
backtestmarketcalls/vectorbt-backtesting-skills3.5K installsGenerates a complete VectorBT backtest script for a chosen strategy on a symbol, with NIFTY benchmarking.
trading-strategiesagentmc15/polymarket-trader1.3K installsFramework for building, backtesting, and deploying prediction-market trading strategies with typed signals.