Skip to content

fix(trade fit + harvest): held names vs their sector ETF, every benchmark harvested, a store behind the market says so - #516

Merged
sunnylnct007 merged 1 commit into
mainfrom
fix/trade-fit-sector-and-session
Nov 29, 2026
Merged

sunnylnct007 merged 1 commit into
mainfrom
fix/trade-fit-sector-and-session

Conversation

@sunnylnct007

Copy link
Copy Markdown
Owner

Fixes the two agent findings from 29 Nov, plus one gap found while fixing them.

  • "Compares CRDO against SPY instead of the chip ETF": 14 held or watched names had no entry in the symbol → sector-ETF map, so they fell back to SPY. Now mapped:

    • CRDO, MRVL, SKHY, SNDK, STX, WDC → SOXX, the chip benchmark the map already uses for its 10 semis; SMH everywhere would be a one-line change.
    • DELL, SMCI, ANET, CRWV, APLD → XLK.
    • ORCL, MDB → IGV.
    • HOOD → XLF.

    The frontend copy is re-synced, and the drift test passes.

  • "Says the last session was 23 Nov, when it was 27 Nov": the intraday read called the 5-minute store's last day "the last session". It now compares against the exchange calendar and says "5-minute bars stop at 23 Nov — the last session was 27 Nov; the 5-minute store is behind".

  • IGV was never harvested, although it is the software benchmark and a segment hedge. Every sector ETF in the map, plus SPY, QQQ, IWM, SMH, SOXX and IGV, is now harvested whatever its flag. The scope goes from 207 to 211 symbols, with no single stocks added.

Verified: Python 2297 passed / 2 skipped.

🤖 Generated with Claude Code

…F, every sector benchmark harvested, a store behind the market says so

Agent feedback 29 Nov:
- "it compares CRDO against SPY instead of the chip ETF": 14 held/watched
  names had no entry in the one symbol→sector-ETF map and fell back to SPY
  (CRDO MRVL SKHY SNDK STX WDC → SOXX; DELL SMCI ANET CRWV APLD → XLK;
  ORCL MDB → IGV; HOOD → XLF). Frontend copy re-synced (drift test).
- "it says the last session was 23 November, when it was 27 November": the
  intraday read called the 5-minute store's last day the last session. It now
  compares with the exchange calendar and says "5-minute bars stop at … — the
  last session was …; the 5-minute store is behind".
- IGV (software benchmark and a segment hedge) was never harvested: every
  sector ETF in the map plus the market proxies (SPY QQQ IWM SMH SOXX IGV)
  are now harvested whatever their flag (scope 207 → 211).

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
@sunnylnct007
sunnylnct007 merged commit 3286280 into main Nov 29, 2026
3 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant