Spaces:
Paused

Rukku / backtest /engine /exceptions.py
whassan's picture
Upload folder using huggingface_hub
354fea5 verified
Raw History Blame Contribute Delete
458 Bytes
"""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."""