wshobson avatar

Backtesting Frameworks

This framework builds event-driven and vectorized backtesting engines that handle the messy realities of strategy validation. It implements proper order execution with slippage and commission models, maintains point-in-time data integrity to prevent look-ahead bias, and includes survivorship bias checks by tracking delisted securities. The walk-forward analysis component automatically splits your data into training, validation, and test sets to catch overfitting before you deploy capital. You get equity curves, drawdown analysis, and trade-level attribution out of the box. Essential when you need to move beyond toy backtests and build something that actually reflects real trading conditions.

skills.sh installs
17.5K
GitHub stars
42.4K
last updated
Aug 21, 2026

Install

$ npx -y skills add wshobson/agents --skill backtesting-frameworks --agent claude-code

Installs into .claude/skills of the current project.

Files

Backtesting Frameworks

Build robust, production-grade backtesting systems that avoid common pitfalls and produce reliable strategy performance estimates.

When to Use This Skill

  • Developing trading strategy backtests
  • Building backtesting infrastructure
  • Validating strategy performance
  • Avoiding common backtesting biases
  • Implementing walk-forward analysis
  • Comparing strategy alternatives

Core Concepts

1. Backtesting Biases

BiasDescriptionMitigation
Look-aheadUsing future informationPoint-in-time data
SurvivorshipOnly testing on survivorsUse delisted securities
OverfittingCurve-fitting to historyOut-of-sample testing
SelectionCherry-picking strategiesPre-registration
TransactionIgnoring trading costsRealistic cost models

2. Proper Backtest Structure

Sponsors

Details

Repository
github.com/wshobson/agents
Categories
DevOps & CI/CD, Cloud & Infrastructure, Finance & Trading

More from wshobson/agents

All 174
1wshobson avatarreact-native-architecturewshobson/agentsBuild production React Native apps with Expo, navigation, native modules, offline sync, and cross-platform patterns. Use when developing mobile apps, implementi15.6Kskills.sh installs
2wshobson avatarbash-defensive-patternswshobson/agentsMaster defensive Bash programming techniques for production-grade scripts. Use when writing robust shell scripts, CI/CD pipelines, or system utilities requiring14.1Kskills.sh installs
3wshobson avatarsecrets-managementwshobson/agentsImplement secure secrets management for CI/CD pipelines using Vault, AWS Secrets Manager, or native platform solutions. Use when handling sensitive credentials,13.6Kskills.sh installs
4pluginagentmarketplace avatarjava-spring-bootpluginagentmarketplace/custom-plugin-javaBuild production Spring Boot applications - REST APIs, Security, Data, Actuator11.8Kskills.sh installs
5wshobson avatarbats-testing-patternswshobson/agentsMaster Bash Automated Testing System (Bats) for comprehensive shell script testing. Use when writing tests for shell scripts, CI/CD pipelines, or requiring test11.4Kskills.sh installs
6getcargohq avatarcargo-gtmgetcargohq/cargo-skillsFront door for any GTM task on Cargo — sourcing, waterfall enrichment, email/phone/LinkedIn lookup, email verification, scoring, qualification, sequencing, CRM 11.2Kskills.sh installs