Files

20 lines
627 B
Python
Raw Permalink Normal View History

"""Dump all parsed metrics from MT5 IS + OOS reports so we can compare against
Python's gross profit/loss, win rate, etc.
"""
from __future__ import annotations
import sys
from pathlib import Path
PROJECT = Path(__file__).resolve().parent.parent
sys.path.insert(0, str(PROJECT))
from shared.data.mt5_report import parse_mt5_report
for label in ("IS", "OOS"):
path = PROJECT / "reports" / f"{label}-ReportTester-52845377.html"
print(f"\n=== {label} report: {path.name} ===")
m = parse_mt5_report(path)
for k, v in m.items():
if k.startswith("_"):
continue
print(f" {k:<40} {v!r}")