PROTECTED SOURCE SCRIPT

Global M2 Overlay 5 DaysTrading + Offset -AlexBank

31
🌍 This indicator visualizes the Global M2 Money Supply — a combined estimate of the total liquid money circulating in major economies worldwide — directly overlaid on your active chart (for example, XAU/USD).
It allows traders to see how global liquidity evolves in relation to asset prices such as gold, Bitcoin, or equities.

In simple terms, M2 reflects how much liquid capital exists in the global financial system.
When M2 expands, liquidity increases — which can fuel asset price growth.
When M2 contracts, liquidity tightens — often signaling risk-off periods or deflationary pressures.

⚙️ This indicator aggregates national M2 data from multiple economies (United States, Eurozone, China, Japan, UK, etc.), converted to USD equivalents via live FX rates, giving a global view of liquidity trends.

Indicator Features

🧭 Overlay on any chart — plots the global M2 line directly on top of your active asset (e.g. XAU/USD, BTC/USD), allowing direct visual comparison.

⏩ Day offset control — shift the M2 curve forward or backward in time (in real trading days) to test how global liquidity leads or lags asset prices.

Example: shifting +90 days means the M2 data appears 90 trading days later (not calendar days, since weekends are excluded).

📅 5-day trading week logic — automatically converts real days into trading days, ensuring accurate offsets that match market calendars.

📊 Optional moving average — smooths the M2 line to better visualize long-term liquidity trends.

🎚️ Manual scaling (optional) — adjust the height of the M2 curve to visually align it with your charted asset’s price range (does not affect data values).

💡 How to Use

1/ Apply the indicator to your preferred chart (e.g., Gold / XAUUSD).

2/ Adjust the time offset parameter to see how changes in global liquidity precede or follow price movements.

3/ Use on DAILY TimeFrame for clear visibility
Enjoy !

Haftungsausschluss

Die Informationen und Veröffentlichungen sind nicht als Finanz-, Anlage-, Handels- oder andere Arten von Ratschlägen oder Empfehlungen gedacht, die von TradingView bereitgestellt oder gebilligt werden, und stellen diese nicht dar. Lesen Sie mehr in den Nutzungsbedingungen.