OPEN-SOURCE SCRIPT
Smart Money Sector Rotation

STOP MISTAKING INFLATION FOR PERFORMANCE.
Your PnL might look green in nominal terms, but are you actually generating wealth, or just floating on a rising tide of liquidity?
The "Smart Money Sector Rotation" indicator is an institutional-grade dashboard designed to answer that single, critical question. It strips away the noise of nominal price action and benchmarks major assets against the "Honest Hurdle"—a dynamic baseline derived from M2 Money Supply, Inflation Breakevens, and Treasury Yields.
If an asset isn't beating the Hurdle, you aren't generating real wealth—you're just keeping pace with debasement.
THE HONEST FRAMEWORK Most screeners rank assets by simple percentage gain. This tool is different. It calculates a "Required Rate of Return" (Min Return) based on live Federal Reserve data (FRED).
1. Quantify the Debasement. We automatically fetch M2 Money Supply Growth and Inflation expectations to set the "floor."
2. Calculate Real Alpha. We measure how far an asset is trading above or below that floor.
3. Classify the Trend. Using RRG-style logic (Relative Rotation Graph), we categorize assets into four actionable phases based on their Real Yield and Momentum.
THE 4 MARKET PHASES Instead of vague signals, get a clear read on the asset's lifecycle:
ZONE 1: ELITE / LEADING (Cyan/Green) -- The State: Expansion. -- The Logic: The asset is generating positive Real Yields (beating the money printer) and has strong momentum relative to its peers.
ZONE 2: IMPROVING (Gold) -- The State: Recovery. -- The Logic: The asset may be below the Hurdle, but momentum is shifting positively. It is "waking up."
ZONE 3: LAGGING / WEAKENING (Orange/Red) -- The State: Contraction. -- The Logic: The asset is failing to keep up with debasement or is actively losing relative strength.
KEY FEATURES -- Auto-Macro Data: Connects directly to FRED for M2 (WM2NS), 10Y Inflation (T10YIE), and Yields (DGS10). No manual entry required. -- Trend Visualization: Tickers are marked with Green/Red indicators based on their 200-day Moving Average status. -- Prestige Color System: A dark-mode optimized, high-contrast palette designed for professional clarity. -- Multi-Asset Universe: Tracks Equities (XLK, XLE, etc.), Commodities (Gold, Silver, Oil), and Rates (TLT, HYG) in a single view.
HOW TO USE
1. Check the Header: Look at the "Min Ret" (Minimum Return). This is your beat-to-profit line.
2. Scan the Status: Focus on assets in the Elite or Leading zones for trend continuation. Watch Improving assets for potential reversals.
3. Respect the Trend: Use the SMA200 indicator as a final filter. A "Leading" status with a Red trend mark may indicate a trend that is rolling over.
DISCLAIMER This tool is for informational and educational purposes only. It visualizes macroeconomic data and does not constitute financial advice or a recommendation to buy/sell.
Your PnL might look green in nominal terms, but are you actually generating wealth, or just floating on a rising tide of liquidity?
The "Smart Money Sector Rotation" indicator is an institutional-grade dashboard designed to answer that single, critical question. It strips away the noise of nominal price action and benchmarks major assets against the "Honest Hurdle"—a dynamic baseline derived from M2 Money Supply, Inflation Breakevens, and Treasury Yields.
If an asset isn't beating the Hurdle, you aren't generating real wealth—you're just keeping pace with debasement.
THE HONEST FRAMEWORK Most screeners rank assets by simple percentage gain. This tool is different. It calculates a "Required Rate of Return" (Min Return) based on live Federal Reserve data (FRED).
1. Quantify the Debasement. We automatically fetch M2 Money Supply Growth and Inflation expectations to set the "floor."
2. Calculate Real Alpha. We measure how far an asset is trading above or below that floor.
3. Classify the Trend. Using RRG-style logic (Relative Rotation Graph), we categorize assets into four actionable phases based on their Real Yield and Momentum.
THE 4 MARKET PHASES Instead of vague signals, get a clear read on the asset's lifecycle:
ZONE 1: ELITE / LEADING (Cyan/Green) -- The State: Expansion. -- The Logic: The asset is generating positive Real Yields (beating the money printer) and has strong momentum relative to its peers.
ZONE 2: IMPROVING (Gold) -- The State: Recovery. -- The Logic: The asset may be below the Hurdle, but momentum is shifting positively. It is "waking up."
ZONE 3: LAGGING / WEAKENING (Orange/Red) -- The State: Contraction. -- The Logic: The asset is failing to keep up with debasement or is actively losing relative strength.
KEY FEATURES -- Auto-Macro Data: Connects directly to FRED for M2 (WM2NS), 10Y Inflation (T10YIE), and Yields (DGS10). No manual entry required. -- Trend Visualization: Tickers are marked with Green/Red indicators based on their 200-day Moving Average status. -- Prestige Color System: A dark-mode optimized, high-contrast palette designed for professional clarity. -- Multi-Asset Universe: Tracks Equities (XLK, XLE, etc.), Commodities (Gold, Silver, Oil), and Rates (TLT, HYG) in a single view.
HOW TO USE
1. Check the Header: Look at the "Min Ret" (Minimum Return). This is your beat-to-profit line.
2. Scan the Status: Focus on assets in the Elite or Leading zones for trend continuation. Watch Improving assets for potential reversals.
3. Respect the Trend: Use the SMA200 indicator as a final filter. A "Leading" status with a Red trend mark may indicate a trend that is rolling over.
DISCLAIMER This tool is for informational and educational purposes only. It visualizes macroeconomic data and does not constitute financial advice or a recommendation to buy/sell.
Skrip open-source
Dengan semangat TradingView yang sesungguhnya, pembuat skrip ini telah menjadikannya sebagai sumber terbuka, sehingga para trader dapat meninjau dan memverifikasi fungsinya. Salut untuk penulisnya! Meskipun Anda dapat menggunakannya secara gratis, perlu diingat bahwa penerbitan ulang kode ini tunduk pada Tata Tertib kami.
Pernyataan Penyangkalan
Informasi dan publikasi ini tidak dimaksudkan, dan bukan merupakan, saran atau rekomendasi keuangan, investasi, trading, atau jenis lainnya yang diberikan atau didukung oleh TradingView. Baca selengkapnya di Ketentuan Penggunaan.
Skrip open-source
Dengan semangat TradingView yang sesungguhnya, pembuat skrip ini telah menjadikannya sebagai sumber terbuka, sehingga para trader dapat meninjau dan memverifikasi fungsinya. Salut untuk penulisnya! Meskipun Anda dapat menggunakannya secara gratis, perlu diingat bahwa penerbitan ulang kode ini tunduk pada Tata Tertib kami.
Pernyataan Penyangkalan
Informasi dan publikasi ini tidak dimaksudkan, dan bukan merupakan, saran atau rekomendasi keuangan, investasi, trading, atau jenis lainnya yang diberikan atau didukung oleh TradingView. Baca selengkapnya di Ketentuan Penggunaan.