MVRV Ratio Indicator [captainua]MVRV Ratio Indicator - Market Value to Realized Value Ratio
Overview
This professional indicator calculates and visualizes the MVRV (Market Value to Realized Value) ratio (raw, non-Z-score) with optional MVRV-Z overlay, comparing current market capitalization to realized capitalization to help identify potential market tops and bottoms for cryptocurrency markets.
Unlike MVRV-Z which normalizes the ratio using standard deviation (creating a Z-score), the raw MVRV ratio provides direct comparison between market cap and realized cap. This indicator enhances the raw ratio with historical percentile bands, percentile rank calculation, divergence detection, historical event logging, dynamic color gradients, enhanced visualization options, optional MVRV-Z comparison, and NEW advanced metrics including Risk Score, MVRV Momentum, Time in Zone tracking, and Price Target calculations.
NEW Features in This Version:
โข Risk Score (0-100): Composite indicator based on MVRV level and percentile rank for instant risk assessment
โข MVRV Momentum: Rate of change indicator showing trend direction (โ Increasing, โ Decreasing, โ Flat)
โข Time in Zone: Tracks how long MVRV has been in the current zone (top/bottom/neutral) in bars
โข Price Targets: Calculates price levels at key MVRV thresholds (fair value, top, bottom)
โข Input Validation: Warns about invalid parameter combinations (e.g., extreme thresholds out of order)
โข Multiple Smoothing Options: SMA, EMA, WMA, RMA for noise reduction
โข Performance Optimized: Cached request.security() calls, ta.percentrank() for efficiency
โข Human-Readable Timestamps: Event log now shows dates (YYYY-MM-DD) instead of bar indices
Core Calculations
MVRV Ratio Calculation:
The script calculates MVRV ratio using the standard formula: MVRV Ratio = Market Cap / Realized Cap. This formula provides a direct ratio without normalization, showing how many times the current market cap exceeds (or falls below) the realized cap.
Market Capitalization (Market Cap): The total market value of all coins in circulation, calculated as current price ร circulating supply. This represents the market's current valuation of the asset.
Realized Capitalization (Realized Cap): The sum of the value of each coin when it last moved on-chain, representing the average cost basis of all coins.
Raw Ratio Interpretation:
- Ratio > 3.5: Extreme overvaluation (market cap significantly above realized cap)
- Ratio 2.5-3.5: Moderate overvaluation
- Ratio 1.0-2.5: Fair value to moderate overvaluation
- Ratio 0.8-1.0: Fair value to moderate undervaluation
- Ratio < 0.8: Undervaluation (market cap close to or below realized cap)
Risk Score (NEW):
Composite risk indicator ranging from 0-100:
- 80-100: Very High Risk (extreme overvaluation)
- 60-80: High Risk (overvaluation)
- 40-60: Moderate Risk (fair value range)
- 20-40: Low Risk (undervaluation)
- 0-20: Very Low Risk (extreme undervaluation)
The risk score uses percentile rank when available, or normalizes MVRV ratio to the 0-100 scale based on configured thresholds.
MVRV Momentum (NEW):
Rate of change indicator showing trend direction:
- โ Increasing: MVRV ratio rising (momentum > 0.01)
- โ Decreasing: MVRV ratio falling (momentum < -0.01)
- โ Flat: MVRV ratio stable
- Displays percentage change over configurable period (default: 14 bars)
Time in Zone (NEW):
Tracks duration in current zone:
- Top Zone: Bars spent above top threshold (3.5)
- Bottom Zone: Bars spent below bottom threshold (0.8)
- Neutral Zone: Bars spent between thresholds
- Resets when zone changes
- Helps identify prolonged extreme conditions
Price Targets (NEW):
Calculates price levels at key MVRV thresholds:
- Price @ Fair Value: Price when MVRV = 1.0
- Price @ Top Threshold: Price when MVRV = 3.5
- Price @ Bottom Threshold: Price when MVRV = 0.8
- Based on estimated realized price (current price / MVRV ratio)
Data Source Selection:
The indicator supports multiple data source options for maximum flexibility:
Glassnode (Recommended):
- Uses Glassnode Market Cap data
- Calculates MVRV from Market Cap / Realized Cap
- Symbol format: GLASSNODE:{TOKEN}_MARKETCAP
- Requires Glassnode data subscription
- Also requires CoinMetrics for Realized Cap
- Best for comprehensive analysis with MVRV-Z comparison
IntoTheBlock:
- Direct MVRV ratio data from IntoTheBlock
- Simplest option - no calculations required
- Works for BTC and other supported tokens
- Symbol format: INTOTHEBLOCK:{TOKEN}_MVRV
- Requires IntoTheBlock data subscription on TradingView
Historical Percentile Bands:
The indicator calculates rolling percentile bands over a configurable period (default: 500 bars):
- 5th Percentile: Very low historical values (extreme undervaluation range)
- 25th Percentile: Lower quartile (undervaluation range)
- 50th Percentile: Median (fair value center)
- 75th Percentile: Upper quartile (overvaluation range)
- 95th Percentile: Very high historical values (extreme overvaluation range)
Percentile bands use ta.percentile_nearest_rank() for efficient calculation.
Percentile Rank:
Percentile rank shows where the current MVRV ratio sits in the historical distribution (0-100%):
- 0-25%: Bottom quartile (undervaluation)
- 25-50%: Lower half (moderate undervaluation to fair value)
- 50-75%: Upper half (fair value to moderate overvaluation)
- 75-100%: Top quartile (overvaluation)
Now uses efficient ta.percentrank() instead of array-based calculation.
Input Validation (NEW):
The indicator validates input parameters and displays warnings for:
- Extreme High Threshold should be > Top Threshold
- Extreme Low Threshold should be < Bottom Threshold
- Min Lookback Range must be < Max Lookback Range
- Top Threshold should be > Moderate Overvalued
- Moderate Overvalued should be > Fair Value
- Fair Value should be > Bottom Threshold
- Rapid Increase Threshold should be > 0
- Rapid Decrease Threshold should be < 0
Smoothing Options (Enhanced):
Multiple smoothing types available:
- SMA: Simple Moving Average (equal weight)
- EMA: Exponential Moving Average (more weight to recent)
- WMA: Weighted Moving Average (linear weight)
- RMA: Running Moving Average (Wilder's smoothing)
Reference Levels
Overvalued (Potential Top) - 3.5:
The 3.5 level indicates potentially extreme overvaluation. When MVRV ratio exceeds this threshold:
- Market cap is significantly above realized cap
- Potential selling opportunities for profit-taking
- Risk of market corrections or reversals
- Risk Score typically >80 (Very High Risk)
Moderately Overvalued - 2.5:
The 2.5 level indicates moderate overvaluation:
- Market cap is above realized cap but not extreme
- Caution warranted but not necessarily sell signal
- Risk Score typically 60-80 (High Risk)
Fair Value - 1.0:
The 1.0 level indicates fair valuation:
- Market cap equals realized cap
- Balanced market conditions
- Risk Score typically 40-60 (Moderate Risk)
Undervalued (Potential Bottom) - 0.8:
The 0.8 level indicates potentially undervalued conditions:
- Market cap is close to or below realized cap
- Potential buying opportunities for accumulation
- Risk Score typically <40 (Low Risk)
Visual Features
MVRV Ratio Line:
The main indicator line displays the calculated MVRV ratio with dynamic color gradient:
- Bright Red: Extreme overvaluation (ratio โฅ top threshold + 0.5)
- Orange: High overvaluation (ratio โฅ top threshold)
- Cornflower Blue: Neutral/Fair value (around fair value level)
- Deep Sky Blue: Low/Undervaluation (ratio โค bottom threshold)
- Bright Green: Extreme undervaluation (ratio โค bottom threshold - 0.1)
Can also be displayed as histogram/bar chart.
Historical Percentile Bands:
Five percentile bands with optional fills:
- 5th Percentile (Blue): Very low historical range
- 25th Percentile (Blue): Lower quartile
- 50th Percentile (Gray): Historical median
- 75th Percentile (Orange): Upper quartile
- 95th Percentile (Red): Very high historical range
Reference Lines:
Horizontal reference lines at key levels (all customizable):
- Top Threshold (default 3.5): Purple/violet
- Moderate Overvalued (default 2.5): Orange
- Fair Value (1.0): Gray
- Bottom Threshold (default 0.8): Blue
Background Highlights:
Optional background color highlights:
- High Zone (Maroon/Red): MVRV ratio โฅ top threshold
- Low Zone (Green): MVRV ratio โค bottom threshold
Divergence Detection:
Advanced divergence detection between price and MVRV ratio:
- Regular Bullish Divergence: Price lower low + MVRV higher low
- Regular Bearish Divergence: Price higher high + MVRV lower high
- Hidden Bullish Divergence: Price higher low + MVRV lower low
- Hidden Bearish Divergence: Price lower high + MVRV higher high
- Visual markers with icons (๐/๐ป) and connecting lines
Historical Event Log (Enhanced):
Comprehensive event tracking:
- Tracks zone entries/exits, extreme values, cross events
- Now displays human-readable dates (YYYY-MM-DD) instead of bar indices
- Color-coded events (red for top/high, green for bottom/low)
- Configurable log size (5-50 events)
Information Table (Enhanced):
Comprehensive on-chart table with NEW metrics:
Current Values:
- MVRV Ratio: Current ratio value
- Percentile Rank: Position in historical distribution (0-100%)
- Risk Score (NEW): Composite risk indicator (0-100) with risk level
- Market Status: Current market condition
- Signal: Trading signal (Strong Buy/Buy/Hold/Sell/Strong Sell)
- MVRV Momentum (NEW): Trend direction with percentage change
- Time in Zone (NEW): Current zone and duration in bars
Price Information (Enhanced):
- Current Price: Current market price
- Est. Realized Price: Estimated realized price
- Price @ Fair Value (NEW): Price when MVRV = 1.0
- Price @ Top Threshold (NEW): Price when MVRV = 3.5
- Price @ Bottom Threshold (NEW): Price when MVRV = 0.8
Other Metrics:
- Percentile Bands: Range from 5th to 95th percentile
- MVRV-Z Score: Z-score value (when comparison enabled)
- Change (1D/1W/1M): Ratio change over timeframes
- To Top/Bottom: Percentage distance to key levels
- Historical Range: Percentage below ATH / above ATL
- 30D Volatility: Standard deviation
Historical Event Log:
- Recent events with dates and values
- Color-coded for quick identification
Alert System
Comprehensive alerting capabilities:
Zone Alerts:
- Top Zone Entry/Exit
- Bottom Zone Entry/Exit
Cross Alerts:
- Cross Above/Below Top Threshold
- Cross Above/Below Fair Value (1.0)
Extreme Value Alerts:
- Extreme High (configurable, default: 4.5)
- Extreme Low (configurable, default: 0.7)
Rate of Change Alerts:
- Rapid Increase/Decrease
Divergence Alerts:
- Bullish/Bearish Divergence
- Hidden Bullish/Bearish Divergence
All alerts support cooldown to prevent spam.
Usage Instructions
Getting Started:
1. Select data source (Glassnode recommended)
2. Enable Risk Score for composite risk assessment (0-100)
3. Enable MVRV Momentum to track trend direction
4. Enable Time in Zone to see zone duration
5. Enable Price Targets to see price levels at key thresholds
6. Use weekly timeframe for cleaner signals
Risk-Based Position Sizing:
Use Risk Score to guide position sizing:
- Risk Score >80 (Very High Risk): Reduce/exit positions
- Risk Score 60-80 (High Risk): Smaller positions, caution
- Risk Score 40-60 (Moderate Risk): Normal positions
- Risk Score 20-40 (Low Risk): Larger positions opportunity
- Risk Score <20 (Very Low Risk): Strong accumulation zone
Momentum-Based Analysis:
Use MVRV Momentum for trend confirmation:
- โ Increasing + High MVRV: Late bull market, caution
- โ Increasing + Low MVRV: Recovery phase, bullish
- โ Decreasing + High MVRV: Distribution, potential top
- โ Decreasing + Low MVRV: Capitulation, accumulation opportunity
Zone Duration Analysis:
Use Time in Zone for context:
- Extended time in Top Zone: Late cycle, increased reversal risk
- Extended time in Bottom Zone: Accumulation opportunity
- Quick zone transitions: Higher volatility regime
Price Target Usage:
Use Price Targets for planning:
- Price @ Fair Value: Natural equilibrium level
- Price @ Top Threshold: Potential distribution target
- Price @ Bottom Threshold: Potential accumulation target
Technical Specifications
- Pine Script Version: v6
- Indicator Type: Non-overlay (displays in separate panel)
- Repainting Behavior: Minimal - calculations based on confirmed bar data
- Performance: Optimized with cached request.security() calls and ta.percentrank()
- Input Validation: Validates parameter combinations with warnings
- Compatibility: Works on all timeframes (data sources provide daily resolution)
- Edge Case Handling: Zero-division protection, NA value handling, boundary checks
Performance Optimizations:
- Cached request.security() calls for Market Cap, Realized Cap, and IntoTheBlock data
- Efficient ta.percentrank() replaces array-based percentile calculation
- Consolidated duplicate code (color functions, state tracking)
- Single-line ternary expressions for Pine Script compatibility
Constants:
- MAX_HISTORY_BARS = 5000 (TradingView's limit)
- PERCENTILE_EXTREME_HIGH = 90.0
- PERCENTILE_HIGH = 75.0
- PERCENTILE_MID = 50.0
- PERCENTILE_LOW = 25.0
- MIN_PERCENTILE_SAMPLES = 10
- DEFAULT_VOLATILITY_HIGH = 0.1
Known Limitations
- Data availability: Requires valid data subscription (IntoTheBlock, Glassnode, or CoinMetrics)
- Token support: Works with tokens supported by the selected data source
- Historical data: Percentile calculations require sufficient history (200+ bars recommended)
- Timeframe: Always uses daily resolution data from providers; works on all chart timeframes
- History limit: All lookback periods capped at 5000 bars
Changelog
Latest Version:
- Added Risk Score (0-100) composite indicator
- Added MVRV Momentum with trend direction
- Added Time in Zone tracking
- Added Price Target calculations
- Added Input Validation with warnings
- Added multiple smoothing options (SMA, EMA, WMA, RMA)
- Improved performance with cached security calls
- Replaced array-based percentile with ta.percentrank()
- Human-readable timestamps in event log (YYYY-MM-DD)
- Fixed hline() conditional value bug
- Consolidated duplicate code
- Updated indicator name for clarity
For detailed usage instructions, see the script comments.
Corak carta
Multi-Timeframe Order BlocksDesigned to identify and visualize key supply and demand zones based on order block theory across multiple timeframes. The indicator detects order blocks by analyzing sequential candle patterns and price movement thresholds to highlight potential reversal or continuation zones where institutional buying or selling activity may have occurred.
The indicator works by scanning for clusters of consecutive bullish or bearish candles followed by a significant price move, which signals the formation of an order block. It then plots these zones as colored boxes on the chartโgreen for demand (bullish order blocks) and red for supply (bearish order blocks). The zones can be based on candle bodies or wicks, depending on user preference, and the indicator supports multi-timeframe analysis by allowing optional higher timeframe inputs.
How It Works:
Sequential Candle Detection: The indicator looks for a specified number of consecutive bullish or bearish candles (configurable by the user) to identify potential order blocks.
Price Movement Threshold: It checks if the price movement after the order block formation exceeds a user-defined percentage threshold, ensuring only significant zones are marked.
Zone Plotting: Once an order block is confirmed, the indicator draws a supply or demand zone as a box on the chart, using either candle bodies or wicks for zone boundaries.
Multi-Timeframe Support: Users can optionally specify higher timeframes to incorporate broader market context, enhancing the reliability of the zones.
Zone Management: The indicator limits the number of zones displayed to avoid clutter, automatically removing the oldest zones when the maximum count is exceeded.
How to Interpret:
Demand Zones (Green Boxes): These represent areas where buying pressure was strong enough to create a bullish order block. Price often finds support here, making these zones potential entry points for long trades or areas to watch for price bounces.
Supply Zones (Red Boxes): These indicate areas of strong selling pressure forming bearish order blocks. Price may face resistance in these zones, which can be used as potential exit points for longs or entry points for shorts.
Multi-Timeframe Confirmation: Zones identified on higher timeframes tend to be stronger and more reliable. Use the optional higher timeframe inputs to align your trades with broader market trends.
Use with Other Indicators: Combine order block zones with volume, momentum, or trend indicators to improve trade confirmation and risk management.
Zone Breaks: A decisive break and close beyond a supply or demand zone may signal a shift in market sentiment and potential trend continuation or reversal.
Disclaimer
This indicator is provided for educational and informational purposes only and does not constitute financial advice. Trading involves significant risk, and it is possible to lose more than your initial investment. Users should conduct their own research and consider their financial situation carefully before making any trading decisions. The developer and publisher of this indicator are not responsible for any trading losses or damages incurred. Always use proper risk management and consult with a licensed financial advisor if needed.
Stockbee Screener - Momentum Burst & Episodic Pivot ScannerPLEASE NOTE: This is a screening tool, not a chart indicator!
Overview
A multi-filter screening indicator based on Stockbee/Pradeep Bonde's momentum trading methodology. This screener combines his signature setups to identify stocks exhibiting the characteristics of momentum bursts and institutional accumulation.
You can ditch that extra TC2000 subscription now (you're welcome) - spend the money on some Sugar Babies instead.
The Stockbee Philosophy
Stocks move in momentum bursts of 3 to 5 days, during which they can gain 8-40%. The key to profiting from these moves is identifying range expansion at the beginning of the burstโnot chasing after the move is already underway. This screener implements multiple Stockbee scans to catch these setups early.
---
Core Indicators
TI65 - Trend Intensity
Measures whether a stock is in a confirmed uptrend by comparing short-term to medium-term price action.
Formula: avgC7 / avgC65 >= 1.05
When the 7-day average close is 5% or more above the 65-day average close, the stock demonstrates trending momentum. This filters for stocks with established directional movement rather than choppy price action.
9M Volume Flag
Are you a lover of dogs, cats, sugar babies or...umm...lava?? If yes, this feature's for you: it identifies potential Episodic Pivots (EPs)โcatalyst-driven moves with massive institutional participation.
When a stock trades 9 million+ shares in a single day, it signals serious accumulation that often precedes multi-day or multi-week runs. These volume surges typically coincide with earnings surprises, news catalysts, or sector rotations that cause the market to fundamentally re-evaluate a stock.
+4% Change Flag
Detects bullish range expansionโthe signature of a momentum burst beginning.
A 4% single-day gain (especially when preceded by quiet, narrow-range days) indicates the start of potential explosive movement. This is Stockbee's primary scan for catching momentum bursts on day one.
---
Pattern Filters
Ants TTT (Tight-Tight-Tight - yeah, like that Backstreet Boys T-shirt you still wear)
Identifies tight consolidation patterns indicating controlled institutional accumulation.
Criteria:
- Minimum volume threshold met over recent days
- 3-bar price range extremely tight (โค1.5% change)
- Today's range even tighter (โค0.3% change)
- No disruptive gaps in lookback period
These "quiet before the storm" setups often precede explosive breakouts as institutions finish accumulating positions.
Ants Bullish (Momentum Without Gaps)
Finds stocks with controlled, sustainable momentumโsteady accumulation without the volatility of gap moves.
Criteria:
- Momentum confirmed (20% above 30-day low, OR 7-day avg 5% above 65-day avg)
- Controlled daily moves (no wild single-day swings)
- No large gaps in lookback period
- Consistent volume
This filter favors "stair-step" advances that indicate methodical institutional buying.
Bullish Combo
Stockbee's combination scan for high-probability entries combining price action and volume.
Condition 1 - Bullish Candle:
- Close โฅ $0.90 above open
- Volume > 1M shares
- Today's range โฅ yesterday's range
- Prior day was stable (โค2% move)
Condition 2 - Breakout:
- Price up โฅ4% from prior close
- Volume surge (today > yesterday)
- Close strength โฅ70% (closing near highs)
---
Additional Metrics which may support decision-making
โโโโโโโโโโโโโโโโโโโฌโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโ
โ Metric โ Description โ
โโโโโโโโโโโโโโโโโโโผโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโค
โ ADR% โ Average Daily Range as percentage โ measures volatility โ
โโโโโโโโโโโโโโโโโโโผโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโค
โ ATR Extension โ Distance from 50d SMA in ATR units โ identifies overextended stocks โ
โโโโโโโโโโโโโโโโโโโผโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโค
โ Below 10/21 EMA โ Pullback flags for timing entries in uptrends โ
โโโโโโโโโโโโโโโโโโโผโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโค
โ +DI/-DI Filter โ Directional indicator confirmation for trend direction โ
โโโโโโโโโโโโโโโโโโโดโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโ
Market Trend AnalyserThis indicator identifies high-quality entries using market structure concepts such as Change of Character (ChoCH) and Break of Structure (BOS), rather than relying on lagging traditional indicators.
How to use :
Enter trades on ChoCH and BOS signals (both long and short).
To reduce market noise, it is recommended to apply:
An ATR filter with a minimum value of 1
An ADX filter with a minimum value of 15
You may also enable a moving average (MA) filter to avoid trading against the prevailing trend.
Impulse Move FVG TrackerThis script identifies strong directional impulse moves and automatically plots Fair Value Gaps (FVGs) only in locations that are contextually relevant to those moves. It tracks consecutive candle bodies to determine when a large move up or down has occurred, calculates the midpoint of that impulse, and then displays bullish FVGs above the midpoint after strong upward moves and bearish FVGs below the midpoint after strong downward moves. The script operates only within a user-selected, scrollable time-of-day window and allows full control over FVG colors, extension length, minimum impulse size, and how many of the most recent FVGs remain on the chart. It is designed to reduce noise by showing FVGs only where price displacement suggests meaningful imbalance rather than marking every gap indiscriminately.
True FVGs v2This script identifies and plots true Fair Value Gaps (FVGs) using a strict three-candle structure, distinguishing between two formation types while accounting for doji candles. It draws shaded boxes to represent untraded price imbalances, with Type A and Type B gaps defined by precise wick-to-body and body-to-body relationships that reflect institutional price displacement. The indicator allows the user to control how far each FVG extends and how many recent FVGs remain visible, keeping the chart clean and relevant. This is helpful because it highlights high-probability areas where price is likely to react, enabling more precise trade planning, entries, and risk management without visual clutter. It expands on the first script (True FVGs) and allows for a more controlled design fitting each trader's desires.
Smart Trader, Episode 04, by Ata Sabanci, Candles and Z ScoresSmart 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)
โข = 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ฮ | โฅ ZM AND sign(Zฮ) = sign(Zฮ )
Direction: Follows delta direction (persistent pressure)
Event 32: Imbalance Pressure Decay
(Zฮ โฅ ZM AND Zฮ โค -ZM) OR (Zฮ โค -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 | AND Zv โฅ ZM
Direction: Follows price direction (increasing momentum)
Event 49: Trend Deceleration
|Zp| โฅ ZM AND |Zp| < |Zp | AND sign(Zp) = sign(Zp )
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 โฅ ZM AND Z0 โค Zp < ZM AND Zฮ โฅ Z0
Direction: Bullish (pullback in uptrend)
Event 53: Trend Resistance Test
Zp โค -ZM AND -ZM < Zp โค -Z0 AND Zฮ โค -Z0
Direction: Bearish (rally in downtrend)
Event 54: Trend Reversal Signal
sign(Zp) โ sign(Zp ) AND |Zp| โฅ ZM AND |Zp | โฅ 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 |
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
MK 1 MIN EMA 9 / EMA 21 CrossoverEMA 9 / EMA 21 Crossover Strategy (1-Minute Scalping)
This strategy is a clean, fast, and reliable EMA crossover system designed specifically for 1-minute intraday scalping.
It uses only EMA 9 and EMA 21, keeping the chart uncluttered while delivering clear BUY and SELL signals based on momentum shifts.
๐น How It Works
BUY Signal:
When EMA 9 crosses above EMA 21, indicating bullish momentum.
SELL Signal:
When EMA 9 crosses below EMA 21, indicating bearish momentum.
Signals are confirmed visually using:
On-chart BUY / SELL text labels
Dynamic EMA color highlighting
Smart legend (top-right) that remembers the last active signal
๐จ Visual Features
EMA 9 plotted in green (turns bright on bullish trend)
EMA 21 plotted in red
BUY and SELL labels displayed directly on crossover candles
Dynamic legend:
BUY row stays green after bullish cross
SELL row stays red after bearish cross
Makes trend direction instantly clear, even on fast charts
โฑ Best Use
Timeframe: 1-minute
Suitable for:
Index scalping
Options scalping
High-liquidity stocks & ETFs
Works best during high-volume market hours
EMA Crossover with Pine Logs2We are exclusively licensed Austria Guides and count on smaller groups โ this is how communication with the guests works best. Exciting facts and a large portion of humour are part of our tours, just like a lot of experience and knowledge off the beaten track. We even infect die-hard Vienna connoisseurs with our enthusiasm for the city! If you want to get to know Vienna differently than the average tourist, then we are your perfect partner: We make sure that your travel stories are nowhere to be found.
Engulfing Candle Mid-pointsThis Pine Script, โEngulfing Candle Mid-points,โ identifies bullish and bearish engulfing candles within a user-selected intraday time range. For a candle to qualify, it must fully engulf the previous candleโs body in the opposite direction and meet a configurable minimum body size in points. When such a candle is detected, the script draws a horizontal line at the mid-point of the candleโs body, extending forward for a user-defined number of bars. The script stores only the five most recent bullish and bearish lines to keep the chart clean, and all line colors, widths, and extension lengths are configurable, allowing traders to visually track significant price moves during specific trading sessions.
RSI < 30 BUY | RSI > 70 SELL (One-Time) TSMThis script is a clean, non-repainting RSI-based trading indicator designed for scalping and intraday trading. It focuses on extreme market conditions and gives one-time BUY and SELL signals only, avoiding repeated or noisy alerts.
True FVGsThis script highlights 3-candle Fair Value Gaps (FVGs) on your chart, showing areas where price moved quickly and left potential gaps in market structure. Bullish FVGs are shown with green boxes and suggest possible support, while bearish FVGs are shown with red boxes and suggest possible resistance. It also includes doji candlesโvery small-bodied candles that indicate indecisionโso these patterns are not missed. The script displays the most recent 5 FVGs, making it easy to spot recent potential areas where price may react.
bosstvs tikole sir + VWAP + EMA21 + SMA50Simple VWAP + SMA Trend with Pivot High/Low
๐ Description
This indicator is designed to identify bullish and bearish market conditions using VWAP, 21 SMA, and 50 SMA, along with Pivot High and Pivot Low lines for structure-based support and resistance.
It helps traders quickly understand trend direction, market bias, and key price levels on any timeframe.
โ
Bullish Conditions
Price is above 21 SMA
Price is above VWAP
๐ข Indicates strong bullish momentum.
โ Bearish Conditions
Price is below 21 SMA
Price is below 50 SMA
Price is below VWAP
๐ด Indicates strong bearish momentum.
๐ Pivot High / Low
Pivot High lines act as resistance
Pivot Low lines act as support
Helps in identifying breakouts, reversals, and structure
๐ฏ Best Use
Intraday & Swing trading
Trend confirmation
Support & Resistance mapping
Works well with price action strategies
OB BB Script1 Akashwhat description you want from me, I don't want to give you any description. You fucking remove you unwanted validation from this unnessary text box.
Psico LevelsPsychological Levels - 000 / 250 / 500 / 750
This indicator automatically draws psychological price levels (.000, .250, .500, .750) directly on your chart.
Psychological levels are "round" prices that tend to attract traders' attention and often act as natural support/resistance zones. These levels are particularly relevant in forex, crypto, and indices.
FEATURES:
- Horizontal lines at .000, .250, .500, .750 levels
- Enable/disable each level individually
- Customizable colors for each level type
- Adjustable base step (default 1.0)
- Lines automatically extend to the right
SETTINGS:
- Base Step: sets the interval between main levels (1.0 = 1.000)
- Show .000/.250/.500/.750: toggle individual levels on/off
- Customizable colors for each level
HOW TO USE:
Ideal for identifying significant price zones where market reactions are likely to occur. The .000 and .500 levels are generally the most relevant, while .250 and .750 provide intermediate levels.
Perfect for scalping, day trading, and swing trading on any timeframe.
Future Swing [BigBeluga]๐ต OVERVIEW
Future Swing is a swing-based projection tool that estimates the potential size and price target of the next swing move using historical swing behavior.
Instead of predicting direction randomly, it analyzes completed swing legs, measures their percentage moves, and projects a statistically derived swing target into the future.
The indicator combines swing structure, high/low zones, volume context, and a real-time dashboard to help traders anticipate where price may travel next.
๐ต CONCEPTS
Swing Detection โ Swing highs and lows are identified using a configurable lookback length.
Swing Percentage Tracking โ Each completed swing leg is converted into a percentage move and stored.
Statistical Projection โ Future swing size is estimated using Average, Median, or Mode of past swing percentages.
Directional Awareness โ Projections adapt automatically based on current swing direction.
๐ต FEATURES
Historical Swing Sampling โ
โข Uses a user-defined number of completed swings.
โข More samples = smoother projection, fewer samples = faster adaptation.
Future Swing Projection โ
โข Dashed line projects the estimated swing target forward in time.
โข Projection distance is visual-only and does not affect calculations.
High/Low Swing Zones โ
โข Upper and lower swing zones expand using ATR distance.
โข Zones visualize potential reaction and rejection areas.
Volume Context per Swing โ
โข Buy and sell volume are accumulated during each swing leg.
โข Delta and total volume are displayed in the dashboard.
Smart Dashboard โ
โข Displays each stored swing percentage.
โข Shows calculated swing projection value.
Flexible Projection Method โ
โข Average: smooth and balanced.
โข Median: filters out extreme outliers.
โข Mode: focuses on the most common swing size.
Extendable Zones โ
โข Swing zones can optionally extend forward indefinitely.
๐ต HOW TO USE
Anticipate Swing Targets โ Use the projected swing line as a probabilistic price objective.
Combine with Structure โ Align projections with support, resistance, or liquidity zones.
Filter by Volume โ Confirm swing quality using delta and total volume metrics.
Adjust Sensitivity โ Tune swing length and historical sample size to match timeframe and volatility.
Context, Not Certainty โ Use projections as guidance, not fixed take-profit levels.
๐ต CONCLUSION
Future Swing transforms past swing behavior into a forward-looking projection model.
By combining swing structure, statistical aggregation, ATR zones, and volume analysis, it offers traders a structured way to estimate where the next meaningful price move may reach โ without relying on fixed targets or subjective assumptions.
CSS Reversal - VAThis indicator identifies a price action reversal pattern known as CSS (Candle Stop Setup). Unlike standard 3-candle patterns, this logic is dynamic and "hunts" for the true peak or valley before confirming a shift in momentum.
Core Logic & Rules
The script follows a specific sequence of "Initiation, Waiting, and Triggering" to ensure it captures high-probability reversals:
1. Initiation (The Sweep): The process starts when a candle (the Pivot) sweeps the liquidity of the previous candle.
Bearish: Candle 2 makes a higher high than Candle 1.
Bullish: Candle 2 makes a lower low than Candle 1.
2. Identifying the Extreme: The script tracks the absolute highest high (for bearish) or lowest low (for bullish) during the setup. If a subsequent candle goes higher/lower without triggering a close, the "mark" moves to that new extreme candle.
3. The Waiting Room (Inside Bars): The setup remains active even if several candles follow that do not break out of the Pivot's range. The script can wait indefinitely (e.g., 3, 4, or 5+ candles) as long as the original extreme is not breached.
4. The Trigger (The Confirmation): A signal is only confirmed when a candle closes past the opposite side of the extreme candle's body.
Bearish Trigger: A candle closes below the Low of the highest candle.
Bullish Trigger: A candle closes above the High of the lowest candle.
5. Retrospective Marking: Once the trigger close occurs, the script automatically places a visual marker (arrow) on the actual extreme candle (the peak or valley), even if that candle occurred several bars ago.
Visual Indicators
Red Arrow (โ): Placed at the high of the highest candle in a confirmed bearish reversal.
Green Arrow (โ): Placed at the low of the lowest candle in a confirmed bullish reversal.
Use Cases
This script is designed for traders who look for Liquidity Sweeps and Market Structure Shifts. It filters out "fake" reversals where price merely wicks past a level without a solid closing confirmation, and it specifically accounts for "inside bar" periods where price consolidates before making its move.
GLOBAL 3H SCALPING (BTC FILTER)๊ธ๋ก๋ฒ ๋ฉํฐ ์ธ์
& BTC ํํฐ ๊ณ ๊ฐ๋ ์ค์บํ ์๊ณ ๋ฆฌ์ฆ ๊ธฐ์ ๋ณด๊ณ ์
ํ์ธ ์คํฌ๋ฆฝํธ v5์ ๊ธฐ์ ์ ํจ๋ฌ๋ค์๊ณผ ์๊ณ ๋ฆฌ์ฆ ํธ๋ ์ด๋ฉ์ ์งํ
๊ธ์ต ์์ฅ์ ๋์งํธํ๊ฐ ๊ฐ์ํ๋จ์ ๋ฐ๋ผ ๊ฐ์ธ ํธ๋ ์ด๋์ ๊ธฐ๊ด ํฌ์์ ๋ชจ๋ ์ ๊ตํ ์๊ณ ๋ฆฌ์ฆ์ ํ์ฉํ์ฌ ์์ฅ์ ๋นํจ์จ์ฑ์ ํฌ์ฐฉํ๋ ค๋ ์๋๋ฅผ ์ง์ํ๊ณ ์๋ค. ํ์ธ ์คํฌ๋ฆฝํธ v5๋ ๋ค์์คํ์ด์ค ๊ธฐ๋ฐ ์ํคํ
์ฒ๋ฅผ ๋์
ํ์ฌ ์ฝ๋์ ๊ฐ๋
์ฑ๊ณผ ์คํ ํจ์จ์ฑ์ ๊ทน๋ํํ์์ต๋๋ค. ๋ณธ ๋ณด๊ณ ์์์๋ ๊ธฐ์กด ์ฝ๋์ ๊ตฌ๋ฌธ ์ค๋ฅ๋ฅผ ์์ ํ๊ณ , ์์์ยท์ ๋ฝยท๋ฏธ๊ตญ ์ธ์
๋ฐ ๋นํธ์ฝ์ธ(BTC) ์ปคํ๋ง ํํฐ๋ฅผ ํฌํจํ ์ต์ ํ๋ ์คํฌ๋ฆฝํธ๋ฅผ ์ ๊ณตํฉ๋๋ค.
๐ GLOBAL 3H SCALPING (BTC FILTER) ์ ์ฒด ์ฝ๋
์ด ์ฝ๋๋ ๋ชจ๋ ์ธ์
(์์์/์ ๋ฝ/๋ฏธ๊ตญ)์ 3์๊ฐ ๊ณจ๋ ์์๋ฅผ ํฌ์ฐฉํ๋ฉฐ, ๋นํธ์ฝ์ธ์ ์ถ์ธ๊ฐ ์ํธ์ฝ์ธ๊ณผ ์ผ์นํ ๋๋ง ์ ํธ๋ฅผ ์์ฑํ๋ '์ปคํ๋ง ํํฐ'๊ฐ ๋ด์ฅ๋ ์ต์ข
๋ฒ์ ์
๋๋ค.
Pine Script
//@version=5
indicator("GLOBAL 3H SCALPING (BTC FILTERED)", overlay=true, max_lines_count=300, max_labels_count=100)
//โโโโโโโโโโโโโโโโโโโโ
// โฐ ์ธ์
์ ์ (ํ๊ตญ ์๊ฐ KST ๊ธฐ์ค)
//โโโโโโโโโโโโโโโโโโโโ
string tz = "Asia/Seoul"
string asiaSess = "0900-1200"
string euSess = "1600-1900"
string usSess = "2300-0200"
f_getFocus(sessionStr) =>
inSess = not na(time(timeframe.period, sessionStr, tz))
start = inSess and not nz(inSess , false)
float tfInSec = timeframe.in_seconds()
int bars3H = math.max(1, math.round(10800 / tfInSec))
int barsSinceStart = ta.barssince(start)
bool focus = inSess and (not na(barsSinceStart) and barsSinceStart < bars3H)
focus
bool asiaFocus = f_getFocus(asiaSess)
bool euFocus = f_getFocus(euSess)
bool usFocus = f_getFocus(usSess)
bool totalFocus = asiaFocus or euFocus or usFocus
bgcolor(asiaFocus? color.new(color.green, 92) : na, title="Asia Focus")
bgcolor(euFocus? color.new(color.blue, 92) : na, title="EU Focus")
bgcolor(usFocus? color.new(color.red, 92) : na, title="US Focus")
//โโโโโโโโโโโโโโโโโโโโ
// ๐ BTC ์ปคํ๋ง ํํฐ (BTC Trend Filter)
//โโโโโโโโโโโโโโโโโโโโ
// ๋นํธ์ฝ์ธ์ ์ถ์ธ๋ฅผ ์ค์๊ฐ์ผ๋ก ๊ฐ์ ธ์ ์ํธ์ฝ์ธ ๋งค๋งค์ ์์ ์ฅ์น๋ก ํ์ฉํจ
float btcPrice = request.security("BINANCE:BTCUSDT", timeframe.period, close)
float btcEMA = request.security("BINANCE:BTCUSDT", timeframe.period, ta.ema(close, 200))
bool btcBullish = btcPrice > btcEMA
bool btcBearish = btcPrice < btcEMA
//โโโโโโโโโโโโโโโโโโโโ
// ๐ ๊ธฐ์ ์ ์งํ (Altcoin ์์ฒด ์งํ)
//โโโโโโโโโโโโโโโโโโโโ
float ema200 = ta.ema(close, 200)
plot(ema200, title="EMA200", color=color.new(color.yellow, 0), linewidth=2)
float vwapVal = ta.vwap(hlc3)
plot(vwapVal, title="VWAP", color=color.new(color.aqua, 0), linewidth=2)
float volMA = ta.sma(volume, 20)
bool volOK = volume > volMA
bool longVWAP = low <= vwapVal and close > vwapVal
bool shortVWAP = high >= vwapVal and close < vwapVal
//โโโโโโโโโโโโโโโโโโโโ
// ๐ ์ง์
์กฐ๊ฑด (BTC ํํฐ ํตํฉ)
//โโโโโโโโโโโโโโโโโโโโ
bool longCond = totalFocus and close > ema200 and close > vwapVal and longVWAP and volOK and btcBullish
bool shortCond = totalFocus and close < ema200 and close < vwapVal and shortVWAP and volOK and btcBearish
plotshape(longCond, title="LONG", location=location.belowbar, style=shape.triangleup, size=size.small, color=color.lime, text="LONG")
plotshape(shortCond, title="SHORT", location=location.abovebar, style=shape.triangledown, size=size.small, color=color.red, text="SHORT")
//โโโโโโโโโโโโโโโโโโโโ
// ๐ง ์ค์๊ฐ ํตํฉ ๋์๋ณด๋
//โโโโโโโโโโโโโโโโโโโโ
var label infoLabel = na
if barstate.islast
label.delete(infoLabel)
string sessName = asiaFocus? "ASIA" : euFocus? "EUROPE" : usFocus? "US" : "WAITING"
string labelText = "GLOBAL ALGO (BTC FILTERED) ๐ " +
"-------------------------- " +
"Active Session: " + sessName + " " +
"BTC Trend: " + (btcBullish? "BULLISH ๐ข" : "BEARISH ๐ด") + " " +
"Alt Trend: " + (close > ema200? "BULLISH" : "BEARISH") + " " +
"Volume: " + (volOK? "STRONG" : "WEAK")
infoLabel := label.new(
x = bar_index,
y = high,
text = labelText,
style = label.style_label_left,
color = color.new(color.black, 20),
textcolor = color.white
)
๐ Comprehensive User Manual (EN/KR)
1. English: Multi-Session & BTC Filtered Scalping Guide
Core Philosophy
The "Golden Hours" strategy focuses on the first 3 hours of global market openings when volatility and liquidity are at their peak . By filtering altcoin signals with the Bitcoin (BTC) trend, we ensure high-probability entries aligned with the overall market momentum .
Session Schedule (Korea Standard Time - KST)
The indicator highlights three major trading windows :
Asia Focus (Green): 09:00 โ 12:00 KST (Tokyo/Seoul opening).
Europe Focus (Blue): 16:00 โ 19:00 KST (London opening).
US Focus (Red): 23:00 โ 02:00 KST (New York opening).
Trading Rules
Long (Buy) Entry Conditions:
Zone: Price must be within one of the colored Focus Zones.
BTC Filter: BTC must be trading above its EMA 200 (Market Sentiment: Bullish) .
Alt Trend: Altcoin price must be above its own EMA 200.
Value: Price is above VWAP.
Reaction: Candle low touches or dips below VWAP, then closes above it (Pullback) .
Volume: Current volume is higher than the 20-period average.
Short (Sell) Entry Conditions:
Zone: Price must be within one of the colored Focus Zones.
BTC Filter: BTC must be trading below its EMA 200 (Market Sentiment: Bearish).
Alt Trend: Altcoin price must be below its EMA 200.
Value: Price is below VWAP.
Reaction: Candle high touches or goes above VWAP, then closes below it (Rejection).
Volume: Current volume is higher than the 20-period average.
Professional Risk Management
1% Rule: Never risk more than 1% of your total capital on a single trade .
Leverage: Use 1xโ5x for beginners, and 5xโ20x for advanced traders only with tight stop-losses .
Stop-Loss: Place stop-losses 0.1%โ0.5% away from the entry point or at the most recent swing high/low .
EMA 200 Color ChangeEMA 200 Color Change show the trend for price, if green with green shade then trend positive and if red with red shade then we assume trend is negative.
NY Open 60-Min VarBox + Pure ICT FVG V8This is little indicator that shows the NY-Stock Exc. opening candles with a vertical line and a label. It works for different time scales. It also finds the bullish FVGs. It is a good tool for those who follow the opening of the exchange.






















