OPEN-SOURCE SCRIPT
Smart Trader, Episode 04, by Ata Sabanci, Candles and Z Scores

Smart Trader, Episode 04
Candles and Z-Scores: A Statistical Approach to Market Analysis
โโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโ
OVERVIEW
This indicator applies Z-Score statistical analysis to measure how unusual current market conditions are compared to historical norms. It simultaneously analyzes five key metrics: Price, Total Volume, Buy Volume, Sell Volume, and Delta (Buy minus Sell). The system detects 60 academically-researched market scenarios and provides visual feedback through Z-Lines (support/resistance levels), Event Markers, Trend Channels, and a comprehensive Dashboard.
โโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโ
CORE CONCEPT: WHY Z-SCORE?
A Z-Score measures how many standard deviations a value is from its mean. In financial markets, extreme Z-Scores indicate statistically rare events that often precede significant price movements.
Mathematical Formula:
Z = (Current Value - Mean) / Standard Deviation
Interpretation:
โข Z โฅ +2.0: Extremely high (occurs approximately 2.5% of the time)
โข Z โฅ +1.0: Above average
โข Z โ 0: Normal (near the mean)
โข Z โค -1.0: Below average
โข Z โค -2.0: Extremely low (occurs approximately 2.5% of the time)
โโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโ
ACADEMIC FOUNDATION
This indicator is inspired by / grounded in market microstructure literature (abbreviated citations in-script) from market microstructure literature:
โข Price-Volume Relationship - Karpoff (1987), Journal of Financial and Quantitative Analysis, Cambridge
Volume is positively correlated with price change magnitude
โข Order Flow Imbalance - Cont, Kukanov, Stoikov (2014), Journal of Financial Econometrics
Order imbalance drives price more reliably than raw volume
โข Informed Trading (PIN Model) - Easley, Kiefer, O'Hara, Paperman (1996), Journal of Finance
Buy/Sell imbalance reveals informed trader activity
โข Mixture of Distributions - Tauchen & Pitts (1983), Clark (1973)
Volume clusters with volatility regimes
โข Volume Predictability - Gervais, Kaniel, Mingelgrin (2001)
Volume shocks predict future returns
โข Liquidity & Order Imbalance - Chordia, Roll, Subrahmanyam (2002)
Order imbalance affects short-term returns
โข Volume-Return Dynamics - Llorente, Michaely, Saar, Wang (2002)
Speculation vs. risk-sharing patterns
โข Reversal vs. Continuation - Campbell, Grossman, Wang (MIT)
High volume predicts lower autocorrelation
โโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโ
VOLUME ENGINE
The indicator offers two methods for decomposing total volume into Buy and Sell components:
Method 1: Geometry (Approximation)
Uses candle structure to estimate buying and selling pressure:
Buy Volume = Total Volume ร (Close - Low) / (High - Low)
Sell Volume = Total Volume ร (High - Close) / (High - Low)
โข Works on all instruments without additional data requirements
โข Fast calculation
โข Less precise than intrabar method
Method 2: Intrabar (Precise)
Uses Lower Timeframe (LTF) tick/second data to aggregate actual up-ticks versus down-ticks:
โข More accurate volume decomposition
โข Requires LTF data availability
โข Configurable LTF: 1T (tick), 1S, 15S, 1M
Delta Calculation:
Delta = Buy Volume - Sell Volume
โโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโ
Z-SCORE SYSTEM
The system calculates Z-Scores for five metrics simultaneously, using a configurable lookback period (default: 20 bars):
โข Zp (Price Z-Score): Measures price deviation from its mean
โข Zv (Volume Z-Score): Measures total volume deviation
โข Zbuy (Buy Volume Z-Score): Measures buying pressure deviation
โข Zsell (Sell Volume Z-Score): Measures selling pressure deviation
โข Zฮ (Delta Z-Score): Measures order flow imbalance deviation
Threshold Constants:
โข ZH (Z High) = 2.0: Extreme threshold
โข ZM (Z Medium) = 1.0: Moderate threshold
โข Z0 (Z Zero) = 0.5: Near-zero threshold
Group System:
The analysis window is divided into groups (default: 5 groups ร 20 bars = 100 bar total window). Group numbers (1, 2, 3...) are displayed above candles when enabled, helping identify the relative age of detected levels.
โโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโ
Z-LINES (SUPPORT/RESISTANCE LEVELS)
When any metric reaches an extreme Z-Score, the system marks that price level as a significant support or resistance zone.
Detection Logic:
โข Upper Z-Line: Drawn from the HIGH when Z โฅ upper threshold (default +2.0)
โข Lower Z-Line: Drawn from the LOW when Z โค lower threshold (default -2.0)
Multi-Metric Detection:
Z-Lines can be triggered by any of the five metrics (Price, Volume, Buy, Sell, Delta). When multiple metrics trigger at similar price levels, they are clustered together into a single combined label showing all contributing metrics.
Persistence:
Z-Lines persist for the entire analysis window (Period ร Groups bars) and are NOT removed when price touches them. This allows traders to see historical support/resistance levels that may still be relevant.
Anti-Overlap System:
Labels are automatically repositioned to prevent overlap. The "Label Min Gap (%)" setting controls minimum vertical separation between ALL labels (both upper and lower), ensuring readability even when multiple levels cluster together.
โโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโ
EVENT DETECTION ENGINE (60 SCENARIOS)
The system analyzes 60 distinct market scenarios based on Z-Score combinations. Each scenario is derived from academic research and assigned a confidence score based on signal strength and alignment.
Notation:
โข Zp = Price Z-Score
โข Zv = Total Volume Z-Score
โข Zbuy = Buy Volume Z-Score
โข Zsell = Sell Volume Z-Score
โข Zฮ = Delta Z-Score
โข dirP = Price direction (+1 if Zp > 0.5, -1 if Zp < -0.5, else 0)
โข [1] = Previous bar value
โข ZH = 2.0 (High threshold)
โข ZM = 1.0 (Medium threshold)
โข Z0 = 0.5 (Zero threshold)
โโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโ
CATEGORY A: PRICE-VOLUME (Events 1-10)
Based on: Karpoff (1987), Tauchen-Pitts (1983), Clark (1973)
โโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโ
Event 1: Breakout Confirmed
|Zp| โฅ ZH AND Zv โฅ ZH AND sign(Zฮ) = dirP AND dirP โ 0
Direction: Bullish/Bearish (follows price direction)
Event 2: Trend Strength Confirmed
|Zp| โฅ ZH AND Zv โฅ ZH
Direction: Follows price direction
Event 3: Fragile Move
|Zp| โฅ ZH AND Zv โค -ZM
Direction: Warning (price move without volume support)
Event 4: Weak Rally
Zp โฅ ZH AND Zv โค -ZH
Direction: Warning (price up without volume)
Event 5: Weak Selloff
Zp โค -ZH AND Zv โค -ZH
Direction: Warning (price down without volume)
Event 6: Momentum Build
ZM โค |Zp| < ZH AND Zv โฅ ZH
Direction: Follows price direction
Event 7: Churn
|Zp| โค Z0 AND Zv โฅ ZH
Direction: Neutral (high volume, low price movement)
Event 8: Quiet Compression
|Zp| โค Z0 AND Zv โค -ZH
Direction: Neutral (low volume, low price movement)
Event 9: High Volume Regime
Zv โฅ ZH
Direction: Neutral
Event 10: Low Volume Regime
Zv โค -ZH
Direction: Neutral
โโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโ
CATEGORY B: ORDER-FLOW / DELTA (Events 11-16)
Based on: Cont, Kukanov, Stoikov (2014), Easley, Kiefer, O'Hara, Paperman (1996)
โโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโ
Event 11: Imbalance Drives Price
|Zฮ| โฅ ZH AND sign(Zฮ) = dirP AND dirP โ 0
Direction: Follows price direction (dirP), with delta alignment required
Event 12: Divergence Top
Zp โฅ ZH AND Zฮ โค -ZH
Direction: Warning (distribution at top)
Event 13: Divergence Bottom
Zp โค -ZH AND Zฮ โฅ ZH
Direction: Warning (accumulation at bottom)
Event 14: Absorption Positive
|Zp| โค Z0 AND Zv โฅ ZH AND Zฮ โฅ ZH
Direction: Bullish (buy absorption, support forming)
Event 15: Absorption Negative
|Zp| โค Z0 AND Zv โฅ ZH AND Zฮ โค -ZH
Direction: Bearish (sell absorption, resistance forming)
Event 16: Depth Wall
Zv โฅ ZH AND |Zฮ| โฅ ZH AND |Zp| โค Z0
Direction: Neutral (market depth absorbing)
โโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโ
CATEGORY C: BUY VS SELL (Events 17-23)
Based on: Easley, Kiefer, O'Hara, Paperman (1996), Chordia, Roll, Subrahmanyam (2002)
โโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโ
Event 17: Aggressive Buy Dominance
Zbuy โฅ ZH AND Zฮ โฅ ZH AND Zsell โค -ZM
Direction: Bullish
Event 18: Aggressive Sell Dominance
Zsell โฅ ZH AND Zฮ โค -ZH AND Zbuy โค -ZM
Direction: Bearish
Event 19: Two-Sided Battle
Zbuy โฅ ZH AND Zsell โฅ ZH AND |Zฮ| โค Z0
Direction: Neutral (buyers and sellers equally strong)
Event 20: Battle with Buy Edge
Zbuy โฅ ZH AND Zsell โฅ ZH AND ZM โค Zฮ < ZH
Direction: Bullish
Event 21: Battle with Sell Edge
Zbuy โฅ ZH AND Zsell โฅ ZH AND -ZH < Zฮ โค -ZM
Direction: Bearish
Event 22: Hidden Accumulation
Zbuy โฅ ZH AND |Zp| โค Z0 AND Zv โฅ ZH
Direction: Bullish (buy shock without price movement)
Event 23: Hidden Distribution
Zsell โฅ ZH AND |Zp| โค Z0 AND Zv โฅ ZH
Direction: Bearish (sell shock without price movement)
โโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโ
CATEGORY D: PREDICTABILITY (Events 24-26)
Based on: Gervais, Kaniel, Mingelgrin (2001), Karpoff (1987)
โโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโ
Event 24: Volume Shock Positive Drift
Zv โฅ ZH AND |Zp| โค ZM
Direction: Follows price direction
Event 25: Volume Shock Negative Drift
Zv โค -ZH AND |Zp| โค ZM
Direction: Opposite to price direction
Event 26: Abnormal Volume Info Arrival
Zv โฅ ZH
Direction: Neutral
โโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโ
CATEGORY E: REVERSAL VS CONTINUATION (Events 27-30)
Based on: Campbell, Grossman, Wang (MIT), Llorente, Michaely, Saar, Wang (2002)
โโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโ
Event 27: High Vol Reversal Risk
Zv โฅ ZH
Direction: Warning (high volume implies lower positive autocorrelation)
Event 28: Low Vol Continuation Risk
Zv โค -ZH
Direction: Follows price direction (trend likely continues)
Event 29: Speculation Continuation
Zv โฅ ZH AND |Zฮ| โฅ ZM AND sign(Zฮ) = dirP AND dirP โ 0
Direction: Follows price direction
Event 30: Risk Sharing Reversal
Zv โฅ ZH AND |Zฮ| โค Z0
Direction: Warning (potential reversal)
โโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโ
CATEGORY F: IMBALANCE LAG (Events 31-33)
Based on: Chordia, Roll, Subrahmanyam (2002)
โโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโ
Event 31: Persistent Imbalance Push
|Zฮ| โฅ ZM AND |Zฮ[1]| โฅ ZM AND sign(Zฮ) = sign(Zฮ[1])
Direction: Follows delta direction (persistent pressure)
Event 32: Imbalance Pressure Decay
(Zฮ[1] โฅ ZM AND Zฮ โค -ZM) OR (Zฮ[1] โค -ZM AND Zฮ โฅ ZM)
Direction: Warning (imbalance sign flip)
Event 33: Intraday Imbalance Predicts
|Zฮ| โฅ ZM
Direction: Follows delta direction
โโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโ
CATEGORY G: SUPPORT/RESISTANCE (Events 34-36)
Based on: Peskir (Manchester)
โโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโ
Event 34: SR Barrier Event
|Zp| โค Z0 AND Zv โฅ ZH
Direction: Neutral (price stalls with high volume)
Event 35: Volume Backed SR Level
|Zp| โค Z0 AND Zv โฅ ZH AND |Zฮ| โฅ ZM
Direction: Follows delta direction
Event 36: Volume Poor SR Level
|Zp| โค Z0 AND Zv โค -ZM
Direction: Warning (weak S/R without volume)
โโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโ
CATEGORY H: EXTENDED ANALYSIS (Events 37-50)
Based on: Extended market microstructure analysis
โโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโ
Event 37: Climax Buy
Zbuy โฅ ZH AND Zp โฅ ZH AND Zv โฅ ZH
Direction: Warning (extreme buying exhaustion, potential top)
Event 38: Climax Sell
Zsell โฅ ZH AND Zp โค -ZH AND Zv โฅ ZH
Direction: Warning (extreme selling exhaustion, potential bottom)
Event 39: Stealth Accumulation
Zbuy โฅ ZM AND |Zp| โค Z0 AND Zv โค Z0
Direction: Bullish (quiet buying)
Event 40: Stealth Distribution
Zsell โฅ ZM AND |Zp| โค Z0 AND Zv โค Z0
Direction: Bearish (quiet selling)
Event 41: Volume Divergence Bull
Zp โค -ZM AND Zv โค -ZM
Direction: Bullish (price down but volume declining)
Event 42: Volume Divergence Bear
Zp โฅ ZM AND Zv โค -ZM
Direction: Bearish (price up but volume declining)
Event 43: Delta Price Alignment
|Zp| โฅ ZM AND |Zฮ| โฅ ZM AND sign(Zp) = sign(Zฮ)
Direction: Follows price direction (strong trend confirmation)
Event 44: Extreme Compression
|Zp| โค Z0 AND Zv โค -ZH
Direction: Neutral (very low volatility)
Event 45: Volatility Expansion
|Zp| โฅ ZH AND Zv โฅ ZH
Direction: Follows price direction (breakout from compression)
Event 46: Buy Exhaustion
Zbuy โฅ ZH AND Zp โค Z0
Direction: Warning (high buy but price fails)
Event 47: Sell Exhaustion
Zsell โฅ ZH AND Zp โฅ -Z0
Direction: Warning (high sell but price holds)
Event 48: Trend Acceleration
|Zp| โฅ ZM AND |Zp| > |Zp[1]| AND Zv โฅ ZM
Direction: Follows price direction (increasing momentum)
Event 49: Trend Deceleration
|Zp| โฅ ZM AND |Zp| < |Zp[1]| AND sign(Zp) = sign(Zp[1])
Direction: Warning (decreasing momentum)
Event 50: Multi Divergence
(Zp โฅ ZM AND Zฮ โค -ZM) OR (Zp โค -ZM AND Zฮ โฅ ZM) + |Zp| โฅ ZM AND Zv โค -ZM
Direction: Warning (multiple divergence signals)
โโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโ
CATEGORY I: TREND-INTEGRATED (Events 51-60)
Based on: Combined price-volume-delta trend analysis
โโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโ
Event 51: Trend Breakout Confirmed
|Zp| โฅ ZH AND Zv โฅ ZH AND |Zฮ| โฅ ZM AND sign(Zฮ) = dirP AND dirP โ 0
Direction: Follows price direction
Event 52: Trend Support Test
Zp[1] โฅ ZM AND Z0 โค Zp < ZM AND Zฮ โฅ Z0
Direction: Bullish (pullback in uptrend)
Event 53: Trend Resistance Test
Zp[1] โค -ZM AND -ZM < Zp โค -Z0 AND Zฮ โค -Z0
Direction: Bearish (rally in downtrend)
Event 54: Trend Reversal Signal
sign(Zp) โ sign(Zp[1]) AND |Zp| โฅ ZM AND |Zp[1]| โฅ ZM
Direction: Follows new price direction (momentum flip)
Event 55: Channel Absorption
|Zp| โค Z0 AND Zv โฅ ZH
Direction: Neutral (range-bound with volume)
Event 56: Trend Continuation Volume
|Zp| โฅ ZM AND Zv โฅ ZM AND sign(Zฮ) = dirP AND dirP โ 0
Direction: Follows price direction (healthy trend with volume)
Event 57: Trend Exhaustion
|Zp| โฅ ZM AND Zv โค -ZM AND |Zp| < |Zp[1]|
Direction: Warning (trend losing steam)
Event 58: Range Breakout Pending
|Zp| โค Z0 AND Zv โค -ZH AND |Zฮ| โฅ ZM
Direction: Follows delta direction (compression with imbalance)
Event 59: Trend Quality High
|Zp| โฅ ZM AND sign(Zฮ) = dirP AND Zv โฅ Z0 AND dirP โ 0
Direction: Follows price direction (strong aligned signals)
Event 60: Trend Quality Low
|Zp| โฅ ZM AND sign(Zฮ) โ dirP AND dirP โ 0
Direction: Warning (conflicting signals)
โโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโ
TREND CHANNEL SYSTEM
The trend channel system is adapted from Smart Trader Episode 03 to provide consistent visual context for price action analysis.
How It Works:
โข Divides the chart into blocks based on Z-Score groups
โข Calculates OHLC (Open, High, Low, Close) for each block
โข Detects Higher Highs/Higher Lows (uptrend) or Lower Highs/Lower Lows (downtrend) patterns
โข Draws channel lines connecting block extremes
โข Classifies by angle: steep angles indicate trends, flat angles indicate ranges
Channel Classifications:
โข UPTREND: Higher highs and higher lows detected
โข DOWNTREND: Lower highs and lower lows detected
โข RANGE: Channel angle below threshold (default 10 degrees)
Label Information:
โข Trend direction (UPTREND/DOWNTREND/RANGE)
โข Channel boundary prices
โข Distance from current price (absolute and percentage)
โข Channel angle in degrees
โโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโ
DASHBOARD
The dashboard provides a comprehensive real-time view of all Z-Score metrics and detected events.
Dashboard Sections:
1. Header Row
Displays indicator name and current calculation mode (CLOSED or LIVE).
2. Metric Rows (Price, Total Volume, Buy Volume, Sell Volume, Delta)
Each row displays:
โข Value: Current metric value
โข Z: Calculated Z-Score
โข Visual: Graphical Z-bar showing position relative to mean
โข Status: Interpretation (Extreme High, Above Avg, Normal, Below Avg, Extreme Low)
โข Upper: Oldest active upper Z-Line in window (Label Mirror)
โข Lower: Oldest active lower Z-Line in window (Label Mirror)
3. Event Detection Section
โข Count of triggered events out of 60 total scenarios
โข Market Bias: Bull/Bear/Neutral percentage with visual bar
โข Strongest Event: Highest confidence event currently triggered
โข #2 Event: Second highest confidence event
4. Footer
Shows engine type (Geometry/Intrabar), Z-Score period, calculation basis, and number of valid bars.
โโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโ
ALERT SYSTEM
The indicator uses native alertcondition() functions, keeping the settings menu clean while providing comprehensive alert options in TradingView's alert dialog.
Available Alert Categories:
โข Master Alerts: Any event, Any bullish, Any bearish, Any warning
โข Single Event Alerts: Individual alerts for key events (Breakout, Climax, Divergence, etc.)
โข Category Alerts: Alerts by event category (Price-Volume, Order-Flow, etc.)
โข Confluence Alerts: 2+, 3+, 4+, or 5+ aligned events
โข Bias Shift Alerts: 10%, 20%, or 30% shifts in market bias
โข High Confidence Alerts: Events with 60%+, 70%+, 80%+, or 90%+ confidence
โข Divergence Alerts: Price vs Volume or Price vs Delta divergences
โโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโ
DATA ACCURACY AND LIMITATIONS
This indicator is 100% VOLUME-BASED and requires Lower Timeframe (LTF) intrabar data for accurate calculations when using the Intrabar method.
Data Accuracy Levels:
โข 1T (Tick): Most accurate, real volume distribution per tick
โข 1S (1 Second): Reasonably accurate approximation
โข 15S (15 Seconds): Good approximation, longer historical data available
โข 1M (1 Minute): Rough approximation, maximum historical data range
Backtest and Replay Limitations:
โข Replay mode results may differ from live trading due to data availability
โข For longer backtest periods, use higher LTF settings (15S or 1M)
โข Not all symbols/exchanges support tick-level data
โข Crypto and Forex typically have better LTF data availability than stocks
A Note on Data Access:
Higher TradingView plans provide access to more historical intrabar data, which directly impacts the accuracy of volume-based calculations. More precise volume data leads to more reliable calculations.
โโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโ
LANGUAGE SUPPORT (TRI-LINGUAL UI)
This indicator includes a built-in language switch with three interface languages:
โข English (EN)
โข Tรผrkรงe (TR)
โข ํ๊ตญ์ด (KO)
The selected language updates key interface text such as the Dashboard headers/rows, tooltips, and the Event Engine outputs (event names, category names, and direction labels). Turkish diacritics and Korean Hangul are supported for clean, native readability.
Why only three languages?
Each additional language requires duplicating strings throughout the code, which increases script size/memory usage and compilation time. To keep the indicator optimized and responsive, language options are intentionally limited to three.
โโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโ
โ ๏ธ DISCLAIMER
FOR EDUCATIONAL AND RESEARCH PURPOSES ONLY
This indicator is designed as an educational and research tool based on academic market microstructure literature. It is NOT financial advice and should NOT be used as the sole basis for trading decisions.
Important Notices:
โข Past performance does not guarantee future results
โข All trading involves risk of substantial loss
โข The indicator's signals are statistical probabilities, not certainties
โข Always conduct your own research and consult qualified financial advisors
โข The creator assumes no responsibility for trading losses
Research Sources:
This indicator is built upon peer-reviewed academic research from:
โข Journal of Financial and Quantitative Analysis (Cambridge University Press)
โข Journal of Finance
โข Journal of Financial Econometrics
โข MIT Working Papers
โข arXiv Financial Mathematics
Candles and Z-Scores: A Statistical Approach to Market Analysis
โโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโ
OVERVIEW
This indicator applies Z-Score statistical analysis to measure how unusual current market conditions are compared to historical norms. It simultaneously analyzes five key metrics: Price, Total Volume, Buy Volume, Sell Volume, and Delta (Buy minus Sell). The system detects 60 academically-researched market scenarios and provides visual feedback through Z-Lines (support/resistance levels), Event Markers, Trend Channels, and a comprehensive Dashboard.
โโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโ
CORE CONCEPT: WHY Z-SCORE?
A Z-Score measures how many standard deviations a value is from its mean. In financial markets, extreme Z-Scores indicate statistically rare events that often precede significant price movements.
Mathematical Formula:
Z = (Current Value - Mean) / Standard Deviation
Interpretation:
โข Z โฅ +2.0: Extremely high (occurs approximately 2.5% of the time)
โข Z โฅ +1.0: Above average
โข Z โ 0: Normal (near the mean)
โข Z โค -1.0: Below average
โข Z โค -2.0: Extremely low (occurs approximately 2.5% of the time)
โโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโ
ACADEMIC FOUNDATION
This indicator is inspired by / grounded in market microstructure literature (abbreviated citations in-script) from market microstructure literature:
โข Price-Volume Relationship - Karpoff (1987), Journal of Financial and Quantitative Analysis, Cambridge
Volume is positively correlated with price change magnitude
โข Order Flow Imbalance - Cont, Kukanov, Stoikov (2014), Journal of Financial Econometrics
Order imbalance drives price more reliably than raw volume
โข Informed Trading (PIN Model) - Easley, Kiefer, O'Hara, Paperman (1996), Journal of Finance
Buy/Sell imbalance reveals informed trader activity
โข Mixture of Distributions - Tauchen & Pitts (1983), Clark (1973)
Volume clusters with volatility regimes
โข Volume Predictability - Gervais, Kaniel, Mingelgrin (2001)
Volume shocks predict future returns
โข Liquidity & Order Imbalance - Chordia, Roll, Subrahmanyam (2002)
Order imbalance affects short-term returns
โข Volume-Return Dynamics - Llorente, Michaely, Saar, Wang (2002)
Speculation vs. risk-sharing patterns
โข Reversal vs. Continuation - Campbell, Grossman, Wang (MIT)
High volume predicts lower autocorrelation
โโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโ
VOLUME ENGINE
The indicator offers two methods for decomposing total volume into Buy and Sell components:
Method 1: Geometry (Approximation)
Uses candle structure to estimate buying and selling pressure:
Buy Volume = Total Volume ร (Close - Low) / (High - Low)
Sell Volume = Total Volume ร (High - Close) / (High - Low)
โข Works on all instruments without additional data requirements
โข Fast calculation
โข Less precise than intrabar method
Method 2: Intrabar (Precise)
Uses Lower Timeframe (LTF) tick/second data to aggregate actual up-ticks versus down-ticks:
โข More accurate volume decomposition
โข Requires LTF data availability
โข Configurable LTF: 1T (tick), 1S, 15S, 1M
Delta Calculation:
Delta = Buy Volume - Sell Volume
โโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโ
Z-SCORE SYSTEM
The system calculates Z-Scores for five metrics simultaneously, using a configurable lookback period (default: 20 bars):
โข Zp (Price Z-Score): Measures price deviation from its mean
โข Zv (Volume Z-Score): Measures total volume deviation
โข Zbuy (Buy Volume Z-Score): Measures buying pressure deviation
โข Zsell (Sell Volume Z-Score): Measures selling pressure deviation
โข Zฮ (Delta Z-Score): Measures order flow imbalance deviation
Threshold Constants:
โข ZH (Z High) = 2.0: Extreme threshold
โข ZM (Z Medium) = 1.0: Moderate threshold
โข Z0 (Z Zero) = 0.5: Near-zero threshold
Group System:
The analysis window is divided into groups (default: 5 groups ร 20 bars = 100 bar total window). Group numbers (1, 2, 3...) are displayed above candles when enabled, helping identify the relative age of detected levels.
โโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโ
Z-LINES (SUPPORT/RESISTANCE LEVELS)
When any metric reaches an extreme Z-Score, the system marks that price level as a significant support or resistance zone.
Detection Logic:
โข Upper Z-Line: Drawn from the HIGH when Z โฅ upper threshold (default +2.0)
โข Lower Z-Line: Drawn from the LOW when Z โค lower threshold (default -2.0)
Multi-Metric Detection:
Z-Lines can be triggered by any of the five metrics (Price, Volume, Buy, Sell, Delta). When multiple metrics trigger at similar price levels, they are clustered together into a single combined label showing all contributing metrics.
Persistence:
Z-Lines persist for the entire analysis window (Period ร Groups bars) and are NOT removed when price touches them. This allows traders to see historical support/resistance levels that may still be relevant.
Anti-Overlap System:
Labels are automatically repositioned to prevent overlap. The "Label Min Gap (%)" setting controls minimum vertical separation between ALL labels (both upper and lower), ensuring readability even when multiple levels cluster together.
โโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโ
EVENT DETECTION ENGINE (60 SCENARIOS)
The system analyzes 60 distinct market scenarios based on Z-Score combinations. Each scenario is derived from academic research and assigned a confidence score based on signal strength and alignment.
Notation:
โข Zp = Price Z-Score
โข Zv = Total Volume Z-Score
โข Zbuy = Buy Volume Z-Score
โข Zsell = Sell Volume Z-Score
โข Zฮ = Delta Z-Score
โข dirP = Price direction (+1 if Zp > 0.5, -1 if Zp < -0.5, else 0)
โข [1] = Previous bar value
โข ZH = 2.0 (High threshold)
โข ZM = 1.0 (Medium threshold)
โข Z0 = 0.5 (Zero threshold)
โโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโ
CATEGORY A: PRICE-VOLUME (Events 1-10)
Based on: Karpoff (1987), Tauchen-Pitts (1983), Clark (1973)
โโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโ
Event 1: Breakout Confirmed
|Zp| โฅ ZH AND Zv โฅ ZH AND sign(Zฮ) = dirP AND dirP โ 0
Direction: Bullish/Bearish (follows price direction)
Event 2: Trend Strength Confirmed
|Zp| โฅ ZH AND Zv โฅ ZH
Direction: Follows price direction
Event 3: Fragile Move
|Zp| โฅ ZH AND Zv โค -ZM
Direction: Warning (price move without volume support)
Event 4: Weak Rally
Zp โฅ ZH AND Zv โค -ZH
Direction: Warning (price up without volume)
Event 5: Weak Selloff
Zp โค -ZH AND Zv โค -ZH
Direction: Warning (price down without volume)
Event 6: Momentum Build
ZM โค |Zp| < ZH AND Zv โฅ ZH
Direction: Follows price direction
Event 7: Churn
|Zp| โค Z0 AND Zv โฅ ZH
Direction: Neutral (high volume, low price movement)
Event 8: Quiet Compression
|Zp| โค Z0 AND Zv โค -ZH
Direction: Neutral (low volume, low price movement)
Event 9: High Volume Regime
Zv โฅ ZH
Direction: Neutral
Event 10: Low Volume Regime
Zv โค -ZH
Direction: Neutral
โโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโ
CATEGORY B: ORDER-FLOW / DELTA (Events 11-16)
Based on: Cont, Kukanov, Stoikov (2014), Easley, Kiefer, O'Hara, Paperman (1996)
โโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโ
Event 11: Imbalance Drives Price
|Zฮ| โฅ ZH AND sign(Zฮ) = dirP AND dirP โ 0
Direction: Follows price direction (dirP), with delta alignment required
Event 12: Divergence Top
Zp โฅ ZH AND Zฮ โค -ZH
Direction: Warning (distribution at top)
Event 13: Divergence Bottom
Zp โค -ZH AND Zฮ โฅ ZH
Direction: Warning (accumulation at bottom)
Event 14: Absorption Positive
|Zp| โค Z0 AND Zv โฅ ZH AND Zฮ โฅ ZH
Direction: Bullish (buy absorption, support forming)
Event 15: Absorption Negative
|Zp| โค Z0 AND Zv โฅ ZH AND Zฮ โค -ZH
Direction: Bearish (sell absorption, resistance forming)
Event 16: Depth Wall
Zv โฅ ZH AND |Zฮ| โฅ ZH AND |Zp| โค Z0
Direction: Neutral (market depth absorbing)
โโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโ
CATEGORY C: BUY VS SELL (Events 17-23)
Based on: Easley, Kiefer, O'Hara, Paperman (1996), Chordia, Roll, Subrahmanyam (2002)
โโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโ
Event 17: Aggressive Buy Dominance
Zbuy โฅ ZH AND Zฮ โฅ ZH AND Zsell โค -ZM
Direction: Bullish
Event 18: Aggressive Sell Dominance
Zsell โฅ ZH AND Zฮ โค -ZH AND Zbuy โค -ZM
Direction: Bearish
Event 19: Two-Sided Battle
Zbuy โฅ ZH AND Zsell โฅ ZH AND |Zฮ| โค Z0
Direction: Neutral (buyers and sellers equally strong)
Event 20: Battle with Buy Edge
Zbuy โฅ ZH AND Zsell โฅ ZH AND ZM โค Zฮ < ZH
Direction: Bullish
Event 21: Battle with Sell Edge
Zbuy โฅ ZH AND Zsell โฅ ZH AND -ZH < Zฮ โค -ZM
Direction: Bearish
Event 22: Hidden Accumulation
Zbuy โฅ ZH AND |Zp| โค Z0 AND Zv โฅ ZH
Direction: Bullish (buy shock without price movement)
Event 23: Hidden Distribution
Zsell โฅ ZH AND |Zp| โค Z0 AND Zv โฅ ZH
Direction: Bearish (sell shock without price movement)
โโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโ
CATEGORY D: PREDICTABILITY (Events 24-26)
Based on: Gervais, Kaniel, Mingelgrin (2001), Karpoff (1987)
โโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโ
Event 24: Volume Shock Positive Drift
Zv โฅ ZH AND |Zp| โค ZM
Direction: Follows price direction
Event 25: Volume Shock Negative Drift
Zv โค -ZH AND |Zp| โค ZM
Direction: Opposite to price direction
Event 26: Abnormal Volume Info Arrival
Zv โฅ ZH
Direction: Neutral
โโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโ
CATEGORY E: REVERSAL VS CONTINUATION (Events 27-30)
Based on: Campbell, Grossman, Wang (MIT), Llorente, Michaely, Saar, Wang (2002)
โโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโ
Event 27: High Vol Reversal Risk
Zv โฅ ZH
Direction: Warning (high volume implies lower positive autocorrelation)
Event 28: Low Vol Continuation Risk
Zv โค -ZH
Direction: Follows price direction (trend likely continues)
Event 29: Speculation Continuation
Zv โฅ ZH AND |Zฮ| โฅ ZM AND sign(Zฮ) = dirP AND dirP โ 0
Direction: Follows price direction
Event 30: Risk Sharing Reversal
Zv โฅ ZH AND |Zฮ| โค Z0
Direction: Warning (potential reversal)
โโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโ
CATEGORY F: IMBALANCE LAG (Events 31-33)
Based on: Chordia, Roll, Subrahmanyam (2002)
โโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโ
Event 31: Persistent Imbalance Push
|Zฮ| โฅ ZM AND |Zฮ[1]| โฅ ZM AND sign(Zฮ) = sign(Zฮ[1])
Direction: Follows delta direction (persistent pressure)
Event 32: Imbalance Pressure Decay
(Zฮ[1] โฅ ZM AND Zฮ โค -ZM) OR (Zฮ[1] โค -ZM AND Zฮ โฅ ZM)
Direction: Warning (imbalance sign flip)
Event 33: Intraday Imbalance Predicts
|Zฮ| โฅ ZM
Direction: Follows delta direction
โโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโ
CATEGORY G: SUPPORT/RESISTANCE (Events 34-36)
Based on: Peskir (Manchester)
โโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโ
Event 34: SR Barrier Event
|Zp| โค Z0 AND Zv โฅ ZH
Direction: Neutral (price stalls with high volume)
Event 35: Volume Backed SR Level
|Zp| โค Z0 AND Zv โฅ ZH AND |Zฮ| โฅ ZM
Direction: Follows delta direction
Event 36: Volume Poor SR Level
|Zp| โค Z0 AND Zv โค -ZM
Direction: Warning (weak S/R without volume)
โโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโ
CATEGORY H: EXTENDED ANALYSIS (Events 37-50)
Based on: Extended market microstructure analysis
โโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโ
Event 37: Climax Buy
Zbuy โฅ ZH AND Zp โฅ ZH AND Zv โฅ ZH
Direction: Warning (extreme buying exhaustion, potential top)
Event 38: Climax Sell
Zsell โฅ ZH AND Zp โค -ZH AND Zv โฅ ZH
Direction: Warning (extreme selling exhaustion, potential bottom)
Event 39: Stealth Accumulation
Zbuy โฅ ZM AND |Zp| โค Z0 AND Zv โค Z0
Direction: Bullish (quiet buying)
Event 40: Stealth Distribution
Zsell โฅ ZM AND |Zp| โค Z0 AND Zv โค Z0
Direction: Bearish (quiet selling)
Event 41: Volume Divergence Bull
Zp โค -ZM AND Zv โค -ZM
Direction: Bullish (price down but volume declining)
Event 42: Volume Divergence Bear
Zp โฅ ZM AND Zv โค -ZM
Direction: Bearish (price up but volume declining)
Event 43: Delta Price Alignment
|Zp| โฅ ZM AND |Zฮ| โฅ ZM AND sign(Zp) = sign(Zฮ)
Direction: Follows price direction (strong trend confirmation)
Event 44: Extreme Compression
|Zp| โค Z0 AND Zv โค -ZH
Direction: Neutral (very low volatility)
Event 45: Volatility Expansion
|Zp| โฅ ZH AND Zv โฅ ZH
Direction: Follows price direction (breakout from compression)
Event 46: Buy Exhaustion
Zbuy โฅ ZH AND Zp โค Z0
Direction: Warning (high buy but price fails)
Event 47: Sell Exhaustion
Zsell โฅ ZH AND Zp โฅ -Z0
Direction: Warning (high sell but price holds)
Event 48: Trend Acceleration
|Zp| โฅ ZM AND |Zp| > |Zp[1]| AND Zv โฅ ZM
Direction: Follows price direction (increasing momentum)
Event 49: Trend Deceleration
|Zp| โฅ ZM AND |Zp| < |Zp[1]| AND sign(Zp) = sign(Zp[1])
Direction: Warning (decreasing momentum)
Event 50: Multi Divergence
(Zp โฅ ZM AND Zฮ โค -ZM) OR (Zp โค -ZM AND Zฮ โฅ ZM) + |Zp| โฅ ZM AND Zv โค -ZM
Direction: Warning (multiple divergence signals)
โโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโ
CATEGORY I: TREND-INTEGRATED (Events 51-60)
Based on: Combined price-volume-delta trend analysis
โโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโ
Event 51: Trend Breakout Confirmed
|Zp| โฅ ZH AND Zv โฅ ZH AND |Zฮ| โฅ ZM AND sign(Zฮ) = dirP AND dirP โ 0
Direction: Follows price direction
Event 52: Trend Support Test
Zp[1] โฅ ZM AND Z0 โค Zp < ZM AND Zฮ โฅ Z0
Direction: Bullish (pullback in uptrend)
Event 53: Trend Resistance Test
Zp[1] โค -ZM AND -ZM < Zp โค -Z0 AND Zฮ โค -Z0
Direction: Bearish (rally in downtrend)
Event 54: Trend Reversal Signal
sign(Zp) โ sign(Zp[1]) AND |Zp| โฅ ZM AND |Zp[1]| โฅ ZM
Direction: Follows new price direction (momentum flip)
Event 55: Channel Absorption
|Zp| โค Z0 AND Zv โฅ ZH
Direction: Neutral (range-bound with volume)
Event 56: Trend Continuation Volume
|Zp| โฅ ZM AND Zv โฅ ZM AND sign(Zฮ) = dirP AND dirP โ 0
Direction: Follows price direction (healthy trend with volume)
Event 57: Trend Exhaustion
|Zp| โฅ ZM AND Zv โค -ZM AND |Zp| < |Zp[1]|
Direction: Warning (trend losing steam)
Event 58: Range Breakout Pending
|Zp| โค Z0 AND Zv โค -ZH AND |Zฮ| โฅ ZM
Direction: Follows delta direction (compression with imbalance)
Event 59: Trend Quality High
|Zp| โฅ ZM AND sign(Zฮ) = dirP AND Zv โฅ Z0 AND dirP โ 0
Direction: Follows price direction (strong aligned signals)
Event 60: Trend Quality Low
|Zp| โฅ ZM AND sign(Zฮ) โ dirP AND dirP โ 0
Direction: Warning (conflicting signals)
โโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโ
TREND CHANNEL SYSTEM
The trend channel system is adapted from Smart Trader Episode 03 to provide consistent visual context for price action analysis.
How It Works:
โข Divides the chart into blocks based on Z-Score groups
โข Calculates OHLC (Open, High, Low, Close) for each block
โข Detects Higher Highs/Higher Lows (uptrend) or Lower Highs/Lower Lows (downtrend) patterns
โข Draws channel lines connecting block extremes
โข Classifies by angle: steep angles indicate trends, flat angles indicate ranges
Channel Classifications:
โข UPTREND: Higher highs and higher lows detected
โข DOWNTREND: Lower highs and lower lows detected
โข RANGE: Channel angle below threshold (default 10 degrees)
Label Information:
โข Trend direction (UPTREND/DOWNTREND/RANGE)
โข Channel boundary prices
โข Distance from current price (absolute and percentage)
โข Channel angle in degrees
โโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโ
DASHBOARD
The dashboard provides a comprehensive real-time view of all Z-Score metrics and detected events.
Dashboard Sections:
1. Header Row
Displays indicator name and current calculation mode (CLOSED or LIVE).
2. Metric Rows (Price, Total Volume, Buy Volume, Sell Volume, Delta)
Each row displays:
โข Value: Current metric value
โข Z: Calculated Z-Score
โข Visual: Graphical Z-bar showing position relative to mean
โข Status: Interpretation (Extreme High, Above Avg, Normal, Below Avg, Extreme Low)
โข Upper: Oldest active upper Z-Line in window (Label Mirror)
โข Lower: Oldest active lower Z-Line in window (Label Mirror)
3. Event Detection Section
โข Count of triggered events out of 60 total scenarios
โข Market Bias: Bull/Bear/Neutral percentage with visual bar
โข Strongest Event: Highest confidence event currently triggered
โข #2 Event: Second highest confidence event
4. Footer
Shows engine type (Geometry/Intrabar), Z-Score period, calculation basis, and number of valid bars.
โโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโ
ALERT SYSTEM
The indicator uses native alertcondition() functions, keeping the settings menu clean while providing comprehensive alert options in TradingView's alert dialog.
Available Alert Categories:
โข Master Alerts: Any event, Any bullish, Any bearish, Any warning
โข Single Event Alerts: Individual alerts for key events (Breakout, Climax, Divergence, etc.)
โข Category Alerts: Alerts by event category (Price-Volume, Order-Flow, etc.)
โข Confluence Alerts: 2+, 3+, 4+, or 5+ aligned events
โข Bias Shift Alerts: 10%, 20%, or 30% shifts in market bias
โข High Confidence Alerts: Events with 60%+, 70%+, 80%+, or 90%+ confidence
โข Divergence Alerts: Price vs Volume or Price vs Delta divergences
โโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโ
DATA ACCURACY AND LIMITATIONS
This indicator is 100% VOLUME-BASED and requires Lower Timeframe (LTF) intrabar data for accurate calculations when using the Intrabar method.
Data Accuracy Levels:
โข 1T (Tick): Most accurate, real volume distribution per tick
โข 1S (1 Second): Reasonably accurate approximation
โข 15S (15 Seconds): Good approximation, longer historical data available
โข 1M (1 Minute): Rough approximation, maximum historical data range
Backtest and Replay Limitations:
โข Replay mode results may differ from live trading due to data availability
โข For longer backtest periods, use higher LTF settings (15S or 1M)
โข Not all symbols/exchanges support tick-level data
โข Crypto and Forex typically have better LTF data availability than stocks
A Note on Data Access:
Higher TradingView plans provide access to more historical intrabar data, which directly impacts the accuracy of volume-based calculations. More precise volume data leads to more reliable calculations.
โโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโ
LANGUAGE SUPPORT (TRI-LINGUAL UI)
This indicator includes a built-in language switch with three interface languages:
โข English (EN)
โข Tรผrkรงe (TR)
โข ํ๊ตญ์ด (KO)
The selected language updates key interface text such as the Dashboard headers/rows, tooltips, and the Event Engine outputs (event names, category names, and direction labels). Turkish diacritics and Korean Hangul are supported for clean, native readability.
Why only three languages?
Each additional language requires duplicating strings throughout the code, which increases script size/memory usage and compilation time. To keep the indicator optimized and responsive, language options are intentionally limited to three.
โโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโ
โ ๏ธ DISCLAIMER
FOR EDUCATIONAL AND RESEARCH PURPOSES ONLY
This indicator is designed as an educational and research tool based on academic market microstructure literature. It is NOT financial advice and should NOT be used as the sole basis for trading decisions.
Important Notices:
โข Past performance does not guarantee future results
โข All trading involves risk of substantial loss
โข The indicator's signals are statistical probabilities, not certainties
โข Always conduct your own research and consult qualified financial advisors
โข The creator assumes no responsibility for trading losses
Research Sources:
This indicator is built upon peer-reviewed academic research from:
โข Journal of Financial and Quantitative Analysis (Cambridge University Press)
โข Journal of Finance
โข Journal of Financial Econometrics
โข MIT Working Papers
โข arXiv Financial Mathematics
Skrip open-source
Dengan semangat TradingView yang sesungguhnya, pembuat skrip ini telah menjadikannya sebagai sumber terbuka, sehingga para trader dapat meninjau dan memverifikasi fungsinya. Salut untuk penulisnya! Meskipun Anda dapat menggunakannya secara gratis, perlu diingat bahwa penerbitan ulang kode ini tunduk pada Tata Tertib kami.
Measuring markets through Volume Dynamics & Geometric Frameworks.
For invite-only script access, DM on TradingView or via x.com/sabanci_ata
For invite-only script access, DM on TradingView or via x.com/sabanci_ata
Pernyataan Penyangkalan
Informasi dan publikasi ini tidak dimaksudkan, dan bukan merupakan, saran atau rekomendasi keuangan, investasi, trading, atau jenis lainnya yang diberikan atau didukung oleh TradingView. Baca selengkapnya di Ketentuan Penggunaan.
Skrip open-source
Dengan semangat TradingView yang sesungguhnya, pembuat skrip ini telah menjadikannya sebagai sumber terbuka, sehingga para trader dapat meninjau dan memverifikasi fungsinya. Salut untuk penulisnya! Meskipun Anda dapat menggunakannya secara gratis, perlu diingat bahwa penerbitan ulang kode ini tunduk pada Tata Tertib kami.
Measuring markets through Volume Dynamics & Geometric Frameworks.
For invite-only script access, DM on TradingView or via x.com/sabanci_ata
For invite-only script access, DM on TradingView or via x.com/sabanci_ata
Pernyataan Penyangkalan
Informasi dan publikasi ini tidak dimaksudkan, dan bukan merupakan, saran atau rekomendasi keuangan, investasi, trading, atau jenis lainnya yang diberikan atau didukung oleh TradingView. Baca selengkapnya di Ketentuan Penggunaan.