BA

backtesting-frameworks

Framework for building accurate trading backtests that account for biases and transaction costs.

Install

mkdir -p .claude/skills/backtesting-frameworks-agent-skills-hub && curl -L -o skill.zip "https://agentskills.codes/api/skills/download/11694" && unzip -o skill.zip -d .claude/skills/backtesting-frameworks-agent-skills-hub && rm skill.zip

Installs to .claude/skills/backtesting-frameworks-agent-skills-hub

Activation

This is the description your AI agent reads to decide when to run this skill — the better it matches your request, the more reliably it fires.

Build robust backtesting systems for trading strategies with proper handling of look-ahead bias, survivorship bias, and transaction costs. Use when developing trading algorithms, validating strategies, or building backtesting infrastructure.
241 chars✓ has a “when” trigger
Advanced

Key capabilities

  • Develop trading strategy backtests
  • Build backtesting infrastructure
  • Validate strategy performance and reliable
  • Avoid common backtesting biases like look-ahead and survivorship
  • Implement walk-forward analysis for strategy evaluation
  • Model realistic transaction costs in simulations

How it works

The skill guides the user through defining strategy parameters, building data pipelines, implementing event-driven simulations, and using validation techniques like train/test splits to create reliable backtesting systems.

Inputs & outputs

You give it
Trading strategy hypothesis, universe, timeframe, and evaluation criteria
You get back
reliable backtesting system, validated strategy performance estimates, or insights into bias avoidance

When to use backtesting-frameworks

  • Develop a trading strategy backtest
  • Validate backtesting infrastructure
  • Calculate strategy performance bias
  • Implement event-driven simulations

About this skill

Backtesting Frameworks

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

Use this skill when

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

Do not use this skill when

  • You need live trading execution or investment advice
  • Historical data quality is unknown or incomplete
  • The task is only a quick performance summary

Instructions

  • Define hypothesis, universe, timeframe, and evaluation criteria.
  • Build point-in-time data pipelines and realistic cost models.
  • Implement event-driven simulation and execution logic.
  • Use train/validation/test splits and walk-forward testing.
  • If detailed examples are required, open resources/implementation-playbook.md.

Safety

  • Do not present backtests as guarantees of future performance.
  • Avoid providing financial or investment advice.

Resources

  • resources/implementation-playbook.md for detailed patterns and examples.

When not to use it

  • When live trading execution or investment advice is needed
  • When historical data quality is unknown or incomplete
  • When only a quick performance summary is required

Limitations

  • Does not provide live trading execution
  • Does not offer investment advice
  • Requires known and complete historical data

How it compares

This skill focuses on building production-grade backtesting systems that explicitly address biases and cost modeling, providing a more rigorous validation than simple historical performance checks.

Compared to similar skills

backtesting-frameworks side by side with the closest alternatives in the catalog.

SkillInstallsUpdatedSafetyDifficulty
backtesting-frameworks (this skill)06moNo flagsAdvanced
backtesting-frameworks172moNo flagsAdvanced
miniqmt-skill06moReviewIntermediate
quant-analyst1032moNo flagsAdvanced

Try saying

Example prompts that trigger this skill in your AI assistant.

You might also like

backtesting-frameworks

wshobson

Build robust backtesting systems for trading strategies with proper handling of look-ahead bias, survivorship bias, and transaction costs. Use when developing trading algorithms, validating strategies, or building backtesting infrastructure.

17126

miniqmt-skill

xiaxiaoqian

MiniQMT量化交易开发技能,基于迅投XtQuant库提供行情数据获取(xtdata)和交易执行(xttrader)功能。用于开发股票、期货、期权等量化交易策略,支持历史/实时行情数据下载、K线/分笔数据获取、财务数据查询、自动下单/撤单、持仓查询、资产查询等。适用于需要连接MiniQMT客户端进行量化交易的场景。

00

quant-analyst

zenobi-us

Expert quantitative analyst specializing in financial modeling, algorithmic trading, and risk analytics. Masters statistical methods, derivatives pricing, and high-frequency trading with focus on mathematical rigor, performance optimization, and profitable strategy development.

103355

stock-analyzer

FrancyJGLisboa

Provides comprehensive technical analysis for stocks and ETFs using RSI, MACD, Bollinger Bands, and other indicators. Activates when user requests stock analysis, technical indicators, trading signals, or market data for specific ticker symbols.

71214

pair-trade-screener

tradermonty

Statistical arbitrage tool for identifying and analyzing pair trading opportunities. Detects cointegrated stock pairs within sectors, analyzes spread behavior, calculates z-scores, and provides entry/exit recommendations for market-neutral strategies. Use when user requests pair trading opportunities, statistical arbitrage screening, mean-reversion strategies, or market-neutral portfolio construction. Supports correlation analysis, cointegration testing, and spread backtesting.

1198

risk-metrics-calculation

wshobson

Calculate portfolio risk metrics including VaR, CVaR, Sharpe, Sortino, and drawdown analysis. Use when measuring portfolio risk, implementing risk limits, or building risk monitoring systems.

881

Search skills

Search the agent skills registry