B

backtesting-frameworks

by @wshobsonv
4.6(120)

前向きバイアス、生存者バイアス、取引コストを適切に処理し、堅牢な取引戦略バックテストシステムを構築します。取引アルゴリズムの開発、戦略の検証、またはバックテストインフラストラクチャの構築に利用し、信頼性の高い戦略パフォーマンス評価を保証します。

backtestingtradingstrategiesalgorithmic-tradingquantitative-financeGitHub
インストール方法
npx skills add https://github.com/wshobson/agents --skill backtesting-frameworks
compare_arrows

Before / After 効果比較

1 组
使用前

従来のバックテスト手法は、先見の明バイアスや生存者バイアスなどの問題により、多くの戦略が誤って収益性があると評価され、貴重な開発および展開リソースを浪費していました。

使用後

このスキルで構築されたバックテストシステムを使用すると、一般的なバイアスを効果的に特定して軽減し、誤って収益性があると識別される戦略の割合を大幅に削減し、戦略評価の正確性と信頼性を確保します。

SKILL.md

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

Historical Data
      │
      ▼
┌─────────────────────────────────────────┐
│              Training Set               │
│  (Strategy Development & Optimization)  │
└─────────────────────────────────────────┘
      │
      ▼
┌─────────────────────────────────────────┐
│             Validation Set              │
│  (Parameter Selection, No Peeking)      │
└─────────────────────────────────────────┘
      │
      ▼
┌─────────────────────────────────────────┐
│               Test Set                  │
│  (Final Performance Evaluation)         │
└─────────────────────────────────────────┘

3. Walk-Forward Analysis

Window 1: [Train──────][Test]
Window 2:     [Train──────][Test]
Window 3:         [Train──────][Test]
Window 4:             [Train──────][Test]
                                     ─────▶ Time

Detailed worked examples and patterns

Detailed sections (starting with ## Implementation Patterns) live in references/details.md. Read that file when the navigation summary above is insufficient.

Best Practices

Do's

  • Use point-in-time data - Avoid look-ahead bias
  • Include transaction costs - Realistic estimates
  • Test out-of-sample - Always reserve data
  • Use walk-forward - Not just train/test
  • Monte Carlo analysis - Understand uncertainty

Don'ts

  • Don't overfit - Limit parameters
  • Don't ignore survivorship - Include delisted
  • Don't use adjusted data carelessly - Understand adjustments
  • Don't optimize on full history - Reserve test set
  • Don't ignore capacity - Market impact matters

ユーザーレビュー (0)

レビューを書く

効果
使いやすさ
ドキュメント
互換性

レビューなし

統計データ

インストール数16.6K
評価4.6 / 5.0
バージョン
更新日2026年10月22日
比較事例1 件

ユーザー評価

4.6(120)
5
37%
4
43%
3
13%
2
5%
1
2%

この Skill を評価

0.0

対応プラットフォーム

🤖claude-code

タイムライン

作成2026年5月29日
最終更新2026年10月22日
🎁 Agent 知識カード
アンケート