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.
開源腳本
秉持TradingView一貫精神,這個腳本的創作者將其設為開源,以便交易者檢視並驗證其功能。向作者致敬!您可以免費使用此腳本,但請注意,重新發佈代碼需遵守我們的社群規範。
免責聲明
這些資訊和出版物並非旨在提供,也不構成TradingView提供或認可的任何形式的財務、投資、交易或其他類型的建議或推薦。請閱讀使用條款以了解更多資訊。
開源腳本
秉持TradingView一貫精神,這個腳本的創作者將其設為開源,以便交易者檢視並驗證其功能。向作者致敬!您可以免費使用此腳本,但請注意,重新發佈代碼需遵守我們的社群規範。
免責聲明
這些資訊和出版物並非旨在提供,也不構成TradingView提供或認可的任何形式的財務、投資、交易或其他類型的建議或推薦。請閱讀使用條款以了解更多資訊。