OPEN-SOURCE SCRIPT
Altcoin Relative Macro Strength

Altcoin Relative Macro Strength
Overview
The Altcoin Relative Macro Strength indicator measures the altcoin market's price performance relative to global macroeconomic conditions. By comparing TOTAL3ES (total altcoin market capitalization excluding Bitcoin, Ethereum and stable coins) against a composite macro trend, the indicator identifies periods of relative overvaluation and undervaluation.
Methodology
Global Macro Trend Calculation:
The macro trend synthesizes three primary components:
- ISM PMI – A proxy for the business cycle phase
- Global Liquidity – An aggregate measure of major central bank balance sheets and broad money supply
- IWM (Russell 2000) – Small-cap equity exposure, reflecting risk-on/risk-off market sentiment
Global Liquidity is calculated as:
Fed Balance Sheet - Reverse Repo - Treasury General Account + U.S. M2 + China M2
The final Global Macro Trend is:
ISM PMI × Global Liquidity × IWM
Theoretical Framework:
The global macro trend integrates liquidity expansion/contraction with business cycle dynamics and small-cap equity performance. The inclusion of IWM reflects altcoins' tendency to behave as high-beta risk assets, exhibiting sensitivity similar to small-cap equities. This composite exhibits strong directional correlation with altcoin market movements, capturing the risk-on/risk-off dynamics that drive altcoin performance.

