Skip to content

jeremylongshore/tons-of-skills-marketplace / plugins/crypto/trading-strategy-backtester/skills/backtesting-trading-strategies

backtesting-trading-strategies

Verified

Backtest 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".

FileKindSize
SKILL.mdskill md6.9 KB
commands/backtest-strategy.mdmarkdown3.2 KB
commands/compare-strategies.mdmarkdown2.6 KB
commands/optimize-parameters.mdmarkdown2.4 KB
commands/walk-forward.mdmarkdown4.0 KB
config/settings.yamlconfig1.4 KB
references/errors.mdmarkdown3.9 KB
references/examples.mdmarkdown3.9 KB
references/implementation.mdmarkdown4.6 KB
scripts/backtest.pyexecutablescript14.3 KB
scripts/fetch_data.pyexecutablescript4.8 KB
scripts/metrics.pyscript13.1 KB
scripts/optimize.pyexecutablescript7.5 KB
scripts/strategies.pyscript11.1 KB
tests/test_metrics.pyscript6.2 KB
tests/test_strategies.pyscript13.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
finishing-a-development-branchobra/superpowersUse when implementation is complete, all tests pass, and you need to decide how to integrate the workStars: 323kUpdated Claude CodeCodexVerifiedInstall
systematic-debuggingobra/superpowersUse when encountering any bug, test failure, or unexpected behavior, before proposing fixesStars: 323kUpdated Claude CodeCodexVerifiedInstall
test-driven-developmentobra/superpowersUse when implementing any feature or bugfix, before writing implementation codeStars: 323kUpdated Claude CodeCodexVerifiedInstall
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: 198kUpdated Claude CodeCodexVerifiedInstall