feat: backtesting engine — historical replay with shared strategies
This commit is contained in:
parent
1d9900838d
commit
5e5425a0f7
8 changed files with 1242 additions and 1 deletions
21
backtester/__init__.py
Normal file
21
backtester/__init__.py
Normal 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",
|
||||
]
|
||||
Loading…
Add table
Add a link
Reference in a new issue