OPEN-SOURCE SCRIPT
已更新

Accurate Global M2 (Top10 GDP, FX-Stabilized)

1 117
This script was created to solve the serious distortions found in other circulating "Global M2" indicators.

Many previous versions used noisy daily FX rates, unweighted country data, mixed liquidity categories (e.g., RRP, TGA), or aggregated low-quality sources, causing exaggerated or misleading charts.

This version fixes those problems by:

Using Top 10 global economies only (based on GDP).
GDP-weighting each country's M2 contribution.
Fetching monthly-averaged M2 data.
Applying monthly FX conversions to eliminate daily volatility noise.
Forward-shifting the M2 line (default 90 days) to study potential Bitcoin correlations.
Keeping the math clean, without mixing central bank liquidity tools with broad M2 aggregates.

As a result, this script provides a more realistic and stable representation of global M2 expansion in USD terms, more suitable for serious macroeconomic analysis and Bitcoin market correlation studies.

版本注释
v1.1 Update
Added automatic normalization of shifted M2 values to align offset curves with the latest data point.

This improves accuracy when adjusting forward offsets (e.g., 90 days, 150 days) by eliminating unintended visual distortion caused by shifting historical M2 levels. Now only the timing changes, not the scale.

Also improved internal code structure for better chart compatibility and user experience.
版本注释
v1.2 Update —
Reverted the previous automatic normalization.

Now the M2 line only applies a pure time shift (based on user-selected days) without adjusting or locking to the latest value.

This correctly preserves the true timing differences between M2 liquidity expansion and Bitcoin price action, allowing users to better study potential lead/lag relationships without introducing artificial scaling distortions.

Minor Y-axis value differences between shifts are normal and reflect genuine historical changes in global M2 levels.

Focus remains on observing the timing of trend changes, not exact matching of value heights.

免责声明

这些信息和出版物并不意味着也不构成TradingView提供或认可的金融、投资、交易或其它类型的建议或背书。请在使用条款阅读更多信息。