Add analytics risk guard and redesigned dashboard

This commit is contained in:
Codex
2026-06-23 17:20:44 +03:00
parent 13de641fe3
commit 4d02ff3806
20 changed files with 1825 additions and 855 deletions
+2
View File
@@ -87,6 +87,7 @@ class Position:
entry_reason: str = ""
entry_confidence: float = 0.0
entry_pattern: str = ""
entry_diagnostics: dict[str, Any] = field(default_factory=dict)
def mark_price(self, price: float) -> float:
return self.qty * price
@@ -127,6 +128,7 @@ class Trade:
reason: str = ""
entry_pattern: str = ""
entry_confidence: float = 0.0
entry_diagnostics: dict[str, Any] = field(default_factory=dict)
opened_at: datetime | None = None
closed_at: datetime | None = None