OPEN-SOURCE SCRIPT
RRG Overlay - Thematic & Innovation

Overview
The RRG Overlay — Thematic & Innovation indicator is a specialized add-on designed to expand your Relative Rotation Graph (RRG) analysis. While standard RRG tools focus on traditional market sectors, this overlay brings 39 highly targeted thematic, disruptive tech, and innovation ETFs right to your chart.
This script is engineered to be an overlay—meaning it is meant to be added to the exact same pane as your primary RRG Host indicator (e.g., RRG_Host_Sectors). This allows you to directly compare niche growth sectors against broader market performance in a single, unified visual workspace.
Key Features
Massive Ticker Coverage: Tracks the rotational paths of 39 specific thematic ETFs. Categories include Artificial Intelligence, Robotics, Cybersecurity, Cloud Computing, Clean Energy, Genomics, FinTech, Blockchain, eSports, and more.
Fading Historical Tails: Visualizes the momentum and path of each ticker using customizable, fading tail segments.
Dynamic Data Table: Features a built-in, top-right sorting table (positioned to avoid overlapping the Host's top-left table).
Advanced Sorting Metrics: Quickly rank tickers by momentum. Sort the table by Weeks Rising, Weeks Positive Momentum, Tail Velocity, Heading (Degrees), Reversals, RS-Ratio, or RS-Momentum.
Quadrant Tracking: Beautifully maps each ETF's journey through the four classic RRG phases: Leading (Green), Weakening (Yellow), Lagging (Red), and Improving (Blue).
⚠️ IMPORTANT: Setup & Sync Instructions
Because this is an overlay script designed to share a pane with a Host RRG indicator, your mathematical and spatial parameters must be perfectly synced for the coordinates to align correctly.
Add your RRG Host script to the chart.
Add this RRG Overlay — Thematic & Innovation script to the chart.
Set the timeframe of the chart to weekly.
Drag this indicator into the SAME PANE as the Host script.
Open the Settings for this indicator. Under the "Sync With Host" group, ensure the following inputs exactly match your Host indicator:
RS Smoothing (EMA)
Normalization Window
Scale Factor
X Scale (bars/unit)
Under the "Display" settings, ensure your Anchor Offset matches the Host so the center crosshairs align perfectly.
Included ETF Themes
This overlay pits the following themes against the SHV (Short Treasury Bond) benchmark to measure absolute rotational strength:
Next-Gen Tech: AI/Robotics (BOTZ, ROBO, AIQ), Cyber & Cloud (CIBR, BUG, SKYY, CLOU), FinTech & Blockchain (FINX, ARKF, BLOK, IPAY).
Green & Infrastructure: Clean Energy & Solar (ICLN, QCLN, TAN, FAN), Smart Grid & Batteries (GRID, BATT), Infrastructure (PAVE).
Innovation & Disruption: ARK Funds (ARKK, ARKQ, ARKG, ARKW), Space (UFO), 3D Printing (PRNT), Quantum (QTUM).
Consumer & Lifestyle: E-commerce (IBUY), Gaming & Metaverse (ESPO, HERO, METV), Cannabis (YOLO), Sports Betting (BETZ), Pet Care (PAWZ).
Performance Note
To stay within Pine Script's rendering limits and ensure optimal loading speeds, the maximum safe tail length is capped at 12 bars when plotting all 39 tickers simultaneously.
The RRG Overlay — Thematic & Innovation indicator is a specialized add-on designed to expand your Relative Rotation Graph (RRG) analysis. While standard RRG tools focus on traditional market sectors, this overlay brings 39 highly targeted thematic, disruptive tech, and innovation ETFs right to your chart.
This script is engineered to be an overlay—meaning it is meant to be added to the exact same pane as your primary RRG Host indicator (e.g., RRG_Host_Sectors). This allows you to directly compare niche growth sectors against broader market performance in a single, unified visual workspace.
Key Features
Massive Ticker Coverage: Tracks the rotational paths of 39 specific thematic ETFs. Categories include Artificial Intelligence, Robotics, Cybersecurity, Cloud Computing, Clean Energy, Genomics, FinTech, Blockchain, eSports, and more.
Fading Historical Tails: Visualizes the momentum and path of each ticker using customizable, fading tail segments.
Dynamic Data Table: Features a built-in, top-right sorting table (positioned to avoid overlapping the Host's top-left table).
Advanced Sorting Metrics: Quickly rank tickers by momentum. Sort the table by Weeks Rising, Weeks Positive Momentum, Tail Velocity, Heading (Degrees), Reversals, RS-Ratio, or RS-Momentum.
Quadrant Tracking: Beautifully maps each ETF's journey through the four classic RRG phases: Leading (Green), Weakening (Yellow), Lagging (Red), and Improving (Blue).
⚠️ IMPORTANT: Setup & Sync Instructions
Because this is an overlay script designed to share a pane with a Host RRG indicator, your mathematical and spatial parameters must be perfectly synced for the coordinates to align correctly.
Add your RRG Host script to the chart.
Add this RRG Overlay — Thematic & Innovation script to the chart.
Set the timeframe of the chart to weekly.
Drag this indicator into the SAME PANE as the Host script.
Open the Settings for this indicator. Under the "Sync With Host" group, ensure the following inputs exactly match your Host indicator:
RS Smoothing (EMA)
Normalization Window
Scale Factor
X Scale (bars/unit)
Under the "Display" settings, ensure your Anchor Offset matches the Host so the center crosshairs align perfectly.
Included ETF Themes
This overlay pits the following themes against the SHV (Short Treasury Bond) benchmark to measure absolute rotational strength:
Next-Gen Tech: AI/Robotics (BOTZ, ROBO, AIQ), Cyber & Cloud (CIBR, BUG, SKYY, CLOU), FinTech & Blockchain (FINX, ARKF, BLOK, IPAY).
Green & Infrastructure: Clean Energy & Solar (ICLN, QCLN, TAN, FAN), Smart Grid & Batteries (GRID, BATT), Infrastructure (PAVE).
Innovation & Disruption: ARK Funds (ARKK, ARKQ, ARKG, ARKW), Space (UFO), 3D Printing (PRNT), Quantum (QTUM).
Consumer & Lifestyle: E-commerce (IBUY), Gaming & Metaverse (ESPO, HERO, METV), Cannabis (YOLO), Sports Betting (BETZ), Pet Care (PAWZ).
Performance Note
To stay within Pine Script's rendering limits and ensure optimal loading speeds, the maximum safe tail length is capped at 12 bars when plotting all 39 tickers simultaneously.
開源腳本
秉持TradingView一貫精神,這個腳本的創作者將其設為開源,以便交易者檢視並驗證其功能。向作者致敬!您可以免費使用此腳本,但請注意,重新發佈代碼需遵守我們的社群規範。
免責聲明
這些資訊和出版物並非旨在提供,也不構成TradingView提供或認可的任何形式的財務、投資、交易或其他類型的建議或推薦。請閱讀使用條款以了解更多資訊。
開源腳本
秉持TradingView一貫精神,這個腳本的創作者將其設為開源,以便交易者檢視並驗證其功能。向作者致敬!您可以免費使用此腳本,但請注意,重新發佈代碼需遵守我們的社群規範。
免責聲明
這些資訊和出版物並非旨在提供,也不構成TradingView提供或認可的任何形式的財務、投資、交易或其他類型的建議或推薦。請閱讀使用條款以了解更多資訊。