From d12c7447418988f13277137ea72d1b3ac7ccb61e Mon Sep 17 00:00:00 2001 From: John Doe Date: Sat, 18 Apr 2026 21:50:37 +0800 Subject: [PATCH] fix: filter sentinel buckets in top_signals build loop --- bot_v3.py | 3 +++ 1 file changed, 3 insertions(+) diff --git a/bot_v3.py b/bot_v3.py index 4a1ec71..739261d 100644 --- a/bot_v3.py +++ b/bot_v3.py @@ -1175,6 +1175,9 @@ def scan_and_trade(): sigma = get_sigma(city_slug) for o in outcomes: t_low, t_high = o["range"] + # Skip sentinel/unbounded buckets — they give false EV signals + if t_low == -999 or t_high == 999: + continue if not in_bucket(forecast_temp, t_low, t_high): continue p = bucket_prob(forecast_temp, t_low, t_high, sigma)