OPEN-SOURCE SCRIPT
MVRV Z-Score Bands | Astral Vision

MVRV Z-Score Bands | Astral Vision 💠🌠
Market Value to Realized Value (MVRV) measures the ratio between Bitcoin's market capitalization and its Realized Capitalization, the aggregate value of all coins priced at their last on-chain movement.
When market cap significantly exceeds realized cap, the network is collectively sitting on large unrealized profits, historically a condition associated with distribution tops.
When the two converge or invert, the network is near or below its aggregate cost basis, the condition that has defined every major accumulation floor.
This indicator standardizes MVRV using the full historical standard deviation of market cap, producing a Z-Score that makes cycle extremes statistically comparable across all of Bitcoin's history. It then inverts the Z-Score thresholds back through the MVRV formula to project them as dynamic price levels directly onto the price chart, converting abstract statistical levels into concrete price bands that move in real time with Realized Cap.
Calculation ⚙️
`MVRV Z-Score = (Market Cap − Realized Cap) / StdDev(Market Cap, all-time)`
The standard deviation is computed over the entire available history of market cap using a growing array, ensuring the normalization reflects the full distribution of Bitcoin's market structure at every point in time.
The price bands invert the Z-Score threshold back to price:
`Band Price = BTC Price × ((target_Z × StdDev + Realized Cap) / Market Cap)`
This back-projection means the overbought and oversold bands on the price chart represent exactly the price at which the MVRV Z-Score would equal the user-defined threshold given current on-chain conditions.
Plots 📊
Inputs 🎛️
Colors 🎨
5 Astral Vision presets + custom override. Default: Paradiso. Positive color applies at oversold extremes; negative color applies at overbought extremes.
Purpose 🎯
Standard MVRV Z-Score implementations display only the oscillator panel, requiring the trader to mentally translate Z-Score levels back to price, a calculation that changes every day as Realized Cap evolves. Threshold lines in the panel are static and offer no direct price context.
This indicator closes that gap entirely. The Z-Score thresholds are continuously inverted to their equivalent price levels and projected as live bands on the chart, so the distance between current price and each extreme is always immediately readable without any mental conversion. As Realized Cap grows with each market cycle, the bands self-adjust upward, reflecting the structural elevation of Bitcoin's cost basis over time and keeping the signal relevant across every cycle without any manual recalibration.
Disclaimer ⭕️
It is not financial advice, not an investment recommendation, and not affiliated with any financial institution, research firm, or organization of any kind. All content is provided for educational and informational purposes only. Always conduct your own research before making any financial decision.
Market Value to Realized Value (MVRV) measures the ratio between Bitcoin's market capitalization and its Realized Capitalization, the aggregate value of all coins priced at their last on-chain movement.
When market cap significantly exceeds realized cap, the network is collectively sitting on large unrealized profits, historically a condition associated with distribution tops.
When the two converge or invert, the network is near or below its aggregate cost basis, the condition that has defined every major accumulation floor.
This indicator standardizes MVRV using the full historical standard deviation of market cap, producing a Z-Score that makes cycle extremes statistically comparable across all of Bitcoin's history. It then inverts the Z-Score thresholds back through the MVRV formula to project them as dynamic price levels directly onto the price chart, converting abstract statistical levels into concrete price bands that move in real time with Realized Cap.
Calculation ⚙️
`MVRV Z-Score = (Market Cap − Realized Cap) / StdDev(Market Cap, all-time)`
The standard deviation is computed over the entire available history of market cap using a growing array, ensuring the normalization reflects the full distribution of Bitcoin's market structure at every point in time.
The price bands invert the Z-Score threshold back to price:
`Band Price = BTC Price × ((target_Z × StdDev + Realized Cap) / Market Cap)`
This back-projection means the overbought and oversold bands on the price chart represent exactly the price at which the MVRV Z-Score would equal the user-defined threshold given current on-chain conditions.
Plots 📊
- MVRV Z-Score line in the indicator panel, colored by active regime
- Overbought threshold line (negative color) and oversold threshold line (positive color) in the panel
- Dynamic overbought price band projected on the price chart (negative color, linewidth 3)
- Dynamic oversold price band projected on the price chart (positive color, linewidth 3)
- Background highlight on the price chart when price breaches either band
Inputs 🎛️
- `Oversold Value (Z-Score)`: lower threshold defining the accumulation extreme (default −0.2)
- `Overbought Value (Z-Score)`: upper threshold defining the distribution extreme (default 6.0)
- `Background Transparency`: opacity of the price chart background highlight when a band is breached (default 50)
Colors 🎨
5 Astral Vision presets + custom override. Default: Paradiso. Positive color applies at oversold extremes; negative color applies at overbought extremes.
Purpose 🎯
Standard MVRV Z-Score implementations display only the oscillator panel, requiring the trader to mentally translate Z-Score levels back to price, a calculation that changes every day as Realized Cap evolves. Threshold lines in the panel are static and offer no direct price context.
This indicator closes that gap entirely. The Z-Score thresholds are continuously inverted to their equivalent price levels and projected as live bands on the chart, so the distance between current price and each extreme is always immediately readable without any mental conversion. As Realized Cap grows with each market cycle, the bands self-adjust upward, reflecting the structural elevation of Bitcoin's cost basis over time and keeping the signal relevant across every cycle without any manual recalibration.
Disclaimer ⭕️
It is not financial advice, not an investment recommendation, and not affiliated with any financial institution, research firm, or organization of any kind. All content is provided for educational and informational purposes only. Always conduct your own research before making any financial decision.
Script open-source
Nello spirito di TradingView, l'autore di questo script lo ha reso open source, in modo che i trader possano esaminarne e verificarne la funzionalità. Complimenti all'autore! Sebbene sia possibile utilizzarlo gratuitamente, ricordiamo che la ripubblicazione del codice è soggetta al nostro Regolamento.
My premium indicators are available on Whop:
whop.com/astralvision
Astral Vision 🌠💠
whop.com/astralvision
Astral Vision 🌠💠
Declinazione di responsabilità
Le informazioni e le pubblicazioni non sono intese come, e non costituiscono, consulenza o raccomandazioni finanziarie, di investimento, di trading o di altro tipo fornite o approvate da TradingView. Per ulteriori informazioni, consultare i Termini di utilizzo.
Script open-source
Nello spirito di TradingView, l'autore di questo script lo ha reso open source, in modo che i trader possano esaminarne e verificarne la funzionalità. Complimenti all'autore! Sebbene sia possibile utilizzarlo gratuitamente, ricordiamo che la ripubblicazione del codice è soggetta al nostro Regolamento.
My premium indicators are available on Whop:
whop.com/astralvision
Astral Vision 🌠💠
whop.com/astralvision
Astral Vision 🌠💠
Declinazione di responsabilità
Le informazioni e le pubblicazioni non sono intese come, e non costituiscono, consulenza o raccomandazioni finanziarie, di investimento, di trading o di altro tipo fornite o approvate da TradingView. Per ulteriori informazioni, consultare i Termini di utilizzo.