M2 Global Liquidity Index - Enhanced Time-Shift Indicator
Based on original work by Mik3Christ3ns3n Enhanced with advanced time-shift functionality and overlay capabilities.
Description: This indicator tracks and visualizes the global M2 money supply from five major economies, allowing precise time-shift analysis for correlation studies. All values are converted to USD in real-time and aggregated to provide a comprehensive view of global liquidity conditions.
Key Features: - Advanced time-shift capability (-1000 to +1000 days) with shape preservation - Real-time currency conversion to USD - Overlay functionality with main chart - Right-scale display for better comparison - Full historical data preservation during time shifts
Components Tracked: - US M2 Money Supply (USM2) - China M2 Money Supply (CNM2) - Eurozone M2 Money Supply (EUM2) - Japan M2 Money Supply (JPM2) - UK M2 Money Supply (GBM2)
Primary Use Cases: 1. Correlation Analysis: - Compare global liquidity trends with asset prices - Identify leading/lagging relationships through time-shift - Study monetary policy impacts across different time periods
2. Market Analysis: - Track global liquidity conditions - Monitor central bank policy effects - Identify potential macro trend changes
Settings: - Time Offset: Shift the M2 data backwards or forwards (-1000 to +1000 days) - Positive values: Move M2 data into the future - Negative values: Move M2 data into the past - Zero: Current alignment
Technical Notes: - Data updates follow central banks' M2 publication schedules - All currency conversions performed in real-time - Historical shape preservation during time-shifts - Enhanced data consistency through lookahead mechanism
Credits: Original concept and base code by Mik3Christ3ns3n Enhanced version includes advanced time-shift capabilities and shape preservation
License: Pine Script™ code is subject to the terms of the Mozilla Public License 2.0