Interpretation
Primary Signal:
The histogram displays the rolling percentage change of TOTAL3ES relative to the global macro trend (default: 21-period average). Positive divergence indicates altcoins are outperforming macro conditions; negative divergence suggests underperformance relative to the underlying economic and risk environment.
Data Tables:
Alts/Macro Change – Percentage deviation of the altcoin market's average value from the Global Macro Trend's average over the specified period
Macro Trend – Directional assessment of the macro trend based on slope and trend agreement:
🔵 BULLISH ▲ – Positive slope with upward trend
⚪ NEUTRAL → – Slope and trend direction disagree
🟣 BEARISH ▼ – Negative slope with downward trend
Macro Slope – Percentage rate of change in the global macro trend
Altcoin Valuation – Relative valuation category based on TOTAL3/Macro deviation:
🟢 Extreme Discount / Deep Discount / Discount
🟡 Fair Value
🔴 Premium / Large Premium / Extreme Premium
TOTAL3ES Mcap – Current total altcoin market capitalization (in billions)
Visual Components:
📊 Histogram: Alts/Macro Change
🟢 Green = Positive deviation (altcoins outperforming)
🔴 Red = Negative deviation (altcoins underperforming)
📈 Macro Slope Line
Color-coded to match trend assessment
Scaled for visibility (adjustable in settings)
Application
This indicator is designed to identify mean reversion opportunities by highlighting periods when the altcoin market materially diverges from fundamental macro and risk conditions. Extreme positive values may indicate overvaluation; extreme negative values may signal undervaluation relative to the prevailing economic and risk appetite backdrop.
Strategy Considerations:
- Identify extremes: Look for periods when the histogram reaches elevated positive or negative levels
- Assess valuation: Use the Altcoin Valuation reading to gauge relative over/undervaluation
Confirm with risk sentiment: Check whether macro conditions and risk appetite support or contradict current price levels
- Mean reversion: Consider that significant deviations from trend historically tend to revert
Note: This indicator identifies relative valuation based on macro conditions and risk sentiment—it does not predict price direction or timing.
Settings
Lookback Period – 21 bars (default) – Number of bars for calculating rolling averages
Macro Slope Scale – 3.0 (default) – Multiplier for macro slope line visibility
Overview
The Altcoin Relative Macro Strength indicator measures the altcoin market's price performance relative to global macroeconomic conditions. By comparing TOTAL3ES (total altcoin market capitalization excluding Bitcoin, Ethereum and stable coins) against a composite macro trend, the indicator identifies periods of relative overvaluation and undervaluation.
Methodology
Global Macro Trend Calculation:
The macro trend synthesizes three primary components:
- ISM PMI – A proxy for the business cycle phase
- Global Liquidity – An aggregate measure of major central bank balance sheets and broad money supply
- IWM (Russell 2000) – Small-cap equity exposure, reflecting risk-on/risk-off market sentiment
Global Liquidity is calculated as:
Fed Balance Sheet - Reverse Repo - Treasury General Account + U.S. M2 + China M2
The final Global Macro Trend is:
ISM PMI × Global Liquidity × IWM
Theoretical Framework:
The global macro trend integrates liquidity expansion/contraction with business cycle dynamics and small-cap equity performance. The inclusion of IWM reflects altcoins' tendency to behave as high-beta risk assets, exhibiting sensitivity similar to small-cap equities. This composite exhibits strong directional correlation with altcoin market movements, capturing the risk-on/risk-off dynamics that drive altcoin performance.
Interpretation
Primary Signal:
The histogram displays the rolling percentage change of TOTAL3ES relative to the global macro trend (default: 21-period average). Positive divergence indicates altcoins are outperforming macro conditions; negative divergence suggests underperformance relative to the underlying economic and risk environment.
Data Tables:
Alts/Macro Change – Percentage deviation of the altcoin market's average value from the Global Macro Trend's average over the specified period
Macro Trend – Directional assessment of the macro trend based on slope and trend agreement:
🔵 BULLISH ▲ – Positive slope with upward trend
⚪ NEUTRAL → – Slope and trend direction disagree
🟣 BEARISH ▼ – Negative slope with downward trend
Macro Slope – Percentage rate of change in the global macro trend
Altcoin Valuation – Relative valuation category based on TOTAL3/Macro deviation:
🟢 Extreme Discount / Deep Discount / Discount
🟡 Fair Value
🔴 Premium / Large Premium / Extreme Premium
TOTAL3ES Mcap – Current total altcoin market capitalization (in billions)
Visual Components:
📊 Histogram: Alts/Macro Change
🟢 Green = Positive deviation (altcoins outperforming)
🔴 Red = Negative deviation (altcoins underperforming)
📈 Macro Slope Line
Color-coded to match trend assessment
Scaled for visibility (adjustable in settings)
Application
This indicator is designed to identify mean reversion opportunities by highlighting periods when the altcoin market materially diverges from fundamental macro and risk conditions. Extreme positive values may indicate overvaluation; extreme negative values may signal undervaluation relative to the prevailing economic and risk appetite backdrop.
Strategy Considerations:
- Identify extremes: Look for periods when the histogram reaches elevated positive or negative levels
- Assess valuation: Use the Altcoin Valuation reading to gauge relative over/undervaluation
Confirm with risk sentiment: Check whether macro conditions and risk appetite support or contradict current price levels
- Mean reversion: Consider that significant deviations from trend historically tend to revert
Note: This indicator identifies relative valuation based on macro conditions and risk sentiment—it does not predict price direction or timing.
Settings
Lookback Period – 21 bars (default) – Number of bars for calculating rolling averages
Macro Slope Scale – 3.0 (default) – Multiplier for macro slope line visibility
오픈 소스 스크립트
트레이딩뷰의 진정한 정신에 따라, 이 스크립트의 작성자는 이를 오픈소스로 공개하여 트레이더들이 기능을 검토하고 검증할 수 있도록 했습니다. 작성자에게 찬사를 보냅니다! 이 코드는 무료로 사용할 수 있지만, 코드를 재게시하는 경우 하우스 룰이 적용된다는 점을 기억하세요.
면책사항
해당 정보와 게시물은 금융, 투자, 트레이딩 또는 기타 유형의 조언이나 권장 사항으로 간주되지 않으며, 트레이딩뷰에서 제공하거나 보증하는 것이 아닙니다. 자세한 내용은 이용 약관을 참조하세요.
오픈 소스 스크립트
트레이딩뷰의 진정한 정신에 따라, 이 스크립트의 작성자는 이를 오픈소스로 공개하여 트레이더들이 기능을 검토하고 검증할 수 있도록 했습니다. 작성자에게 찬사를 보냅니다! 이 코드는 무료로 사용할 수 있지만, 코드를 재게시하는 경우 하우스 룰이 적용된다는 점을 기억하세요.
면책사항
해당 정보와 게시물은 금융, 투자, 트레이딩 또는 기타 유형의 조언이나 권장 사항으로 간주되지 않으며, 트레이딩뷰에서 제공하거나 보증하는 것이 아닙니다. 자세한 내용은 이용 약관을 참조하세요.