From f8063f3596a5bc274f002e546d9499ce600a8366 Mon Sep 17 00:00:00 2001 From: Youssef Aitousarrah Date: Fri, 10 Apr 2026 09:31:07 -0700 Subject: [PATCH] fix(hypotheses): use correct 7-trading-day exit index in comparison --- scripts/compare_hypothesis.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/scripts/compare_hypothesis.py b/scripts/compare_hypothesis.py index a1cd08bc..ac6a72aa 100644 --- a/scripts/compare_hypothesis.py +++ b/scripts/compare_hypothesis.py @@ -44,7 +44,7 @@ def compute_7d_return(ticker: str, pick_date: str) -> Tuple[Optional[float], Opt return None, None close = df["Close"] entry_price = float(close.iloc[0]) - exit_idx = min(5, len(close) - 1) + exit_idx = min(6, len(close) - 1) exit_price = float(close.iloc[exit_idx]) if entry_price <= 0: return None, None