jeremylongshore/tons-of-skills-marketplace / plugins/crypto/trading-strategy-backtester/skills/backtesting-trading-strategies
backtesting-trading-strategies
VerifiedBacktest crypto and traditional trading strategies against historical data. Calculates performance metrics (Sharpe, Sortino, max drawdown), generates equity curves, and optimizes strategy parameters. Use when user wants to test a trading strategy, validate signals, or compare approaches. Trigger with phrases like "backtest strategy", "test trading strategy", "historical performance", "simulate trades", "optimize parameters", or "validate signals".
| File | Kind | Size |
|---|---|---|
| SKILL.md | skill md | 6.9 KB |
| commands/backtest-strategy.md | markdown | 3.2 KB |
| commands/compare-strategies.md | markdown | 2.6 KB |
| commands/optimize-parameters.md | markdown | 2.4 KB |
| commands/walk-forward.md | markdown | 4.0 KB |
| config/settings.yaml | config | 1.4 KB |
| references/errors.md | markdown | 3.9 KB |
| references/examples.md | markdown | 3.9 KB |
| references/implementation.md | markdown | 4.6 KB |
| scripts/backtest.pyexecutable | script | 14.3 KB |
| scripts/fetch_data.pyexecutable | script | 4.8 KB |
| scripts/metrics.py | script | 13.1 KB |
| scripts/optimize.pyexecutable | script | 7.5 KB |
| scripts/strategies.py | script | 11.1 KB |
| tests/test_metrics.py | script | 6.2 KB |
| tests/test_strategies.py | script | 13.7 KB |
config/settings.yaml
View on GitHub# Backtesting Configuration
# Copy to settings.yaml and customize
# Data source settings
data:
provider: yfinance # Options: yfinance, coingecko
cache_dir: ./data # Where to cache downloaded data
default_interval: 1d # Default bar interval
# Backtest execution settings
backtest:
default_capital: 10000 # Starting capital in USD
commission: 0.001 # Commission per trade (0.1%)
slippage: 0.0005 # Slippage per trade (0.05%)
# Risk management (optional)
risk:
max_position_size: 0.95 # Max % of capital per position
stop_loss: null # Fixed stop loss % (null = disabled)
take_profit: null # Fixed take profit % (null = disabled)
# Report generation
reporting:
output_dir: ./reports # Where to save results
save_trades: true # Save trade log CSV
save_equity: true # Save equity curve CSV
save_chart: true # Generate equity chart PNG
# Strategy defaults (can be overridden via --params)
strategies:
sma_crossover:
fast_period: 20
slow_period: 50
ema_crossover:
fast_period: 12
slow_period: 26
rsi_reversal:
period: 14
overbought: 70
oversold: 30
macd:
fast: 12
slow: 26
signal: 9
bollinger_bands:
period: 20
std_dev: 2.0
breakout:
lookback: 20
threshold: 0.0
mean_reversion:
period: 20
z_threshold: 2.0
momentum:
period: 14
threshold: 5.0
Related skills
| Skill | Stars | Updated | Works with | Status | Install |
|---|---|---|---|---|---|
| finishing-a-development-branchobra/superpowersUse when implementation is complete, all tests pass, and you need to decide how to integrate the work | Stars: 323k | Updated | Claude CodeCodex | Verified | Install |
| systematic-debuggingobra/superpowersUse when encountering any bug, test failure, or unexpected behavior, before proposing fixes | Stars: 323k | Updated | Claude CodeCodex | Verified | Install |
| test-driven-developmentobra/superpowersUse when implementing any feature or bugfix, before writing implementation code | Stars: 323k | Updated | Claude CodeCodex | Verified | Install |
| skill-creatoranthropics/skillsCreate new skills, modify and improve existing skills, and measure skill performance. Use when users want to create a skill from scratch, edit, or optimize an existing skill, run evals to test a skill, benchmark skill performance with variance analysis, or optimize a skill's description for better triggering accuracy. | Stars: 198k | Updated | Claude CodeCodex | Verified | Install |