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:
1. MarketSmith Indicator for TradingView (by Fred6725)
This is the most popular repository for replicates of the MarketSmith visual template and RS Rating directly onto a free TradingView account. [1]
- 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]
2. IBD-Style Relative Strength Percentile Ranking (by skyte)
If you want a standalone local script rather than a TradingView integration, this repository computes the math behind the 0-100 RS score natively.
- 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]
3. MarketSmith "Blue Dot" RS Screener (by iArpanK)
MarketSmith premium users heavily rely on the "Blue Dot" scanner, which flags stocks hitting a new high in their RS Line. [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]
How to use these downloaded scripts:
- 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]
Are you planning to run a standalone scanner code on your desktop, or are you trying to apply a visual layout directly onto charts like TradingView? Let me know so I can guide you through the setup!
No comments:
Post a Comment