Coverage for src / monte_neo / metrics / types.py: 100%
11 statements
« prev ^ index » next coverage.py v7.13.1, created at 2026-01-28 16:27 +0200
« prev ^ index » next coverage.py v7.13.1, created at 2026-01-28 16:27 +0200
1from __future__ import annotations
3from dataclasses import dataclass
6@dataclass
7class TradeResult:
8 """Single trade result."""
10 entry_idx: int
11 exit_idx: int
12 entry_price: float
13 exit_price: float
14 direction: int # 1 = long, -1 = short
15 pnl: float
16 pnl_pct: float