File size: 458 Bytes
354fea5 | 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 | """Exceptions for the backtesting engine."""
class EngineError(Exception):
"""Base engine error."""
class EngineHalted(EngineError):
"""Engine execution was halted by policy."""
class LookAheadBiasDetected(EngineError):
"""Walk-forward execution detected look-ahead bias."""
class BacktestNotComplete(EngineError):
"""Backtest did not complete."""
class BacktestPaused(EngineError):
"""Backtest paused due to resource limits.""" |