backtest

Build and execute backtests against historical market data to validate trading strategies.

22|12|Updated Mar 13, 2026
One-click install
npx skills add https://github.com/Starchild-ai-agent/official-skills --skill backtest-starchild-ai-agent
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: backtest
Source: https://github.com/Starchild-ai-agent/official-skills/tree/main/backtest
Command: npx skills add https://github.com/Starchild-ai-agent/official-skills --skill backtest-starchild-ai-agent

SYSTEM DOCUMENTATION & REQUIREMENTS

💡 This Skill requires mplfinance, pandas, numpy, and includes scripts (resource) and references (resource) components.

What problem does it solve?

This Skill transforms raw strategy ideas into concrete performance numbers by rigorously testing them against historical market data, eliminating guesswork and providing objective validation.

Core Features & Use Cases

  • Strategy Validation: Run any trading strategy against historical price data to assess its profitability and risk.
  • Performance Metrics: Generate key metrics like total return, maximum drawdown, Sharpe ratio, and win rate.
  • Use Case: A user wants to know if their new EMA crossover strategy would have been profitable over the last year on BTC/USD. They provide the entry and exit rules, and the skill runs a backtest, reporting the performance.

Quick Start

Use the backtest skill to run a backtest for a strategy that buys when the 50-day moving average crosses above the 200-day moving average and sells on the opposite cross, using daily data for ETH/USD.

Frequently Asked Questions about backtest

High-intent search queries and answers about installing and using this skill.

FAQPage Schema
How do I backtest a trading strategy using historical market data?

To backtest a trading strategy, you provide entry and exit rules along with historical market data. The skill executes the rules against the data to validate profitability and calculate performance metrics like total return and maximum drawdown.

Can I use vectorized and event-driven backtesting approaches for risk management?

Yes, backtesting supports both vectorized and event-driven approaches for risk management. This allows you to rigorously test quantitative finance strategies against historical data to assess potential risk before live deployment.

What performance analysis metrics are calculated during a backtest?

Performance analysis during a backtest calculates key metrics including total return, maximum drawdown, Sharpe ratio, and win rate. These metrics provide objective validation of your trading strategy's historical performance.

Does this backtesting skill work with pandas and numpy for quantitative finance?

Yes, the backtesting skill is built using dependencies including pandas, numpy, and mplfinance. It leverages these libraries to process historical data and execute quantitative finance trading strategy validation.

What are common backtesting biases I should anticipate when validating strategies?

Common backtesting biases are explicitly accounted for during strategy validation. The skill includes built-in considerations for these biases to ensure your performance analysis accurately reflects real historical market conditions.

How do I test an EMA crossover strategy on daily cryptocurrency data?

To test an EMA crossover strategy, you provide the moving average rules and daily historical price data. The skill runs the backtest against the specified cryptocurrency data and reports the resulting performance metrics.