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. Подробнее читайте в Условиях использования.