Bug: Screener V1 breakout date shows 1 day ago instead of today

Resolved 💬 2 comments Opened Feb 26, 2026 by VoarL Closed Feb 26, 2026

Problem

V1 patterns in the screener show breakout date as "1d ago" when the stock actually broke out today. The date appears to be off by 1 day.

Expected Behavior

If a stock broke out today, it should show "Today" or "0d ago", not "1d ago".

Likely Cause

The backend screener.py may be calculating the breakout date based on the pattern end date (which is the last bar of the consolidation, i.e., the day before breakout). The actual breakout happens on the next bar.

Potential Fixes

  1. Frontend fix: Add +1 day when displaying V1 breakout dates
  2. Backend fix: In screener.py, adjust end_date to represent breakout day (pattern end + 1 day)

Files to Check

  • dashboard/backend/screener.py - V1 pattern detection, end_date calculation
  • dashboard/frontend-v2/app/screener/page.tsx - Date display logic, "Xd ago" formatting

Investigation Steps

  1. Check how end_date is set for V1 patterns in screener.py
  2. Compare with V2/V3 patterns to see if they have the same issue
  3. Verify the date calculation in frontend's relative date formatter

Scope

Small fix - likely 1-2 lines in either frontend or backend

View original on GitHub ↗

This issue has 2 comments on GitHub. Read the full discussion on GitHub ↗