feat: backtesting engine — historical replay with shared strategies

This commit is contained in:
Viktor Barzin 2026-02-22 15:43:19 +00:00
parent 1d9900838d
commit 5e5425a0f7
No known key found for this signature in database
GPG key ID: 0EB088298288D958
8 changed files with 1242 additions and 1 deletions

21
backtester/__init__.py Normal file
View file

@ -0,0 +1,21 @@
"""Backtesting engine for historical replay with shared strategies.
Provides a simulated broker, data loader, metrics calculator, and the
main :class:`BacktestEngine` that replays market data through the same
strategy ensemble used in live trading.
"""
from backtester.config import BacktestConfig
from backtester.data_loader import BacktestDataLoader
from backtester.engine import BacktestEngine
from backtester.metrics import BacktestResult, compute_metrics
from backtester.simulated_broker import SimulatedBroker
__all__ = [
"BacktestConfig",
"BacktestDataLoader",
"BacktestEngine",
"BacktestResult",
"SimulatedBroker",
"compute_metrics",
]