fix: skip sentinel buckets in skip-reason logging too
This commit is contained in:
@@ -1144,9 +1144,11 @@ def scan_and_trade():
|
|||||||
success=False, reason=result.get("reason", "unknown"),
|
success=False, reason=result.get("reason", "unknown"),
|
||||||
)
|
)
|
||||||
else:
|
else:
|
||||||
# No signal — show why
|
# No signal — show why (skip sentinel buckets to avoid confusing EV)
|
||||||
for o in outcomes:
|
for o in outcomes:
|
||||||
t_low, t_high = o["range"]
|
t_low, t_high = o["range"]
|
||||||
|
if t_low == -999 or t_high == 999:
|
||||||
|
continue
|
||||||
if not in_bucket(forecast_temp, t_low, t_high):
|
if not in_bucket(forecast_temp, t_low, t_high):
|
||||||
continue
|
continue
|
||||||
ask = o["ask"]
|
ask = o["ask"]
|
||||||
|
|||||||
Reference in New Issue
Block a user