backtesting-frameworks

Implement event-driven, vectorized, walk-forward, and Monte Carlo backtesting frameworks in Python.

Updated Feb 3, 2026
One-click install
npx skills add https://github.com/leonardoteodoroo/amino-advanced --skill backtesting-frameworks-leonardoteodoroo
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: backtesting-frameworks
Source: https://github.com/leonardoteodoroo/amino-advanced/tree/main/.agent/skills/backtesting-frameworks
Command: npx skills add https://github.com/leonardoteodoroo/amino-advanced --skill backtesting-frameworks-leonardoteodoroo

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve?

Build robust, bias-aware backtesting systems to reliably evaluate trading strategies against historical data, while mitigating common pitfalls like look-ahead bias, survivorship bias, and transaction costs.

Core Features & Use Cases

  • Event-Driven Backtester
  • Vectorized Backtester
  • Walk-Forward Optimization
  • Monte Carlo Analysis
  • Best Practices

Use cases include strategy development, performance validation, risk assessment, and infrastructure testing.

Quick Start

Configure your data and strategy, then run the backtester to generate an equity curve and performance metrics.

Frequently Asked Questions about backtesting-frameworks

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

FAQPage Schema
How do I prevent look-ahead and survivorship bias when backtesting trading strategies?

You prevent these biases by using a bias-aware backtesting framework that enforces a deterministic execution model on historical data. This ensures strict temporal ordering during simulation, preventing future data leakage while accounting for transaction costs and slippage.

What is the difference between event-driven and vectorized backtesting frameworks?

Event-driven backtesting processes market data tick-by-tick or bar-by-bar to simulate realistic execution dynamics. Vectorized backtesting applies strategy logic across entire arrays simultaneously for rapid prototyping and faster performance metric generation on historical OHLCV datasets.

How do I use walk-forward optimization and Monte Carlo analysis for strategy validation?

Walk-forward optimization validates parameters across rolling training and evaluation windows to prevent overfitting. Monte Carlo analysis randomizes historical trade sequences to assess equity curve robustness, delivering comprehensive performance validation and risk assessment.

Do I need Python and OHLCV data to run a custom backtester?

Yes, this framework requires Python implementations and datasets containing OHLCV data. You configure your data and strategy inputs to run the backtester, which then generates an equity curve and explicit performance metrics including slippage and cost models.

What are the limitations of using a vectorized backtester for risk assessment?

Vectorized backtesting limits risk assessment by processing data in bulk arrays rather than simulating discrete order events. It may oversimplify execution dynamics and transaction costs, making event-driven backtesters more suitable for accurate infrastructure testing.