OPEN-SOURCE SCRIPT
On-chain Zscore | QuantumResearch

QuantumResearch On-chain Zscore Indicator
The On-chain Zscore Indicator by QuantumResearch is a cutting-edge tool designed for traders and analysts who leverage on-chain metrics to assess Bitcoinโs market conditions. This indicator calculates a composite Z-score using three key on-chain metrics: NUPL (Net Unrealized Profit/Loss), SOPR (Spent Output Profit Ratio), and MVRV (Market Value to Realized Value). By normalizing these values through standard deviations, the indicator provides a dynamic, data-driven approach to identifying overbought and oversold conditions, improving market timing and decision-making.
1. Overview
This indicator integrates multiple on-chain metrics to:


2. How It Works
A. Z-score Calculation
B. On-Chain Components
C. Composite On-chain Score
3. Visual Representation
This indicator features color-coded elements and dynamic threshold visualization:
4. Customization & Parameters
This indicator is highly configurable, allowing traders to fine-tune settings based on their strategy:
5. Trading Applications
The On-chain Zscore Indicator is versatile and can be applied in various market scenarios:
6. Final Thoughts
The On-chain Zscore Indicator by QuantumResearch is a cutting-edge tool designed for traders and analysts who leverage on-chain metrics to assess Bitcoinโs market conditions. This indicator calculates a composite Z-score using three key on-chain metrics: NUPL (Net Unrealized Profit/Loss), SOPR (Spent Output Profit Ratio), and MVRV (Market Value to Realized Value). By normalizing these values through standard deviations, the indicator provides a dynamic, data-driven approach to identifying overbought and oversold conditions, improving market timing and decision-making.
1. Overview
This indicator integrates multiple on-chain metrics to:
- Assess Market Cycles โ Utilize Z-score normalization to detect potential tops and bottoms.
- Smooth Volatility โ Apply EMA and standard deviation filtering to refine signals.
- Identify Buy & Sell Signals โ Use adaptive thresholds to highlight market extremes.
- Provide Visual Clarity โ Color-coded bar signals and background fills for intuitive analysis.
2. How It Works
A. Z-score Calculation
- What is a Z-score? โ The Z-score measures how far a data point deviates from its historical mean in terms of standard deviations. This helps in identifying statistical extremes.
Pine Scriptยฎ Zscore(source,mean,std)=> zscore = (source-mean)/std zscore - Standard Deviation Normalization โ Each on-chain metric (NUPL, SOPR, MVRV) is individually standardized before being combined into a final score.
B. On-Chain Components
- NUPL Z-score โ Measures unrealized profits and losses relative to market cycles.
- SOPR Z-score โ Evaluates profit-taking behavior on spent outputs.
- MVRV Z-score โ Assesses whether Bitcoin is overvalued or undervalued based on market cap vs. realized cap.
C. Composite On-chain Score
- The indicator computes an average Z-score of the three on-chain metrics to create a composite market assessment.
- Adaptive thresholds (default: 0.73 for bullish signals, -0.44 for bearish signals) dynamically adjust based on market conditions.
3. Visual Representation
This indicator features color-coded elements and dynamic threshold visualization:
- Bar Colors
Green Bars โ Bullish conditions when Z-score exceeds the upper threshold.
Red Bars โ Bearish conditions when Z-score drops below the lower threshold.
Gray Bars โ Neutral market conditions. - Threshold Bands & Background Fill
- Upper Band (Overbought) โ Default threshold set at 0.73.
- Middle Band โ Neutral zone at 0.
- Lower Band (Oversold) โ Default threshold set at -0.44.
- Upper Band (Overbought) โ Default threshold set at 0.73.
4. Customization & Parameters
This indicator is highly configurable, allowing traders to fine-tune settings based on their strategy:
- On-Chain Z-score Settings
- NUPL Z-score Length โ Default: 126 periods
- SOPR Z-score Length โ Default: 111 periods
- MVRV Z-score Length โ Default: 111 periods
Signal Thresholds- Upper Threshold (Bullish Zone) โ Default: 0.73
- Lower Threshold (Bearish Zone) โ Default: -0.44
Color & Visual Settings- Choose from eight customizable color modes to suit personal preferences.
- NUPL Z-score Length โ Default: 126 periods
5. Trading Applications
The On-chain Zscore Indicator is versatile and can be applied in various market scenarios:
- Macro Trend Analysis โ Identify long-term market tops and bottoms using normalized on-chain metrics.
- Momentum Confirmation โ Validate price action trends with SOPR & MVRV behavior.
- Market Timing โ Use deviation thresholds to enter at historically significant price zones.
- Risk Management โ Avoid overextended markets by watching for extreme Z-score readings.
6. Final Thoughts
- The QuantumResearch On-chain Zscore Indicator provides a unique approach to market evaluation by combining three critical on-chain metrics into a single, normalized score.
- By standardizing Bitcoinโs market behavior, this tool helps traders and investors make informed decisions based on historical statistical extremes.
- Backtesting and validation are essential before using this indicator in live trading. While it enhances market analysis, it should be used alongside other tools and strategies.
- Disclaimer: No indicator can guarantee future performance. Always use appropriate risk management and perform due diligence before trading.
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.
๐ Gain access to our cutting-edge tools:
whop.com/quantum-whop/
โ๏ธ Get access to our toolbox here for free:
quantumresearchportfolio.carrd.co
All tools and content provided are for informational and educational purposes only.
whop.com/quantum-whop/
โ๏ธ Get access to our toolbox here for free:
quantumresearchportfolio.carrd.co
All tools and content provided are for informational and educational purposes only.
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.
๐ Gain access to our cutting-edge tools:
whop.com/quantum-whop/
โ๏ธ Get access to our toolbox here for free:
quantumresearchportfolio.carrd.co
All tools and content provided are for informational and educational purposes only.
whop.com/quantum-whop/
โ๏ธ Get access to our toolbox here for free:
quantumresearchportfolio.carrd.co
All tools and content provided are for informational and educational purposes only.
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.