I'll build a USA stock screener that searches for stocks by weekly RSI score. Let me plan this out:
- Use a free stock API (Financial Modeling Prep or similar) - but since we need reliable data, I'll use Yahoo Finance via a proxy or use a curated list with Alpha Vantage-style approach
- Since API keys are needed for real data, I'll use Yahoo Finance's public endpoints through a CORS proxy
- Build a screener UI with filters for RSI ranges (oversold <30, overbought >70, custom)
Let me start:
Now I'll build the stock screener. I'll use Yahoo Finance's public API via a CORS-friendly proxy. The RSI calculation will be done client-side from the weekly historical data.
Let me update the title and create the app:
Now let me build the main App component with the screener UI:
Now let's build to verify everything compiles:
Build succeeded. Here's what I built:
Weekly RSI Stock Screener — USA
A single-page React app that screens ~80 major US-listed stocks (S&P 500 mega/large caps + popular ETFs) by their weekly RSI score.
Features
- Live data — fetches 3 years of weekly OHLC bars from Yahoo Finance's public chart endpoint (via CORS proxies, with automatic fallback across 3 proxies for reliability)
- Wilder's RSI — the classic RSI calculation used by TradingView, StockCharts, etc., computed client-side from the weekly closes
- Configurable period — 7, 9, 14 (default), or 21-week RSI
- Preset filters — one-click Oversold (≤30), Neutral (40–60), Overbought (≥70), or a fully custom min/max RSI range
- Sector filter — Technology, Healthcare, Financials, Energy, etc.
- Search — by ticker symbol or company name
- Sortable columns — click any header (Symbol, Price, Weekly %, RSI) to sort ascending/descending
- Visual details per row:
- Sparkline of the last 52 weekly closes
- RSI number with week-over-week delta arrow (▲/▼)
- RSI bar-gauge that fills red at high values, green at low values
- Color-coded signal badge (Oversold / Weak / Neutral / Strong / Overbought)
- Stats dashboard showing counts of oversold / neutral / overbought stocks
- Progress bar while fetching, with concurrency-limited (6-at-a-time) parallel requests
- Refresh button + last-updated timestamp
Architecture
src/lib/tickers.ts — curated ticker universe with sector tags
src/lib/yahoo.ts — batched fetch with proxy fallback
src/lib/rsi.ts — Wilder RSI calculation + signal labelling
src/components/Sparkline.tsx — pure SVG sparkline
src/App.tsx — screener UI
The app auto-runs the screen on load and builds to a single-file HTML bundle (~72 KB gzipped).
Files built: index.html, src/lib/tickers.ts, src/lib/rsi.ts, src/lib/yahoo.ts, src/components/Sparkline.tsx, src/App.tsx