OPEN-SOURCE SCRIPT
Updated

MVRV Z-Score (DEMA Smoothed) | CipherDecoded

718
MVRV Z-Score (DEMA Smoothed) | CipherDecoded

Overview
The MVRV Z-Score (DEMA Smoothed) is a structural trend-following oscillator derived from Bitcoin’s on-chain capital positioning.
Rather than interpreting MVRV purely as a valuation metric, this implementation treats the relationship between market value and realized value as a proxy for capital regime expansion and contraction. By statistically normalizing MVRV and applying Double Exponential Moving Average (DEMA) smoothing, the indicator converts on-chain profitability dynamics into a tradable trend signal.
The result is a regime-sensitive momentum framework anchored to underlying cost basis structure.

Structural Rationale
Market cycles are driven by shifts in aggregate positioning:
When market value persistently exceeds realized value, capital is in profit and reflexive expansion tends to dominate.
When market value compresses toward or below realized value, distribution and contraction phases emerge.
By standardizing MVRV into a rolling Z-score, the indicator measures the velocity and persistence of profitability expansion, not just its magnitude.
The subsequent DEMA smoothing filters short-term volatility while preserving structural inflection points, making the signal more suitable for systematic trend models.

Inputs
  • BTC Market Capitalization
  • BTC Realized Market Capitalization
  • Daily confirmed data to prevent repainting


Z-Score Normalization
  • Rolling lookback mean and standard deviation
  • Converts raw ratio into standardized regime measure


DEMA Smoothing
  • Applied to the Z-score output
  • Reduces noise while maintaining responsiveness to regime shifts


Trend Threshold
  • User-defined bias level (default: 0.0)
  • Above threshold = expansion regime
  • Below threshold = contraction regime


Interpretation
This indicator is designed to identify structural trend bias, not overbought/oversold extremes.
Sustained positive readings indicate persistent capital expansion.
Sustained negative readings indicate structural compression.
Threshold crossovers signal potential regime transitions.
Slope and persistence are often more informative than absolute level.

Design Principles
Statistical normalization separates signal from secular growth effects.
Smoothing is applied post-normalization to preserve structural information.
Inputs are modular, allowing independent control of regime sensitivity and signal responsiveness.
Data is requested on confirmed daily closes to ensure signal stability.

Strategic Context
Unlike traditional price-only oscillators, this framework derives trend information from underlying capital positioning. It therefore reacts to structural shifts in profitability rather than short-term price volatility.

This makes it particularly suited for:
  • Medium- to long-horizon trend strategies
  • Macro regime allocation models
  • Risk scaling frameworks


Summary
The MVRV Z-Score (DEMA Smoothed) reframes on-chain valuation data into a structural trend engine. By combining statistical normalization with adaptive smoothing, it provides a capital-anchored momentum signal designed for regime-based trading and systematic bias control.
Release Notes
Visual Update: Reduced plot transparency for improved readability.

Disclaimer

The information and publications are not meant to be, and do not constitute, financial, investment, trading, or other types of advice or recommendations supplied or endorsed by TradingView. Read more in the Terms of Use.