OPEN-SOURCE SCRIPT
Global M2 ex-China Monitor

Global M2 Monitor - Ultimate Edition
🎯 OVERVIEW
Advanced global M2 money supply monitoring indicator, offering a unique macroeconomic view of global liquidity. Real-time tracking of M2 evolution in major developed economies.
📊 KEY FEATURES
🎨 COLOR SYSTEM - DEFAULT SETTINGS
🇨🇳 WHY IS CHINA EXCLUDED BY DEFAULT?
⚙️ OPTIMIZED DEFAULT PARAMETERS
Pine Script®
📈 RECOMMENDED USAGE
🔍 ADVANCED INTERPRETATION
💡 WHY THIS INDICATOR?
Global money supply is the lifeblood of the financial economy. Its growth or contraction typically precedes market movements by 6 to 12 months.
🛠️ ADVANCED CUSTOMIZATION
All parameters are customizable:
📋 TECHNICAL INFORMATION
🎯 OVERVIEW
Advanced global M2 money supply monitoring indicator, offering a unique macroeconomic view of global liquidity. Real-time tracking of M2 evolution in major developed economies.
📊 KEY FEATURES
- Global M2 Aggregation: USA, Japan, Canada, Eurozone, United Kingdom
- Currency Conversion: All data converted to USD for consistent analysis
- High Resolution Display: Daily curve by default
- Technical Analysis: 50-period moving average (SMA/EMA/WMA)
- Accurate YoY Calculation: Annual variation based on monthly data
- Advanced Signal System: Multi-condition color codes
🎨 COLOR SYSTEM - DEFAULT SETTINGS
- 🟢 GREEN: YoY ≥ 7% AND M2 ≥ SMA → Strong growth + Bullish momentum
- 🔴 RED: YoY ≤ 2% AND M2 ≤ SMA → Weak growth + Bearish momentum
- 🟢 LIGHT GREEN: YoY ≥ 7% BUT M2 < SMA → Good fundamentals, temporarily weak momentum
- 🔴 LIGHT RED: YoY ≤ 2% BUT M2 > SMA → Weak fundamentals, price still supported
- 🔵 BLUE: YoY between 2% and 7% → Neutral zone of moderate growth
🇨🇳 WHY IS CHINA EXCLUDED BY DEFAULT?
Chinese M2 data presents methodological reliability and transparency issues. Exclusion allows for more consistent analysis of mature market economies.
Different M2 definitionvs Western standardsCapital controlsaffecting real convertibilityFrequent monetary manipulationsby authorities- ✅ Available option: Can be activated in settings
⚙️ OPTIMIZED DEFAULT PARAMETERS
// DISPLAY SETTINGS
Candle Period: D (Daily)
// MOVING AVERAGE
MA Period: 50, Type: SMA
// BACKGROUND LOGIC
YoY Bullish: 7%, YoY Bearish: 2%
SMA Method: absolute, Threshold: 0.2%
// COLORS
Transparency: 5%
China M2: Disabled
📈 RECOMMENDED USAGE
- Traders: Anticipate sector rotations
- Investors: Identify abundant/restricted liquidity phases
- Macro-analysts: Monitor monetary policy impacts
- Portfolio managers: Understand inflationary pressures
🔍 ADVANCED INTERPRETATION
- M2 ↗️ + YoY ≥ 7% → Favorable risk-on environment
- M2 ↘️ + YoY ≤ 2% → Defensive risk-off environment
- Divergences → Early warning signals for trend changes
💡 WHY THIS INDICATOR?
Global money supply is the lifeblood of the financial economy. Its growth or contraction typically precedes market movements by 6 to 12 months.
"Don't fight the Fed... nor the world's central banks"
🛠️ ADVANCED CUSTOMIZATION
All parameters are customizable:
- YoY bullish/bearish thresholds
- SMA comparison method (absolute/percentage)
- Colors and transparency
- Moving average period and type
- Optional China inclusion
📋 TECHNICAL INFORMATION
- YoY Calculation: Based on monthly data for consistency
- Sources: FRED, ECONOMICS, official data
- Updates: Real-time with publications
- Currencies: Updated exchange rates
오픈 소스 스크립트
트레이딩뷰의 진정한 정신에 따라, 이 스크립트의 작성자는 이를 오픈소스로 공개하여 트레이더들이 기능을 검토하고 검증할 수 있도록 했습니다. 작성자에게 찬사를 보냅니다! 이 코드는 무료로 사용할 수 있지만, 코드를 재게시하는 경우 하우스 룰이 적용된다는 점을 기억하세요.
면책사항
해당 정보와 게시물은 금융, 투자, 트레이딩 또는 기타 유형의 조언이나 권장 사항으로 간주되지 않으며, 트레이딩뷰에서 제공하거나 보증하는 것이 아닙니다. 자세한 내용은 이용 약관을 참조하세요.
오픈 소스 스크립트
트레이딩뷰의 진정한 정신에 따라, 이 스크립트의 작성자는 이를 오픈소스로 공개하여 트레이더들이 기능을 검토하고 검증할 수 있도록 했습니다. 작성자에게 찬사를 보냅니다! 이 코드는 무료로 사용할 수 있지만, 코드를 재게시하는 경우 하우스 룰이 적용된다는 점을 기억하세요.
면책사항
해당 정보와 게시물은 금융, 투자, 트레이딩 또는 기타 유형의 조언이나 권장 사항으로 간주되지 않으며, 트레이딩뷰에서 제공하거나 보증하는 것이 아닙니다. 자세한 내용은 이용 약관을 참조하세요.