From 538fff2bab3b76f7f167fea7b82cbd947c4682fe Mon Sep 17 00:00:00 2001 From: unknown Date: Sat, 13 Jun 2026 08:21:10 +1000 Subject: [PATCH] Fixed mt5 parser for accounts with zero trades --- view_live_mt5_eas.py | 2 ++ 1 file changed, 2 insertions(+) diff --git a/view_live_mt5_eas.py b/view_live_mt5_eas.py index d43538e..3d9871f 100644 --- a/view_live_mt5_eas.py +++ b/view_live_mt5_eas.py @@ -776,6 +776,8 @@ cache/ corr_rows = [] for d in sel_data: df_c = d["df"].copy() + if df_c.empty or "net_profit" not in df_c.columns: + continue df_c["net_profit"] = pd.to_numeric(df_c["net_profit"], errors="coerce").fillna(0) df_c["close_time"] = pd.to_datetime(df_c["close_time"], errors="coerce") by_sym = df_c.groupby("symbol")["net_profit"].sum()