PROTECTED SOURCE SCRIPT

RAMDICATOR M2 Gradient v18 Acceleration

27
M2 Gradient v18 – Acceleration Edition
What It Does
This indicator tracks Global M2 money supply from 21 countries, converts everything to USD, and plots the Year-over-Year growth rate as a color-coded gradient line. But the real edge is the acceleration layer — a second-derivative system that detects when liquidity growth is speeding up or slowing down before the headline number crosses key thresholds.
The core idea: it's not the level of liquidity that leads risk assets — it's the direction of change. M2 contraction slowing down is bullish before M2 actually starts expanding. M2 expansion decelerating is bearish before the headline number rolls over.

The Problem This Solves
Most M2 indicators show you where liquidity is. By the time Global M2 YoY crosses from negative to positive, crypto and risk assets have often already bottomed and rallied 30-50%. The acceleration layer catches the inflection point — the moment contraction starts slowing — giving you a leading signal weeks or months ahead of the zone transition.

How It Works
Layer 1: YoY Growth Line (1st Derivative)
Global M2 from 21 countries is summed in USD and measured as a Year-over-Year percentage change, smoothed with an EMA (default 14-period). This line is color-coded into five zones:
🚀 Parabolic (green, >6%) — Liquidity flooding in. Peak euphoria territory.
📈 Bull (dark green, >4%) — Strong expansion. Risk-on confirmed.
➡️ Neutral (yellow, >2%) — Moderate growth. Transitional.
⚠️ Caution (orange, >0%) — Positive but weak. Be selective.
📉 Bear (red, <0%) — Contraction. Risk-off.
Layer 2: Acceleration Histogram (2nd Derivative)
A color-coded histogram showing the momentum of the growth rate itself. Bright cyan bars mean acceleration is positive and strengthening. Bright orange bars mean deceleration is intensifying. Dim bars indicate fading momentum in either direction.
Layer 3: Early Warning Signals
The highest-value feature. These fire at the intersection of acceleration and zone:
⚡ Early Bullish (cyan diamond) — Acceleration turns positive while the YoY level is still in Bear or Caution. Translation: "contraction is slowing, inflection is approaching."
⚡ Strong Early Bullish (cyan ⚡ label) — Acceleration positive and accelerating further while still in a bearish zone. Strongest leading buy signal.
⚡ Early Bearish (orange diamond) — Acceleration turns negative while in Bull or Parabolic. Translation: "expansion is peaking, deceleration has begun."
⚡ Strong Early Bearish (orange ⚡ label) — Deceleration intensifying in a bullish zone. Strongest leading caution signal.
Layer 4: Divergence Detection
When acceleration stays positive but the zone remains Bear/Caution (or vice versa), the background tints subtly to highlight the sustained divergence. This is the quiet signal that a regime change is building beneath the surface.

Countries Tracked (21)
🇺🇸 USA · 🇪🇺 Eurozone · 🇨🇳 China · 🇯🇵 Japan · 🇬🇧 UK · 🇨🇦 Canada · 🇨🇭 Switzerland · 🇮🇳 India · 🇷🇺 Russia · 🇧🇷 Brazil · 🇲🇽 Mexico · 🇹🇼 Taiwan · 🇭🇰 Hong Kong · 🇸🇬 Singapore · 🇳🇿 New Zealand · 🇵🇭 Philippines · 🇨🇴 Colombia · 🇦🇪 UAE · 🇹🇷 Turkey · 🇿🇦 South Africa · 🇫🇮 Finland
All converted to USD in real-time using TradingView's FX data, so currency movements are captured alongside raw money supply changes.

Adaptive Market Detection
The indicator automatically detects whether you're on a crypto chart (365-day year) or a stock chart (252 trading days) and adjusts the YoY lookback accordingly. You can also override this manually in settings.

How To Read It
Bullish setup: The YoY line is in Bear or Caution zone, but the acceleration histogram has turned cyan and an Early Bullish diamond appears. The background may show a subtle cyan tint (bullish divergence). This is your cue to start building positions — the zone transition hasn't happened yet, but the math says it's coming.
Bearish setup: The YoY line is in Bull or Parabolic, but the histogram flips orange and an Early Bearish diamond appears. Expansion is decelerating. Start thinking about risk management before the crowd sees the headline number roll over.
Confirmation: When the Early Warning signal eventually resolves into an actual zone change (📈 Bull or 📉 Bear label), the move is confirmed. The acceleration layer gave you the head start.

Settings & Customization
Main: Line offset (shift the plot forward to visualize lag), line width, market type override.
Smoothing: EMA or SMA, adjustable length (lower = more reactive, higher = smoother).
Zone Thresholds: Fully adjustable breakpoints for all five zones.
Acceleration: Lookback period (default 21), smoothing (default 7 EMA), histogram visual scale.
Signals: Toggle zone signals, early warnings, and deceleration warnings independently.
Table: Show/hide, position (9 options), text size (Tiny → Huge), background transparency.

Alerts
Full alert support for all signal types — zone transitions, early warnings, strong signals, and divergence onset. Set alerts on the acceleration signals for maximum lead time.

Best Used With
This is a macro regime indicator, not a timing tool. It tells you what environment you're operating in and when that environment is about to shift. Pair it with technical or on-chain indicators for entry/exit timing. Particularly effective for crypto, where liquidity cycles drive market structure more directly than in traditional markets.

Credits & Inspiration
Built on research around global liquidity cycles and their relationship to risk asset performance. The acceleration framework draws from the principle that markets respond to the rate of change in monetary conditions, not just the absolute level — an idea emphasized across macro liquidity research.

This indicator is for informational and educational purposes only. It is not financial advice. Always do your own research and manage your own risk.

免責事項

この情報および投稿は、TradingViewが提供または推奨する金融、投資、トレード、その他のアドバイスや推奨を意図するものではなく、それらを構成するものでもありません。詳細は利用規約をご覧ください。