How skyte/relative-strength works
This repository generates IBD-style relative-strength percentile rankings for stocks and industries. The main workflow is to gather a configured ticker universe, fetch price histories, calculate benchmark-relative performance and percentiles, then write CSV reports. The command-line entry point runs data collection before ranking; the data and ranking scripts can also be run separately. Yahoo Finance and TD Ameritrade are documented price sources. The graph reflects the shown calls and documented capabilities; unsampled implementation details are not inferred.
Main entry points: rs_data.py Price Collection · rs_ranking.py Stock Ranking · relative-strength.py CLI Workflow · ticker_info.json Ticker Metadata
Components 13
Universe & Data
- Ticker Universe
rs_data.py - Price Collection
rs_data.py - Price History
rs_data.py - Ticker Metadata
data_persist/ticker_info.json
Ranking & Reports
- Stock Ranking
rs_ranking.py - Industry Ranking
rs_ranking.py - CSV Reports
rs_ranking.py
Runtime
- CLI Workflow
relative-strength.py - Configuration
config.yaml
Other components
- User
- Nasdaq / Wiki Listings
- Yahoo Finance
- TD Ameritrade
Connections 13
- User → CLI Workflow: runs
README.md - CLI Workflow → Price Collection: starts collection
relative-strength.py - CLI Workflow → Stock Ranking: starts ranking
relative-strength.py - Configuration → Price Collection: configures
rs_data.py - Ticker Universe → Nasdaq / Wiki Listings: fetches listings
rs_data.py - Price Collection → Yahoo Finance: downloads prices
rs_data.py - Price Collection → TD Ameritrade: requests price history
rs_data.py - Price Collection → Price History: writes
rs_data.py - Price Collection → Ticker Metadata: writes
rs_data.py - Stock Ranking → Price History: reads
rs_ranking.py - Stock Ranking → Ticker Metadata: reads
rs_ranking.py - Stock Ranking → Industry Ranking: aggregates industries
rs_ranking.py - Stock Ranking → CSV Reports: writes CSVs
rs_ranking.py