If you are looking for a free GitHub repository to replicate the Investor's Business Daily (IBD) / MarketSmith Relative Strength (RS) Rating (the 1-99 percentile score) or its visual layout, there are a few primary open-source projects you can download:
- What it is: A 4-in-1 tool containing customized MarketSmith-style bars, daily/weekly SMA/EMA, high/low points, and an integrated IBD-style RS Rating (1-99 score). [1, 2]
- How it works: It uses an auto-updating Python backend hosted on GitHub to process US stock data, matching the actual MarketSmith RS scoring with an average deviation of only ±3 to 5 points. [1]
- Download/View Code: Fred6725 / MarketSmith-Indicator-TradingView GitHub [1]
- Alternative (Python Backend only): Fred6725 / relative-strength GitHub [1]
- What it is: A Python script that downloads data directly from Yahoo Finance, measures yearly stock performance (weighting the most recent quarter double), and compares it against the SPY index to rank tickers into a percentile. [1]
- Output: Generates local spreadsheet files (
rs_stocks.csvandrs_industries.csv). [1] - Download/View Code: skyte / relative-strength GitHub [1]
- What it is: A Python-based screener that scans for stocks making new highs in Relative Strength and sorts them using the exact same calculation formula as the IBD RS Rating. [1]
- Download/View Code: iArpanK / RS-Screener GitHub [1]
- For TradingView scripts: You do not even need to install Python. Go to the GitHub page, open the
.txtor.pinecode file, copy the script, open the Pine Editor at the bottom of your TradingView chart, paste it, and click Add to Chart. - For Python programs (
skyteoriArpanK): Download the ZIP folder from GitHub, ensure you have Python installed, and runpip install -r requirements.txtvia your terminal to acquire the necessary dependencies (likeyfinance) before running the script. [1]



