options-backtesting/backtesting/backtest_result.py

14 lines
249 B
Python

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