Commit Graph

6 Commits

Author SHA1 Message Date
ojy
74a727d0ae Scanner: expand default watchlist from 15 to 37 sector-diversified names
The previous default leaned heavily on mega-cap tech. EDGE setups
are rarer than that — you want a wider net across sectors to catch
the 1-3 setups per week that actually qualify. Curated to 37 names
that are all optionable mid+ cap with reasonable LEAPS liquidity:

  Indices/ETFs: SPY, QQQ, IWM, DIA, SMH, XLF, XLE, XLK
  Mega-cap tech: AAPL, MSFT, NVDA, GOOGL, META, AMZN
  Semis: AMD, INTC, TSM, AVGO, MU
  High-vol/event-driven: TSLA, NFLX, COIN, PLTR, SHOP, UBER, MARA
  Financials: JPM, BAC, GS, V
  Healthcare: LLY, JNJ, UNH
  Consumer/energy: XOM, WMT, DIS, MCD

Also bumped the per-scan cap from 30 to 100 so users can paste
custom lists up to 100 symbols (the previous 30-cap silently
truncated lists like the new 37-name default).

Full default scan completes in ~3.5s with zero errors and correctly
surfaces only the genuine EDGE setups (live test: NVDA / INTC / AAPL
flag, the other 34 do not).

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
2026-05-13 10:02:53 +00:00
ojy
d79b98baca Scanner: IV/HV column + composite EDGE signal
User clarified the real entry signal: not just high IV, but IV
higher than HV — that's what makes premium "rich" relative to
realized vol and gives the mean-reversion edge for premium sellers.

Changes:
- New IV/HV column (was already computed server-side as r.ivHv but
  not displayed). Colored cheap/fair/rich/very-rich. Sortable.
- New EDGE composite badge in the Flags cell: lights green when
  IV Rank ≥ 60 AND IV/HV ≥ 1.20 — premium expensive in own history
  AND not justified by what stock is actually doing.
- Summary row gains an "EDGE setups" count card.
- Page header copy reworked to explain the three richness signals
  (IV Δ%, IV Rank, IV/HV) and why the composite EDGE flag matters.

Live test confirms the discrimination: INTC / AAPL / NVDA flag as
EDGE; TSLA (high IV/HV but low Rank — its normal regime) and SPY /
COIN (IV/HV high because realized vol is unusually quiet, not
because IV is rich) are correctly excluded.

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
2026-05-13 09:53:16 +00:00
ojy
e2eca5ef66 Scanner: add IV Rank + IV Percentile columns
IV Rank shows where current ATM IV sits in its 1-year (min, max)
range from saved snapshot history. The industry-standard entry
metric: >=60 = expensive (sell premium), <=30 = cheap (buy
premium). Also exposes IV Percentile (share of past snapshots
with strictly lower IV) via the tooltip.

- snapshots.ts: new getIvRange + getIvPercentile queries with
  a min-samples gate so the metric is hidden until n>=5
- datafetch.ts: ScanResult gains ivRank, ivPercentile, ivRankN,
  ivRankSpanDays
- options.ts: error stub updated with new fields
- scanner.html: new sortable IV Rank column with chip-styled
  color coding (green/grey/yellow/red); summary row gains a
  "High IV Rank (>=60)" count card; header text explains the
  new metric and the >=60 / <=30 entry rule of thumb

Live INTC scan: IV Rank 100 (1-year peak) confirms the position's
short-premium structure was entered into expensive vol -
mean-reversion tailwind is the edge.

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
2026-05-13 09:40:10 +00:00
ojy
2e565fae4d Add Top Movers screener (mid-cap+, options-tradable)
New /movers page surfaces Yahoo Finance's predefined screeners
(day_gainers, day_losers, most_actives, most_shorted_stocks)
filtered to common equities with market cap >= $2B, so every
listed name has a deep options chain. Per-row actions jump
straight into Chain / Vol Surface / IV Spike Scanner, or pin
the symbol to the Tracker watchlist.

- datafetch.ts: fetchMovers(category, count) using yf.screener,
  post-filtered to quoteType=EQUITY and marketCap >= $2B
- options.ts: GET /api/movers?category=&count=
- movers.html: Tabler page with 4-tab segmented control, sortable
  table, summary cards, volume-vs-avg ratio highlighting hot names
- All page sidebars: insert "Movers" link between Vol Surface
  and Scanner

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
2026-05-13 07:47:32 +00:00
ojy
3ea5fd5209 Scanner: spike = current ATM IV >= +30% above recent baseline
Replaces the IV/HV >= 1.5 heuristic with a baseline-relative jump:
a symbol is flagged SPIKE when current ATM IV is at least 30%
above its recent baseline (e.g., 10% -> 13%+). Baseline prefers
the 30-day average of saved snapshots; falls back to HV30 when
no scan history exists. Each scan persists a snapshot so the
baseline self-improves over time. BIG MOVE (|chg%| >= 3%) is now
shown as a separate badge instead of a spike requirement.

- snapshots.ts: add getAverageAtmIv(symbol, days)
- datafetch.ts: save snapshot per scan; compute baselineIv,
  baselineSrc, baselineN, ivJumpPct; spike from jump threshold
- options.ts: /api/scan returns new baseline + jump fields
- scanner.html: header copy, table columns (Baseline IV, IV Δ%),
  default sort by ivJumpPct desc, separate SPIKE/BIG MOVE badges

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
2026-05-13 07:39:24 +00:00
ojy
2cd3d6ece8 IV Spike Scanner
Backend: GET /api/scan?symbols=SYM1,SYM2,... — for each symbol fetches
the front-expiry options chain plus 30-day realized vol and returns
{ spot, change, changePct, atmIv, hv30, ivHv, spike, expiry }. Spike flag
is on when IV/HV ≥ 1.5 or |today's % change| ≥ 3. Defaults to ~15 popular
tickers when no list is given; cap of 30 symbols/scan.

Frontend: new scanner.html page — symbol input (with "Use defaults" / "Use
watchlist" shortcuts), summary cards (count · spikes · biggest mover ·
highest IV/HV), sortable results table with spike rows highlighted, and
shortcut buttons to open each symbol on Chain or Surface.

Scanner added to all sidebars between Vol Surface and Strategy P/L.

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
2026-05-13 07:32:14 +00:00