Reversal Detection System v3.3═══════════════════════════════════════════════════
REVERSAL DETECTION SYSTEM v3.3
Professional Multi-Feature Market Structure Analysis
═══════════════════════════════════════════════════
Born from 40+ years of trading experience across commodities, stocks, and futures markets. After founding multiple successful companies including Anchor Financial and U.S. Investors Group, I shifted focus entirely to trading, spending 12 years specializing in micro futures scalping (MNQ, MES, MYM, MGC, MCL). This system represents 20+ years of indicator development on ThinkScript, now converted to TradingView to help the trading community.
DEVELOPER: NPR21 - Retired sales executive, professional day trader, second-degree black belt in Tae Kwon Do (discipline shapes trading mindset). Converting my personal ThinkScript library to TradingView to share proven tools with the community.
═══════════════════════════════════════════════════
CORE FEATURES
═══════════════════════════════════════════════════
✓ REVERSAL DETECTION - Adaptive ATR-based with 5 sensitivity presets (Very High to Very Low) plus custom mode. Non-repainting confirmed signals with optional preview.
✓ SMART MONEY CONCEPTS - BOS (Break of Structure) continuation signals and CHoCH (Change of Character) reversal warnings. Fractal-based institutional footprint tracking.
✓ PREMIUM/DISCOUNT ZONES - Three-zone price structure (Premium/Equilibrium/Discount) with volume-based strength analysis. Shows actual buy/sell pressure from last 20 bars with Strong/Weak High/Low labels.
✓ ORDER BLOCKS - Volumetric split visualization showing buy/sell pressure ratios. Automatic mitigation detection with breaker zones (flipped polarity). Shows institutional entry zones.
✓ FAIR VALUE GAPS (FVG) - Three-candle gap detection with 50% Consequent Encroachment lines. Dynamic fill percentage tracking with auto-cleanup when filled.
✓ MOBIUS TREND PIVOTS - Institutional-grade pivot system with True Range-based target zones. Dynamic cloud visualization with real-time long/short entry signals and risk offset lines.
✓ STRONG/WEAK HIGHER HIGHS & LOWER LOWS - Market structure shift detection with strength percentages showing momentum conviction.
✓ SUPPLY/DEMAND ZONES - Rectangular zones at confirmed reversal pivots with adjustable display limits.
═══════════════════════════════════════════════════
WHY THIS WORKS
═══════════════════════════════════════════════════
Each feature captures different institutional behavior:
- Premium/Discount = Where smart money accumulates vs distributes
- Order Blocks = Exact zones where institutions placed large orders
- BOS/CHoCH = Trend structure confirmation and reversal warnings
- FVG = Inefficient price discovery that gets filled
- Mobius = Pivot-based target zones with high hit rates
- Volume Strength = Actual order flow conviction (not price-based guesses)
═══════════════════════════════════════════════════
QUICK START
═══════════════════════════════════════════════════
1. Choose sensitivity: High (1-5m), Medium (15m-1H), Low (4H-Daily)
2. Enable features you want (all ON by default)
3. Set ONE alert: "STRONG Bullish/Bearish Signal" for best setups
4. Paper trade 1-2 months before going live
SCALPERS (1-5m): Use Very High sensitivity, focus on Order Blocks + Mobius signals
DAY TRADERS (15m-1H): Use Medium sensitivity, focus on BOS/CHoCH + Premium/Discount
SWING TRADERS (4H-Daily): Use Low sensitivity, focus on major structure + Strong/Weak HL
═══════════════════════════════════════════════════
CUSTOMIZATION
═══════════════════════════════════════════════════
- Independent text size controls for ALL label types (Tiny/Small/Normal/Large)
- Adjustable swing high/low line width (1-5)
- Customizable zone extensions and lookback periods
- Color customization for all components
- Toggle each feature independently
- Real-time info dashboard showing active features
═══════════════════════════════════════════════════
ALERT SYSTEM
═══════════════════════════════════════════════════
Available alerts:
- Bullish/Bearish Reversals
- BOS and CHoCH (structure breaks)
- Fair Value Gaps
- Mobius pivot crossovers
- Strong confluence signals (reversal + trend aligned)
Recommended: Start with "STRONG Bullish/Bearish Signal" - these require multiple confirmations and have highest win rates.
═══════════════════════════════════════════════════
WORKS ON
═══════════════════════════════════════════════════
✓ All timeframes (1m to Monthly)
✓ All instruments (Stocks, Forex, Futures, Crypto, Indices)
✓ Tested extensively on micro futures (MNQ, MES, MYM, MGC, MCL)
═══════════════════════════════════════════════════
IMPORTANT NOTES
═══════════════════════════════════════════════════
- This indicator provides technical analysis signals - NOT financial advice
- Always use proper risk management (1-2% risk per trade maximum)
- Past performance does not guarantee future results
- Combine with price action and fundamental analysis
- Test thoroughly on paper/demo before live trading
- Best results come from understanding WHY features work, not blindly following signals
═══════════════════════════════════════════════════
COMPREHENSIVE GUIDE
═══════════════════════════════════════════════════
For detailed usage instructions including:
- Step-by-step trade examples for Forex, Futures Scalpers, and Swing Traders
- Multi-timeframe confirmation strategies
- Alert configuration guide
- Troubleshooting and optimization
- Performance tracking methods
Visit: docs.google.com
═══════════════════════════════════════════════════
CREDITS
═══════════════════════════════════════════════════
Inspiration from Michael J. Huddleston & ICT (Inner Circle Trader) for Smart Money Concepts framework. Mobius for trend pivot methodology. The trading community for decades of shared knowledge.
═══════════════════════════════════════════════════
VERSION HISTORY
═══════════════════════════════════════════════════
v3.3 (January 27, 2026) - Added Premium/Discount zones with volume strength, Mobius pivots, Strong/Weak HL detection, enhanced customization
v3.2 (January 2026) - Enhanced order blocks, FVG tracking, info table
v3.1 (January 2026) - Initial TradingView release
볼륨
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
Institutional Alpha Vector | D_QUANT Institutional Alpha Vector | D_QUANT
Overview
The Institutional Alpha Vector (IAV) is an original trend-following framework that replaces single-indicator bias with a Weighted Composite Score . Instead of relying on a simple moving average, this script aggregates four distinct quantitative dimensions—Price, Momentum, Volatility, and Volume—into a normalized value called the "Alpha Vector."
The goal of this tool is to identify "Institutional Consensus"—periods where multiple mathematical models align in the same direction, reducing the likelihood of false breakouts in choppy markets.
How It Works: The Quantitative Engines
The script calculates four independent signals. For each module, a state is stored (1 for Bullish, -1 for Bearish, 0 for Neutral).
1. Price Filter (Hull Moving Average):
The script uses an HMA (a weighted moving average that reduces lag by using the square root of the period). A signal is triggered when the price crosses over/under this "Spine."
2. Volatility Regime (RMA + ATR):
This module uses a Moving Average (RMA) combined with an Average True Range (ATR) offset. It acts as a volatility filter that price must move beyond 1 ATR from the mean to register a trend, ensuring the market isn't just "drifting."
3. Momentum Physics (ADX/DMI):
Based on J. Welles Wilder’s Directional Movement Index. It checks if the is above (or vice versa) but only if the ADX (Average Directional Index) is above a user-defined threshold (default: 10), confirming the presence of a strong trend.
4. Institutional Flow (Chaikin Money Flow):
This confirms price action with volume. It calculates the accumulation/distribution of money flow over a specific period. A signal is only valid if the CMF is positive (Bullish) or negative (Bearish).
The Alpha Vector Calculation
This is the core "originality" of the script. The indicator takes the active modules and calculates a Composite Score :
This results in a value between -1.0 and +1.0 .
* High Confidence Long: When the score exceeds +0.1 (adjustable).
* High Confidence Short: When the score drops below -0.1 (adjustable).
* Neutral Zone: When the score is near 0, the script colors the bars grey, signaling a lack of institutional consensus.
Visual Intelligence: The "Electric Conduit"
The script visualizes market energy through a custom rendering engine:
* The Spine: A central line representing the HMA trend.
* The Conduit (Fill): A dynamic gradient that expands or contracts based on the ATR (Average True Range) . This allows traders to see "volatility expansion" (wide ribbon) vs "compression" (tight ribbon) at a glance.
* Bar Coloring : Automatically aligns the chart candles with the Alpha Vector state to remove cognitive load.
How to Use
1. Define your Strategy: In the settings, you can toggle specific modules. If you are trading a low-volume asset, you might disable the **CMF** module.
2. Identify the Consensus: Look for the ribbon to change from Grey (Neutral) to Cyan/Gold.
3. Monitor the HUD: A small dashboard in the bottom right displays the live Alpha Vector score. A score of 1.0 means all four engines are in 100% bullish agreement.
Disclaimer: Trading involves significant risk. This tool is for educational and analytical purposes and does not constitute financial advice.
Cycle & Flow Indicator - D_QuantCycle & Flow Architecture (CFA) | Multi-Factor Regime Analysis
Overview
The Cycle & Flow Architecture (CFA) is a trend-following visualization engine that utilizes a triple-confirmation "Voting Mechanism" to identify market regimes. Rather than relying on a single lagging indicator, the CFA aggregates Cyclical Momentum, Directional Bias, and Volume Flow from the Daily timeframe to provide a unified consensus signal on your current chart.
The goal of this script is to filter market noise by requiring a quantitative agreement between three non-correlated mathematical models before a "Regime Change" is visualized.
The Quantitative Logic
The core of the CFA is its Aggregation Engine, which calculates a normalized Quant Score ranging from -1.0 to +1.0. The engine polls three distinct components:
Schaff Trend Cycle (STC): This component identifies the cyclical nature of price. It applies a double-smoothed stochastic process to a MACD line. In this script, the STC contributes a bullish signal when the cycle is above 25 and a bearish signal when the cycle is below 75 and falling.
Parabolic SAR (PSAR): Used as a rigid directional filter. It calculates the "Stop and Reverse" points, if the price is above the PSAR, it contributes a +1 to the consensus, if below, a -1.
Ease of Movement (EOM): This is the volume-validation component. It analyzes the relationship between price change and volume. A positive EOM suggests price is moving up on light resistance (conviction), while negative EOM suggests easy downward movement.
How it Works: The Voting Mechanism
The script calculates these three values on the Daily (D) timeframe using request.security to ensure higher-timeframe confluence.
Bullish Regime: Triggered when the average score exceeds the Bullish Threshold (Default: 0.2).
Bearish Regime: Triggered when the average score falls below the Bearish Threshold (Default: -0.2).
Neutral Regime: When the components disagree or the scores hover near zero, the engine renders a "Grey" noise state, signaling a high-probability "sit on hands" environment.
How to Use
The Ghost Cloud: The central Hull Moving Average (HMA 20) acts as the baseline. The "cloud" fills between this baseline and the price, colored by the current Score.
Volatility Extensions: The script plots ATR-based bands (14-period) that only appear during confirmed regimes. In a Bullish regime, the upper band appears, in a Bearish regime, the lower.
Trade Execution: Traders typically look for the "Bullish/Bearish Start" alerts to signal the beginning of a new regime and use the "Grey" neutral zones to tighten stop-losses or exit positions.
Settings
Thresholds: Increase the Bullish/Bearish thresholds (e.g., to 0.5) to require more stringent agreement between the STC, PSAR, and EOM.
Timeframe Note: The calculations are hardcoded to the Daily timeframe to provide a "North Star" directional bias regardless of whether you are viewing the 15m or 4h chart.
Disclaimer: This tool is for educational and analytical purposes only. Quantitative models represent mathematical probabilities, not guarantees.
© D_QUANT
Trend Line & Delta Montosca [English v33.7]This indicator, Trend Line & Delta Montosca , is a high-precision tool designed to identify institutional entry points by combining price action structure with real-time volume sentiment (Order Flow).
Here is a breakdown of its core logic and operational flow:
1. Market Structure & Trendline Analysis
The indicator starts by identifying "Pivot Highs" and "Pivot Lows" based on the Sensitivity settings you chose.
Pivot Connect Method: It draws trendlines connecting these key structural points. A "Long" bias is established when a trendline is broken to the upside, and a "Short" bias when broken to the downside.
BOS (Break of Structure): It monitors when the price closes above the previous high or below the previous low to confirm the current market phase (Bullish or Bearish).
2. Intermarket Synchronization (ES + NQ)
This is a unique "Institutional" filter. The script checks a secondary symbol (e.g., NQ if you are trading ES) to ensure the move is happening across the entire market.
If both instruments hit a pivot at the same time, the trendline is drawn thicker, indicating higher institutional conviction.
3. Order Flow Validation (Delta)
Breaking a trendline is not enough; it must be backed by "Smart Money" volume. The indicator uses Lower Timeframe (LTF) Intrabar Data to calculate the Delta:
Strength Filter: It checks if the buying/selling volume in a single candle exceeds a specific percentage (set to 75% by default).
Efficiency Filter: It identifies "Absorption" where the price moves aggressively with lower volume, suggesting a lack of resistance.
4. Inverted FVG (Fair Value Gap) Reaction
The final "trigger" is often the reaction to a Fair Value Gap.
The script tracks bearish and bullish FVGs.
The Inversion Logic: A "Long" signal is only validated if the price "inverts" a bearish FVG (closes above it), treating the old resistance as new institutional support.
5. Blue Sky Filter (ATH)
When the price is at an All-Time High (ATH), traditional FVG reactions might not exist. The script includes an optional "Blue Sky" logic that allows for trend-following entries even if there is no previous FVG to invert, as long as the structural breakout and Delta are present.
Visualization Summary
Labels: Clearly mark "LONG" or "SHORT" at the exact candle of entry.
Snapshots: To help you review your trades, the script leaves a "visual footprint" (the trendline and the FVG box) that caused the signal, so you can see the exact institutional context after the trade has moved.
Stock ScreenerMissing great trade opportunities is annoying, and unless you have 12 screens or only trade one market, you are missing a lot of trades. To fix that, we created this stock screener so you get notified instantly of potential great trading conditions in real time, right on your chart.
You get notified of trading benchmarks being met by the value being displayed on the scanner as well as a color change so that it grabs your attention and makes you aware that you should take a look at the other market and look for a potential trade. It also has built in alerts so you can have an alert notification go off when any of your trading conditions are met instead of needing to watch the scanner for color changes.
The screener will change the ticker symbol background color to red green when price is above or below the previous daily range and above or below both VWAPs. This signals that the ticker is trending, which typically means it is a great time to trade that market and follow the trend.
This stock screener allows you to scan up to 10 different markets at the same time for various different conditions so you always know what is going on with your favorite trading symbols. If you want to scan more tickers, just add the indicator to your chart again and change the table position to the other side of the screen and update the tickers on the 2nd screener, allowing you to have 20 tickers at a time.
The scanner can be fully customized by changing the markets that it screens and turning on or off as many of them as you would like. You can also turn on or off any of the different data sets so that you only get information about trading conditions that matter to you.
The screener can provide data on any type of market, such as stocks, crypto, futures, forex and more. Each ticker can be adjusted to whatever market you would like it to scan for data in the settings panel, the only limitation is that it will not provide data for the VWAP and volume trend score if the ticker you are screening does not provide volume data.
Screener Features
The scanner will provide the following types of data for each ticker that is turned on:
Volume - Provides a volume score compared to the average volume and notifies you of higher than normal volume and volume spikes on individual bars by changing colors.
Volatility - Provides a volatility score compared to the average volatility and notifies you of higher than normal volatility by changing colors.
Oscillator - Choose between the RSI or CCI. The value of that oscillator will be displayed and will notify you when values are in extreme ranges such as overbought or oversold conditions according to the threshold values you enter in the settings panel. When those thresholds have been breached, you will be notified by it changing color.
Big Candles - Compares the current candle to average previous candle sizes, and changes color to notify you of big candles including a big top wick, big bottom wick, big candle body and big candle high to low range.
Daily Level Touches & Trends - Calculates and displays various daily candle and intraday open price levels that act as support and resistance. Notifies you when price is touching any of the daily levels that are turned on. The levels you can have on are as follows: previous day high, previous day low or previous day open. It also will notify you when price is touching the current day’s open, NY 930am open, Asia 8pm open, London 2am open and NY midnight 12am open. It will also say “Above” if price is above the previous day’s high or it will say “Below” if price is below the previous day’s low. The color of the cell will also change when a level touch is happening or price is above the previous day high or below the previous day low.
VWAP - Choose from 2 different VWAP lengths, default settings are daily and weekly VWAPs. You will get notified if price touches either of the VWAPs and they will also say “Above” or “Below” if price is currently above or below each VWAP.
How To Use The Screener To Help You Trade
The main purpose of the screener is to scan other markets and notify you of potential good trading opportunities such as price bouncing off of the daily levels or VWAPs. It can also be used to know when price is trending according to the VWAPs and daily levels. Lastly, you can use it to know how the volume and volatility trends are currently which gives you more confidence in taking a trade with this data when volume and volatility are present.
Volume Score
When volume is high, this represents a good time to trade because there are many market participants and price is likely to be volatile while there is high volume which can present a lot of good trade setups for you to take.
The volume score shown on the screener measures the current volume trend compared to previous volume trends and calculates that into a score based on 100 being the same as the previous volume trend. So any value above 100 means it is high volume and any value less than 100 means it is lower volume than normal.
In the settings panel, you can adjust the volume threshold that needs to be met for a volume notification to show up. The default setting is at 120, so you will get notified when the current volume trend score is 120 or higher or you can adjust that threshold value to whatever value you prefer.
It also will notify you when there is a volume spike on the current bar. This is determined by calculating an average of the recent volume totals and then checking to see if the current bar is greater than or equal to that average multiplied by 3. So if a single bar has volume that is greater than 3 times what the average volume is, then you will get a notification that says “Spike” to make you aware of that volume spike.
The volume trend threshold, volume spike multiplier and lookback length for the average volume used in volume spike calculations can all be adjusted in the settings panel to fit your desired preferences.
Volatility Score
High volatility can mean it is a great time to trade because the market is moving quickly and providing large enough movements that you can get in and out in a short amount of time, while still accruing decent sized trade PnL.
The volatility score will calculate the current volatility for each market compared to previous conditions and then divide the current volatility by the average volatility to give you a volatility score. Anything over 100 means the market is decently volatile and you should look at that market to find potential trade setups to execute on. Anything below 100 means the market is not very volatile and it is usually best to just wait until volatility returns before you start trading again.
The screener will notify you when the volatility score is above the threshold you set. The default value is set to 90, but can be adjusted to your preference. Pay attention to any market that shows an alert and take a look at that chart because the high volatility may present a good trade setup for you in the near future.
Oscillator Score
The oscillator data can be switched between Relative Strength Index(RSI) and Commodity Channel Index(CCI).
The RSI provides a value between 0 and 100 that indicates the momentum and strength of the recent price action. Many traders use the extremes of the 0-100 range to signal overbought or oversold conditions and use that as a sign to look for price to reverse in the near future. The typical values used for this and the default settings to provide notifications are: 70 for overbought and 30 for oversold. The scanner will notify you when the RSI value is considered overbought or oversold so you know to take a look at the chart and analyze if it is ready for a trade to be taken.
The CCI provides a value that can be used to determine the trend strength of the underlying asset when the oscillator moves above 100 or below -100. These extreme values are outside of the normal accumulation range and signify that price is moving strongly in that direction so it may be a good time to take a trade in the direction of the trend. The scanner will show you the value of the CCI for each market and notify you if that value is above 100 or below -100.
Both RSI and CCI settings can be adjusted in the settings panel to your desired settings so you have the exact oscillator settings you prefer to use as well as the exact values that you want to use for being notified.
Big Candles
Big candles can mean that many traders are buying or selling at the same time and many times indicate a good signal to trade in that same direction. That is why we included this calculation in the screener, so you are always aware when a large candle prints.
It calculates the average size of the recent candles and then uses that average as the benchmark to determine if the current candle is considered big and worthy of notifying you to take a look at that chart.
You can adjust the multiplier used for the big candle threshold to whatever you desire, but the default setting is 3 which means the candle will be considered big and notify you if it is 3 times as large as an average candle.
The big candles data will track the following candle values and notify you with these labels:
High to Low candle size = HL
Candle Body from open to close candle size = OC
Top Wick size = TW
Bottom Wick size = BW
Daily Level Touches & Trend
Daily level touches are excellent levels to watch for price to bounce because they often act as support and resistance levels for intraday trading. The scanner will track each market and notify you when the current candle is touching any of the daily levels that you have turned on in the settings panel.
The main levels that are turned on by default and are useful for all markets and how they will be labeled on the scanner are as follows:
Previous Day High = High
Previous Day Low = Low
Previous Day Open = < Open
Previous Day Close = Close
Current Day Open = Open
We also included some extra levels that are useful for futures traders. They are as follows:
NY 930am Open = 930am
NY 12am Midnight Open = 12am
Asia Open at 8pm NY time = Asia
London Open at 2am NY Time = London
Watch how price reacts to these levels and then trade the bounces off of these levels if the price action confirms that it is going to respect that level.
When price is currently above the previous day high, the scanner will say “Above” and show a green color, indicating a bullish trend and that price is above the previous daily candle’s high.
When price is currently below the previous day low, the scanner will say “Below” and show a red color, indicating a bearish trend and that price is below the previous daily candle’s low.
Pay attention to when price is trending above or below the previous daily candle as those trends can provide excellent trend trading opportunities.
The daily levels that you have turned on in the settings will also show as lines on the chart and include a label next to them, identifying each level so you know what each line represents. You can turn on or off all of the lines shown on the chart in the main settings or turn them off one by one in the style panel of the settings. Labels can also be turned on or off for all of the lines in the main settings panel. You can adjust the label positioning in the Label Offset section of the settings panel.
VWAP Touches & Trend
VWAP stands for volume weighted average price and is a very popular tool that traders use to determine trend direction based on volume as well as an excellent level to trade price bounces off of.
The typical VWAP time period used is Daily, which means the volume weighted average price will reset at the beginning of a new day. We set the first VWAP to be the daily VWAP by default and the second one to be the weekly VWAP. You can adjust both of the time periods to be any of the provided time lengths that you choose.
The screener will show “Above” with a green background color when price is above the VWAP, indicating a bullish trend. It will show “Below” with a red background color when price is below the VWAP, indicating a bearish trend. When both VWAPs are showing Above or Below, you can expect price to trend in that direction, so look for pullbacks you can trade in the direction of the trend. If the VWAPs are showing different directions, then you should expect to bounce back and forth between the VWAPs, but be careful and watch out for price to break beyond either one and start a trend.
When the current candle is touching the VWAP, the scanner will change colors and say VWAP to notify you that price is touching the VWAP and you should look at that chart and analyze the market for a potential bounce off of the VWAP to trade.
Trending Market Signals
Strong trends are excellent markets to trade and can many times provide excellent trading opportunities that don’t require expert price action reading skills to be able to take winning trades from. That is why we included a signal to notify you of a strong trending market.
The strong trending market will show up as a green or red background color for the ticker name. If the color of the ticker name is green, it is notifying you that the price is above the previous daily high, above VWAP 1 and above VWAP 2 and is a good market to look for bullish trend trades. If the color of the ticker name is red, it is notifying you that the price is below the previous daily low, below VWAP 1 and below VWAP 2 and is a good market to look for bearish trend trades.
Changing The Tickers It Scans
To change the tickers that the indicator scans, scroll near the bottom of the settings panel and select the ticker symbol you want to update and then search for the exact symbol you want to use. If you want to scan less tickers, then just turn some of the tickers off that you don’t need.
Scanning More Than 10 Tickers
If you want to scan more than 10 tickers, you can add the scanner to your chart again and then just change the table position to the other side of the screen. This will allow you to scan 10 more tickers that will show up separately. Then if you want even more, just add the indicator to your chart again and update the table position until you have as many markets as you want. The table position setting can be found at the bottom of the main settings panel.
Alerts
The screener has alerts that can be used to notify you when any of the data set thresholds have been met or if price is touching one of the levels. You can set alerts for the following events:
Bullish Trend Alert - Price is above the previous daily high and above both VWAPs.
Bearish Trend Alert - Price is below the previous daily low and below both VWAPs.
High Volume Alert - Volume is higher than the threshold or a volume spike is detected.
High Volatility Alert - Volatility is higher than the threshold.
Oscillator Is Extended Alert - Oscillator value has exceeded the upper or lower threshold.
Big Candle Alert - A big candle has been detected.
Daily Level Touch Alert - One of the daily levels that is turned on is being touched.
VWAP Touch Alert - One of the 2 VWAPs are being touched.
An alert will trigger when any one of tickers on your scanner meets the alert conditions, so when you see the alert, you will need to go to your chart and look at the scanner to see which ticker it was and then navigate to that chart to look for potential trade setups.
The alerts will use the exact same settings you have configured in the settings panel to send you alert notifications. With normal settings, this could give you a lot of alerts, so if you only want alerts to fire when abnormal conditions are being met, try setting up a second screener on your chart that has very high threshold values and only has the most important level touches on. Then turn the setting "Do Not Show The Screener On The Chart" to off so the calculations will still run and fire alerts, but won't clog up your charts. This way you can only get alert notifications when major events happen but still have your normal screener settings available on your chart.
Markets This Can Be Used On
This screener uses the price action and volume data so you can use it to scan any type of market you would like as long as the ticker you are scanning has price and volume data feeds. If a market does not have volume data, then it will just show NaN in the volume row and the VWAP rows will not show anything.
AI Academy: Volume k-NN [PhenLabs]📊 AI Academy: Volume k-NN
Version: PineScript™ v6
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
📌 Description
AI Academy: Volume k-NN (Theory Edition) is an educational indicator designed to demystify how artificial intelligence pattern recognition works directly on your TradingView charts. Rather than being a black-box signal generator, this tool visualizes the entire k-Nearest Neighbors algorithm process in real-time, showing you exactly how AI identifies similar historical patterns and generates predictions.
The indicator scans up to 2,000 historical bars to find patterns that match your current price action, then uses an ensemble of the closest matches to project potential future movement. What sets this apart is the integrated “AI Grimoire”—an interactive educational book overlay that teaches core machine learning concepts through four illuminating chapters.
Whether you’re a trader curious about AI methodology or a developer learning algorithmic concepts, this indicator transforms abstract machine learning theory into tangible, visual understanding.
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
🚀 Points of Innovation
• First TradingView indicator to visualize k-NN algorithm execution in real-time with full transparency
• Interactive “AI Grimoire” educational overlay teaches machine learning concepts while you trade
• Dual-mode pattern matching combines price action with optional volume confirmation
• Confidence-based opacity system visually communicates prediction reliability
• Historical match visualization shows exactly which past patterns informed the prediction
• Ghost bar projections display averaged ensemble predictions with adjustable forecast horizons
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
🔧 Core Components
• Pattern Capture Engine: Converts recent price action into logarithmic returns for normalized comparison across different price levels
• k-NN Search Algorithm: Calculates Euclidean distance between current pattern and historical patterns to find closest matches
• Volume Weighting System: Optional feature that incorporates volume patterns into distance calculations with adjustable influence
• Ensemble Predictor: Averages future returns from k-nearest historical matches to generate consensus forecast
• Confidence Calculator: Measures average distance of top matches to determine prediction reliability on 0-100% scale
• AI Grimoire Display: Table-based educational overlay rendering book-style content with chapter navigation
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
🔥 Key Features
• Adjustable Pattern Length: Define how many bars constitute the current pattern for matching (5-100 bars)
• Configurable Search Depth: Control how far back the algorithm searches for historical matches (500-4,900 bars)
• Flexible k-Neighbors: Select how many closest matches inform the prediction (1-20 neighbors)
• Volume Toggle: Enable or disable volume pattern matching for different market conditions
• Volume Influence Slider: Fine-tune the weight given to volume vs. price patterns (0-100%)
• Ghost Bar Count: Adjust how many future bars the indicator projects (3-15 bars)
• Minimum Confidence Filter: Set threshold to hide low-confidence predictions
• Historical Match Display: Toggle visibility of colored boxes marking source patterns
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
🎨 Visualization
• Blue Scanner Box: Highlights current pattern being analyzed labeled “AI INPUT (The Prompt)”
• Green Historical Boxes: Mark past patterns where price subsequently moved bullish
• Red Historical Boxes: Mark past patterns where price subsequently moved bearish
• Ghost Bars: Semi-transparent candles projecting into the future showing predicted price path
• Confidence Label: Displays prediction confidence percentage and number of matches used
• AI Grimoire Book: Leather-bound book overlay in top-right corner with navigable chapters
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
📖 Usage Guidelines
Algorithm Settings
• Pattern Length — Default: 20 | Range: 5-100 | Controls how many recent bars define the pattern. Shorter values find more matches but less specific. Longer values find fewer but more precise matches.
• Search Depth — Default: 2000 | Range: 500-4900 | Determines how many historical bars to scan. Higher values find more potential matches but increase computation time.
• k-Neighbors — Default: 5 | Range: 1-20 | Number of closest matches to use for prediction. Higher values smooth predictions but may dilute strong signals.
• Ghost Bar Count — Default: 5 | Range: 3-15 | How many future bars to project. Shorter horizons are typically more reliable.
• Use Volume Matching — Default: Off | When enabled, patterns must match on both price AND volume characteristics.
• Volume Influence — Default: 30% | Range: 0-100% | Weight given to volume pattern when volume matching is enabled.
Visualization Settings
• Bullish/Bearish Match Colors — Customize colors for historical match boxes based on outcome direction.
• Min Confidence % — Default: 60 | Predictions below this threshold will not display.
• Show Historical Matches — Default: On | Toggle visibility of source pattern boxes on chart.
Education Settings
• Select Chapter — Navigate through AI Grimoire chapters or keep book closed for clean chart view.
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
✅ Best Use Cases
• Learning how k-Nearest Neighbors algorithm functions in a trading context
• Understanding the relationship between historical patterns and forward predictions
• Identifying when current market conditions resemble past scenarios
• Supplementing discretionary analysis with pattern-based confluence
• Teaching others machine learning concepts through visual demonstration
• Validating whether volume confirms price pattern formations
• Building intuition for what AI “sees” when analyzing charts
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
⚠️ Limitations
• Past pattern similarity does not guarantee future outcome similarity
• Requires sufficient historical data (minimum 500+ bars) to function properly
• Computation-intensive on lower timeframes with maximum search depth
• Cannot predict truly novel “black swan” events not represented in historical data
• Volume matching less effective on assets with inconsistent volume reporting
• Predictions become less reliable as forecast horizon extends further out
• Educational overlay may obstruct chart view on smaller screens
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
💡 What Makes This Unique
• Full Transparency: Unlike black-box AI tools, every step of the algorithm is visualized on your chart
• Integrated Education: The AI Grimoire teaches machine learning concepts without leaving TradingView
• Theory Meets Practice: See exactly which historical patterns inform each prediction
• Honest Uncertainty: Confidence scoring and opacity fading acknowledge when the AI “doesn’t know”
• Dual-Mode Analysis: Optional volume weighting adds institutional-quality analysis dimension
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
🔬 How It Works
1. Pattern Capture: On each bar, the indicator captures the most recent price changes as logarithmic returns, creating a normalized “fingerprint” of current market behavior. If volume matching is enabled, volume changes are captured similarly.
2. Historical Search: The algorithm iterates through up to 2,000 historical bars, calculating the Euclidean distance between the current pattern fingerprint and each historical pattern. Distance combines price similarity and optional volume similarity based on weight settings.
3. Neighbor Selection: All historical patterns are ranked by similarity (lowest distance = most similar). The k-closest matches are selected as the “ensemble council” that will inform the prediction.
4. Confidence Calculation: Average distance of top-k matches determines confidence. Tighter clustering of similar patterns yields higher confidence scores, while scattered or distant matches produce lower confidence.
5. Prediction Generation: Future returns from each historical match (what happened AFTER those patterns) are averaged together. This ensemble average is applied to current price to generate ghost bar projections.
6. Visualization: Historical match locations are marked with colored boxes (green for bullish outcomes, red for bearish). Ghost bars render with opacity tied to confidence level—higher confidence means more solid bars.
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
💡 Note:
This indicator is designed primarily for educational purposes —to help traders understand how AI pattern recognition algorithms function. While the predictions can supplement your analysis, they should never be used as the sole basis for trading decisions. The AI Grimoire chapters explain key concepts including why AI “hallucinates” during unprecedented market events. Always combine with proper risk management and additional confirmation.
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
Mitigation POI Master: OB + FVG ConfluenceOverview
The Mitigation POI Master is a Smart Money Concepts (SMC) tool designed to identify high-probability Points of Interest (POI). Unlike standard indicators that clutter your chart with every single block, this script focuses on the Confluence of two critical institutional footprints: Order Blocks (OB) and Fair Value Gaps (FVG).
Key Features
💎 Automated POI Detection: Finds overlapping areas between OBs and FVGs, marking them as premium Demand or Supply zones.
🧹 Smart Mitigation Engine: Real-time tracking of zone mitigation. Once a zone is touched or broken through (customizable), it is automatically removed to keep your chart clean.
⚡ Liquidity Sweep Filter: Includes an optional filter to only show Order Blocks that have successfully swept previous candle liquidity—a hallmark of true institutional intervention.
📊 Volume Confirmation: Integrated volume filter to ensure the zones are born from high-activity impulsive moves.
Settings
Timeframe Usage: This indicator performs best on higher timeframes (H1, H4, Daily) as institutional moves are more significant there. Using lower TFs (M1, M5) may generate too many low-quality zones.
Sensitivity (ATR Multiplier):
- For volatile assets/lower TFs (Crypto, Gold): Increase the Sensitivity input (e.g., 8-10) to filter out noise.
- For stable assets/higher TFs (Forex Majors, Stocks): Use the default Sensitivity (e.g., 4-6).
Mitigation Mode: The default "Breakthrough" mode is safer for high R:R setups. "Touch" mode offers earlier entries but higher risk.
How to Use
Identify the POI: Look for the ✦ DEMAND or ✦ SUPPLY labels.
Wait for the Return: Wait for price to retrace into the POI (Mitigation).
Execute: Use lower timeframe confirmation (like MSB or CHoCH) within these zones for high R:R entries.
Alerts: Set alerts to get notified the moment a new high-confluence POI is formed.
Volume Divergence Detector - COT EnhancedVolume Divergence Detector – COT Enhanced
This advanced indicator analyzes institutional vs retail money flow to uncover hidden market intent, focusing on Gold and Gold Futures.
Instead of relying on simple volume spikes, the script separates smart money (institutions, commercial hedgers, large speculators) from retail traders using a blend of:
Volume-based accumulation/distribution
Price momentum
RSI behavior
MACD divergence
Institutional-sized volume detection
Optional real CFTC Commitment of Traders (COT) data
The result is a dynamic money-flow model designed to expose who is truly controlling the market.
🔹 Institutional Flow Engine
Large-volume activity is tracked and converted into a smoothed institutional money line. Heavy volume is weighted more aggressively to highlight professional accumulation and distribution. When volume fades, flow naturally decays to avoid stale signals.
If enabled, weekly CFTC COT data is blended into the calculation (70% internal model, 30% real positioning), providing genuine futures-market confirmation for Gold.
Positive values indicate institutional buying.
Negative values indicate institutional selling.
🔹 Retail Flow Engine
Retail behavior is modeled using:
RSI momentum (retail follows trends)
MACD breakout behavior
Smaller volume spikes
Retail flow reacts faster and decays quicker, reflecting emotional trading and late entries. Extreme retail positioning often signals potential reversals.
🔹 Core Signals
The indicator automatically detects:
Institutional Takeover
When institutional flow crosses above retail.
Retail Takeover
When retail flow crosses above institutions (often a warning sign).
Bullish Setup
Institutions buying + retail selling.
Bearish Setup
Institutions selling + retail buying.
Extreme Divergence
Institutional and retail flows at opposite extremes. These zones often precede major reversals or powerful trend continuations.
Clear BUY / SELL labels appear directly on the chart, positioned dynamically using ATR to avoid candle overlap.
🔹 Visual Feedback
Background shading shows which side currently dominates
Extreme divergence adds special highlighting
Real-time labels display institutional and retail values
A built-in information table summarizes:
Institutional flow
Retail flow
Dominant side
Flow spread
Current signal
COT status
Everything updates live on the last bar.
🔹 Alerts Included
Custom alerts are provided for:
Institutional control
Retail control
Bullish setups
Bearish setups
Extreme divergence
Perfect for automation or hands-off monitoring.
⚠️ Important Notes
COT data works only on Gold Futures symbols.
Spot Gold uses volume-based estimation only.
Designed for directional bias and timing, not blind entries. Always confirm with structure and price action.
Created by xqweasdzxcv
A professional-grade money flow system built to follow smart capital instead of emotional traders.
Institutional Liquidity & FVG Tracker by Herman Sangivera(Papua)Institutional Liquidity & FVG Tracker (Precision SMC) by Herman Sangivera ( Papuan Trader )
This indicator is designed to identify key institutional levels by tracking Buy Side Liquidity (BSL), Sell Side Liquidity (SSL), and Fair Value Gaps (FVG). It helps traders visualize where "Smart Money" is likely to hunt for stops and where market imbalances exist.
Key Features:
Dynamic Liquidity Levels: Automatically identifies Swing Highs and Lows where retail Stop Losses are clustered.
Liquidity Purge Detection: Lines will visually fade once price "sweeps" or grabs the liquidity, signaling a potential reversal.
Fair Value Gaps (FVG): Highlights price imbalances (gaps) created by aggressive institutional displacement. These areas often act as magnets for price retracements.
How to Use:
The Sweep: Wait for the price to cross a dashed liquidity line (BSL or SSL). This indicates a "Stop Hunt" is occurring.
The Shift: Look for a rapid price reversal immediately after the sweep that leaves a Fair Value Gap (colored boxes) in its wake.
The Entry: Consider entering a trade when price retraces back into the FVG box, using the liquidity sweep high/low as your protected Stop Loss.
Settings:
Liquidity Lookback: Adjust the sensitivity of swing points. Higher values identify more significant, longer-term liquidity pools.
FVG Minimum Size: Filters out small, insignificant gaps to keep your chart clean and focused on high-probability setups.
Institutional Top-Bottom by Herman Sangivera (Papua)Institutional Top-Bottom + Volume Profile by Herman Sangivera ( Papua )
📈 Component Description
Orange Line (POC - Point of Control): This represents the "Fair Value." Institutions view prices far above this line as "Expensive" (Premium) and prices below as "Cheap" (Discount).
Green/Red Boxes (Order Blocks): These are footprints left by big banks. A Green Box is a demand zone where institutional buying occurred, and a Red Box is a supply zone where institutional selling happened.
Institutional Labels: These appear when the RSI Divergence confirms that price momentum is fading, signaling a high-probability reversal (Top or Bottom).
🚀 Trading Strategy Guide
1. The High-Probability Buy Setup (Bottom)
Look for a "Confluence" of these three factors:
Location: Price is trading below the Orange POC line (Discount zone).
The Zone: Price enters or touches a Green Order Block.
The Signal: The "INSTITUTIONAL BUY" label appears.
Entry: Enter Buy at the close of the candle with the label.
Stop Loss: Place it just below the Green Order Block.
Take Profit: Target the Orange POC line or the nearest Red Order Block.
2. The High-Probability Sell Setup (Top)
Look for a "Confluence" of these three factors:
Location: Price is trading above the Orange POC line (Premium zone).
The Zone: Price enters or touches a Red Order Block.
The Signal: The "INSTITUTIONAL SELL" label appears.
Entry: Enter Sell at the close of the candle with the label.
Stop Loss: Place it just above the Red Order Block.
Take Profit: Target the Orange POC line or the nearest Green Order Block.
💡 Pro Tips for Accuracy
Timeframes: For the best results, use 15m for Scalping, and 1H or 4H for Day/Swing Trading.
Wait for the Candle Close: Labels are based on Pivot points. Always wait for the current candle to close to ensure the signal is locked and won't "repaint."
Avoid Flat Markets: This indicator works best when there is volatility. Avoid using it during "choppy" or sideways markets with very low volume.
Volume Delta MontoscaTechnical Summary: Volume Delta Montosca + Market Bias V3
The Volume Delta Montosca + Market Bias V3 is a multi-layered analysis tool designed to decode market sentiment through volume decomposition and relative strength. Instead of looking at volume as a single metric, this indicator splits every bar into its buy and sell components to reveal the true intent behind price movements.
Core Volume Analysis and Delta Logic
The indicator uses a calculation based on price movement within each bar to estimate Buy and Sell Delta. It measures the relationship between the close, high, and low to determine how much of the total volume was aggressive buying versus aggressive selling. Users can define a Dominance Threshold (typically 80%), which acts as a filter to identify bars where one side has a "substantial majority," effectively ignoring noise and focusing on high-conviction moves.
Signal Generation and FVG Filtering
Signals are categorized into two levels of importance. Base Signals (represented by small circles) occur when there is a significant volume spike—defined by a 20-period SMA—combined with high dominance. However, the indicator also features an internal Fair Value Gap (FVG) Filter. When price action "inverts" or breaks through a recent price imbalance while showing dominant volume, the indicator triggers a High-Priority Signal (represented by triangles). This specific logic ensures that signals are not just based on volume, but on the successful reclamation of key price areas.
Dynamic Market Bias and Comparative Strength
Beyond individual asset analysis, the script includes a Market Bias Engine that compares the current ticker against a benchmark, such as the S&P 500 (ES1!). It calculates a ratio between the two assets and applies a "Volume Supremacy" logic. If the current asset shows expanding volume and higher dominance percentages than the benchmark, the Bias Panel updates to show which asset is leading the market. This allows traders to see at a glance if they are trading the strongest available asset or if the broader market bias is shifting against them.
Visual Elements and Customization
The tool offers a clean visual experience by plotting a dual-colored histogram where the dominant volume color takes priority. It also includes Volume Candles, which paint the bars on the main chart to match the volume sentiment, and Top Diamonds to mark the peaks of volume expansion. All features, including the FVG lookback range and the SMA adjustment factor, are fully customizable to fit different trading timeframes and styles.
Apex Wallet - Real-Time Market Volume Delta & Order FlowOverview The Apex Wallet Market Volume Delta is a professional liquidity analysis tool designed to decode the internal structure of market volume. Unlike standard volume bars, this script calculates the "Delta"—the net difference between buying and selling pressure—to reveal the true conviction of market participants in real-time.
Dynamic Multi-Mode Intelligence This indicator features an adaptive calculation engine that recalibrates its internal logic based on your trading style:
Scalping: Fast-response settings (9-period MA) for immediate execution on low timeframes.
Day-Trading: Balanced settings (26-period MA) optimized for intraday sessions.
Swing-Trading: High-filter settings (52-period MA) for major trend confirmation.
Advanced Order Flow Detection
Real-Time Delta Calculation: Tracks the precise interaction between price and volume to identify aggressive buyers vs. passive sellers.
Dual Calculation Modes: Choose between "Buy/Sell" (aggressive) or "Buy/Sell/Neutral" for a more granular view of flat market periods.
Visual Delta Labels: Displays the net volume values directly above each bar, with color-coded alerts (Green for Bullish Delta, Red for Bearish Delta).
Scalable UI: Features a "Scale Down Factor" to simplify large volume numbers into readable units (10/100/1k/10k).
Key Features:
Visual Split: Clearly differentiates historical volume from real-time buying and selling flows.
Trend Confirmation: Integrated optional EMA to compare current volume surges against the average market liquidity.
Clean Interface: Professional-grade histogram styling with clear demarcation of session activity.
The Kinetic Energy of Market Information {Dark Architect}
Uncle, now you have a Full Stack of "Dark Architect". How to manage it (algorithm of actions):
STEP 1: SCANNER (MA_FRAGILITY + ENTROPY)
You're looking at MA_FRAGILITY (the second script). You're looking for an increase in Fragility (Red zone).
You're looking at ENTROPY (the third script). You wait until the line falls into the purple "Order" zone.
The thought: "The market is stretched and ready to fire."
STEP 2: LOGIN (W2_FLUID)
You're waiting for a Red spike on W2_FLUID (the first script).
Action: You open an order in the direction of the breakdown.
Thought: "The singularity is activated."
STEP 3: HOLD
You're looking at RELIEF_FLUX (the new script).
While the bars are Green and growing, hold on. The market is being pushed with money.
STEP 4: EXIT (HARVEST)
The price makes a new upward leap.
And on RELIEF_FLUX, the bars turned Gray or went down.
The label "EXIT 💸" has appeared.
Action: Close your position on the market. Don't set limits, just get out.
Thought: "Thanks for the liquidity, losers."
Task: Install ALL 4 scripts. Find a point in history where:
There Was An Entrance (W2 + Entropy).
Then there was growth (Green Flux).
And then the perfect Exit (EXIT Label). CAPITALCOM:US100
Apex Wallet - MTF Trend Monitor: Unified Indicator DashboardOverview The Apex Wallet MTF Trend Meter is a powerful Multi-Timeframe (MTF) dashboard designed to provide a bird's-eye view of market conditions across several time intervals simultaneously. Instead of switching between charts, this tool presents a clean, real-time table directly on your workspace, allowing you to identify high-probability trade setups through timeframe alignment.
Multi-Layered Analysis The dashboard monitors and categorizes technical data into actionable color-coded cells:
Timeframe Master Trend: Tracks the core market direction using EMA filters (adjustable for Scalping, Day, or Swing trading).
Oscillator Confluence: Instant status of Stochastic (STO), RSI, MACD, and TDI.
Andean Oscillator: Specialized tracking for market states including Bullish, Bearish, Consolidating, or Reversing.
Market Volume Delta: Real-time institutional flow tracking with customizable modes (Buy/Sell, Neutral, or Auto).
Key Features:
Fully Customizable Grid: Toggle individual timeframes (from 1m up to 4h) and specific indicators to match your trading strategy.
Smart Adaptive Presets: One-click selection for Scalping, Day-Trading, or Swing-Trading automatically updates all internal indicator periods for optimized performance.
Trend-Filtered Signals: Momentum indicators are filtered by the master trend EMA to ensure signals are displayed only when aligned with the broader market direction.
Compact UI: Designed for efficiency, the dashboard sits discreetly on your chart while providing maximum data density.
How to Use: Identify "Vertical Confluence" where multiple timeframes align with the same color, indicating a high-conviction trend continuation or breakout.
Apex Wallet - Volume Profile: Institutional POC & Value Area TooOverview The Apex Wallet Volume Profile is a professional-grade institutional analysis tool designed to reveal where the most significant trading activity has occurred. By plotting volume on the vertical price axis, it identifies key liquidity zones, value areas, and market fair value, which are essential for order flow trading and identifying high-probability support and resistance.
Dynamic Multi-Mode Engine This script features an intelligent adaptive lookback system that automatically adjusts based on your timeframe and trading style:
Scalping: Fine-tuned for 1m to 15m charts, focusing on immediate liquidity.
Day-Trading: Optimized for intraday sessions from 5m to 1h timeframes.
Swing-Trading: Deep historical analysis for 1h up to daily charts.
Institutional Data Points
Point of Control (POC): Automatically identifies and highlights the price level with the highest total volume.
Value Area (VAH/VAL): Calculates the range where 70% (customizable) of the volume occurred, representing the "Fair Value" of the asset.
HVN & LVN Detection: Spots High Volume Nodes (significant support/resistance) and Low Volume Nodes (rejection zones).
Delta Visualization: Toggle between Bullish, Bearish, or Total volume distribution for precise buy/sell pressure analysis.
Professional UI The profile is rendered with high-fidelity histograms that can be offset to avoid overlapping with price action. It features clear labels and dashed levels for institutional markers, ensuring a clean and actionable workspace.
VWAP BB Breakout + DMI MomentumI decided to code a single indicator that has some of my most used indicators.
I encourage that you have read up on VWAP, Bollinger Bands, ADX/DMI to understand how they function.
VWAP + Bollinger 1σ Breakout + DMI/ADX Scalping Strategy (NASDAQ)
This strategy is designed for single-chart, intraday scalping on the NASDAQ, focusing on volatility expansion in the direction of market control. It avoids higher-timeframe confirmation to eliminate lag and reacts only when price shows acceptance and momentum.
Core Concepts
VWAP defines market control and trade direction
Bollinger Bands (20, 1σ) identify early volatility expansion
DMI/ADX (10 / 5) confirms directional momentum and strength
The strategy trades breakouts that are supported by both bias and momentum, filtering out low-quality moves and chop.
Trade Rules
Long Setup
Price is above VWAP
Candle closes above the upper Bollinger 1σ band
+DI > –DI
ADX rising or above strength threshold
Short Setup
Price is below VWAP
Candle closes below the lower Bollinger 1σ band
–DI > +DI
ADX rising or above strength threshold
Trades are taken only on candle close to confirm acceptance.
Risk & Trade Management
Trades are avoided near VWAP to reduce chop
Stops are placed just inside the Bollinger 20 SMA or beyond the breakout candle
Partial profits can be taken at the 2σ band
Exits are considered when ADX flattens or DMI flips
Market Conditions
Best suited for:
High-liquidity sessions (NY open and main session)
Trending or expanding volatility environments
Avoid during:
Flat VWAP conditions
Bollinger Band compression
Low ADX / range-bound markets
Strategy Philosophy
This is a reactive momentum strategy, not predictive.
It waits for price to prove direction and strength, then participates in the move rather than anticipating it.
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 │
└─────────────────┴──────────────────────────────────────────────────────────────────────────┘
Volume Supply / Demand RegimeVolume Supply / Demand Regime
Read-Only Market Context Indicator
Volume Supply / Demand Regime is a context tool that classifies how volume behaves, not just how much volume appears.
Instead of treating volume as a single metric, this indicator identifies distinct participation regimes that reflect supply, demand, contraction, absorption, and event-driven activity.
What this indicator shows
Each bar is classified into a volume regime based on relative volume, efficiency, and percentile context:
Dry-Up (Contraction) — participation fades, activity compresses
Accumulation — expanding volume with constructive price response
Distribution — expanding volume with negative price response
Churn / Absorption — high effort with limited price progress
Climax / Event — statistically extreme participation spikes
These regimes help explain why price behaves the way it does during different phases.
Why this is different
Most volume tools answer:
“Is volume high or low?”
This framework answers:
“What kind of participation is occurring right now?”
Two periods can have similar volume levels but very different implications depending on:
Whether activity is expanding or contracting
Whether effort produces result
Whether participation is orderly or event-driven
This indicator makes those distinctions explicit.
How to use it
Volume Supply / Demand Regime is designed to be used as context, not instruction.
Common uses include:
Identifying contraction before expansion
Recognizing absorption vs. continuation
Flagging event-risk or climax conditions
Filtering signals from other tools
There are no entries, exits, or trade rules built in.
What this is not
Not a strategy
Not a signal generator
Not predictive
No trade instructions
Technical notes
Indicator-only (no orders or execution)
Evaluated on confirmed bar close
Values may update on realtime (forming) bars
Designed for clarity and educational use
Intraday Time-of-Day RVOL (histogram)intraday relative volume indicator, which can use for measuring the strength of breakout
Supertrend + RSI + EMA + MACD - Fixed Single SignalMomentum trading with signals to add alerts and connect to API for Algo trading
Noise Area (TS Intraday, Custom Session + Timezone List)This indicator replicates the algorithm proposed in “Beat the Market: An Effective Intraday Momentum Strategy for the S&P 500 ETF (SPY)” by Carlo Zarattini, Andrew Aziz, and Andrea Barbon. The implementation follows the core methodology described in the paper, reproducing its intraday momentum signals and trading logic as applied to the S&P 500 ETF (SPY)






















