options-backtesting/backtesting/backtest_result.py

14 lines
249 B
Python
Raw Normal View History

from dataclasses import dataclass
@dataclass
class BacktestResult:
date: str
entry_time: str
exit_time: str
spreads: list
trade_entered: bool
trade_pnl: float
profit: float
credit: float
mfe: float
mae: float