USA Sector Rotation Momentum - Integrity Edition [Invite Ready]USA MASTER PRO — Invite-Only (Sector Rotation Momentum)
What this is
USA Master Pro is a sector-rotation and alignment dashboard. It converts price action into a normalized “Heat” score (-100 to +100), adds higher-timeframe confirmation, and helps you see which sectors are leading/lagging and whether your chart symbol is aligned with the broader environment.
How to use (quick)
1) Start with REG / BIAS (market context).
2) Scan the table ranks (leaders vs laggards).
3) Confirm with Trend (Higher TF) + Confluence.
4) Use Rel% and dRel to judge rotation strength and speed.
5) Use alerts as attention cues (not auto-entries).
Documentation (PDF)
Quick Start:
raw.githubusercontent.com
User Guide:
raw.githubusercontent.com
Support
If something looks off, send a screenshot and include the BUILD ID shown on the dashboard.
Disclaimer
This tool is provided for informational and educational purposes only and does not constitute financial, investment, legal, or tax advice. Trading and investing involve risk, and you are solely responsible for your decisions, risk management, and outcomes. Past performance is not indicative of future results. No guarantees are made regarding accuracy, completeness, or profitability. Use at your own risk.
Analisis Trend
NCAT Supply & Demand Zones (BoS Pivots)This indicator draws Supply and Demand zones based on market structure (Break of Structure) using confirmed pivot highs and lows.
When a bullish Break of Structure occurs, the script searches back for the last valid bearish base candle and creates a Demand zone.
When a bearish Break of Structure occurs, it searches back for the last valid bullish base candle and creates a Supply zone.
Zones extend to the right and are dynamically updated as price interacts with them. Each retest increases an internal counter and the zone visually fades over time, helping to identify zone weakening. Zones can optionally be removed when price closes beyond the distal boundary.
Key Features
Break of Structure (BoS) detection using confirmed pivots
Automatic Supply and Demand zone creation
Optional session and timezone filter
Progressive zone fading on retests
Configurable zone extension
Optional 50% midline
Maximum zone limit to keep charts clean
Notes
Structure signals are confirmed only after pivot validation
Designed as a visual and educational tool
Does not generate buy or sell signals and is not financial advice
Market State and Macro ContextDescription
This indicator provides a structured, multi-layer view of market context using strictly defined daily and higher-timeframe logic. It is designed to separate market regime, higher-timeframe control, daily momentum, and intraday execution bias into independent layers, allowing traders to understand where the market is before deciding when to act.
The script does not generate buy or sell signals. It defines context only.
1. Market State (Daily Regime)
This layer defines the current market regime using daily data and a 100-day lookback range.
Three regimes are identified, with strict priority:
Expansion
The daily close breaks above the highest high or below the lowest low of the previous 100 trading days.
Indicates volatility expansion and price discovery.
Expansion does not imply trend. It only confirms that price has entered new territory.
Trend
Detected only when price is not in expansion and all of the following are true:
Daily close is above or below the daily 50 EMA.
The daily 50 EMA is sloping in the same direction.
Daily swing structure confirms directional control (higher highs and higher lows for bullish, lower highs and lower lows for bearish).
Price is holding away from the midpoint of the 100-day range.
This defines sustained directional control, not just position.
Lateralized
Applied when neither Expansion nor Trend conditions are met.
Represents rotational or range-bound behavior with overlapping structure.
This layer answers the question:
“Is the market expanding, trending, or rotating?”
2. Higher-Time Macro (Territory Control)
This layer identifies higher-timeframe dominance using confirmed daily closes.
BULL when yesterday’s close is above the high of the day before.
BEAR when yesterday’s close is below the low of the day before.
NEUTRAL when neither condition is met.
This captures true daily range expansion and territory control.
It does not update intraday and does not measure momentum.
3. Macro (Daily Momentum)
This layer measures short-term daily pressure using close-to-close comparison.
BULL when yesterday’s close is higher than the previous close.
BEAR when yesterday’s close is lower than the previous close.
NEUTRAL otherwise.
This reflects daily momentum independent from range expansion or market regime.
4. Daily Bias (Intraday Filter)
This layer provides an intraday directional filter using a higher-timeframe EMA, EMA slope, and the daily open.
A simple scoring system is applied:
Price relative to the HTF EMA
Direction of the HTF EMA slope
Price relative to the daily open
The result classifies the intraday environment as BULL, BEAR, or NEUTRAL.
This layer is intended for execution alignment only.
Visualization
All four context layers are displayed in a fixed on-chart table with:
Clear section separation
Color-coded states
Stable, non-repainting values
All daily and macro logic uses confirmed closes only and does not change during intraday sessions.
Intended Use
This indicator is designed to be used as a context framework for discretionary or systematic trading. It helps answer:
What regime is the market in?
Which side controls higher-timeframe territory?
What is the current daily pressure?
Is intraday execution aligned with higher-timeframe context?
It does not predict price and does not replace execution logic.
Sultan VSA Pro - CompleteSultan VSA Pro - Complete Volume Spread Analysis System
Professional-grade indicator featuring ALL 18+ Wyckoff/VSA patterns for institutional-level market analysis.
✅ COMPLETE SIGNAL LIBRARY:
📊 **Basic VSA Patterns:**
• No Demand (ND) - Weakness at top
• No Supply (NS) - Strength at bottom
• UpThrust (UT) - False breakout up
• Shakeout (SO) - False breakdown
• Test (T) - Re-test of support
• Spring (SP) - Bear trap reversal
🔥 **Climax Signals:**
• Selling Climax (SC) - Panic bottom
• Buying Climax (BC) - Euphoria top
• Bag Holding (BH) - Distribution complete
• End Rising Market (ERM) - Topping pattern
💪 **Effort Signals:**
• Effort to Rise (ER) - Resistance break with volume
• Effort to Fall (EF) - Support break with volume
• Absorption (Abso) - Range breakout absorbed
• Stopping Volume (SV) - Falling knife catch
🎯 **Wyckoff Accumulation:**
• Preliminary Support (PS) - First sign of support
• Secondary Test (ST) - Re-test after SC
• Automatic Rally (AR) - Relief rally after SC
• Preliminary Supply (PSY) - First sign of distribution
⚡ **Reversal Patterns:**
• 2-Bar Reversals (B/S) - Quick reversals
• 3-Bar Reversals (B3/S3) - Confirmed reversals
⚙️ KEY FEATURES:
✓ 18+ Professional VSA Patterns
✓ ALL signals OFF by default (clean start)
✓ Individual signal toggles (pick what you need)
✓ Customizable sensitivity for each pattern
✓ Multi-timeframe compatible
✓ Color-coded bars (4 priority levels)
✓ Smart label placement (no overlap)
✓ Detailed tooltips on every signal
✓ Complete alert system
✓ Legend dashboard
✓ 3 Moving Averages (optional)
✓ SoS/SoW scoring system
🎨 COLOR SCHEME:
• RED bars = No Demand (Bearish)
• GREEN bars = No Supply (Bullish)
• PURPLE bars = UpThrust (Bearish)
• LIME bars = Spring (Bullish)
📊 BEST USED WITH:
• Support/Resistance levels
• Trend analysis tools
• Volume confirmation
• Price action analysis
💡 TRADING APPLICATION:
This indicator helps identify:
✓ Smart money distribution (selling)
✓ Smart money accumulation (buying)
✓ False breakouts/breakdowns
✓ High-probability reversal points
✓ Market manipulation patterns
⚠️ IMPORTANT NOTES:
• Always confirm with price action
• Use multiple timeframe analysis
• Combine with trend indicators
• Risk management is essential
• Not a standalone trading system
📚 METHODOLOGY:
Based on Richard Wyckoff's Volume Spread Analysis principles, focusing on the relationship between:
• Price movement (Spread)
• Volume (Effort)
• Closing position within the bar
🔧 SETTINGS:
All signals disabled by default - enable only what you need:
• NS/ND Detection (wick % threshold)
• UT Detection (body %, wick ratio)
• Volume lookback periods
• Location filters (SMA)
🎨 CHART SETTINGS RECOMMENDATION:
---------------------------------
• Timeframe: Works on all timeframes (4H, Daily recommended)
• Chart Type: Candlestick
• Theme: Dark theme for best visibility
• Volume: Enable volume bars below chart
📖 USER INSTRUCTIONS
---------------------------------------
HOW TO USE:
1. Add indicator to chart
2. Open Settings (⚙️ icon)
3. Go to "Signal Visibility" section
4. Enable ONLY the signals you want to track:
**For Beginners - Start with:**
- Show Selling Climax (SC) - Major bottoms
- Show Buying Climax (BC) - Major tops
- Show Spring (SP) - Best long setups
**Intermediate - Add these:**
- Show No Supply (NS)
- Show UpThrust (UT)
- Show Absorption (Abso)
**Advanced - Full Wyckoff:**
- Enable PS, ST, AR for accumulation tracking
- Enable PSY for distribution tracking
- Enable Effort signals (ER/EF) for breakouts
5. Adjust sensitivity in "VSA Logic Settings" if needed
6. Set up alerts:
- Click Alert icon (🔔)
- Select "Rashid VSA Pro"
- Choose specific signal alert
7. Interpretation:
- Watch for bar color changes
- Read tooltip for signal details
- Confirm with support/resistance
- Multiple signals = stronger confirmation
SIGNAL PRIORITY GUIDE:
🔴 **HIGHEST PRIORITY (Major Reversals):**
• Selling Climax (SC) - Bottom reversal
• Buying Climax (BC) - Top reversal
• Spring (SP) - Confirmed accumulation
• Stopping Volume (SV) - Panic absorption
🟡 **HIGH PRIORITY (Strong Signals):**
• UpThrust (UT) - Distribution
• Bag Holding (BH) - Weak hands trapped
• End Rising Market (ERM) - Topping
• Shakeout (SO) - Accumulation start
🟢 **MEDIUM PRIORITY (Confirmation):**
• No Supply (NS) - Support holding
• No Demand (ND) - Resistance holding
• Effort to Rise/Fall (ER/EF) - Breakouts
• 3-Bar Reversals (B3/S3)
⚪ **CONTEXT SIGNALS (Background Info):**
• Test (T) - Re-testing
• Preliminary Support/Supply (PS/PSY)
• Secondary Test (ST)
• Auto Rally (AR)
• 2-Bar Reversals (B/S)
📧 RELEASE NOTES (Version 1.0):
-------------------------------
🎉 Initial Release - Sultan VSA Pro
✨ Features:
• 18+ complete VSA/Wyckoff patterns
• All signals OFF by default (clean start)
• Individual toggle for each signal
• 4-tier color priority system
• Smart label placement (no overlap)
• Comprehensive tooltips
• Full alert system for all patterns
• Legend dashboard
• 3 optional Moving Averages
• SoS/SoW strength scoring
🎯 Signal Categories:
• Basic VSA (ND, NS, UT, SO, Test, Spring)
• Climax Patterns (SC, BC, BH, ERM)
• Effort Signals (ER, EF, Absorption, SV)
• Wyckoff Accumulation (PS, ST, AR, PSY)
• Reversals (2-Bar, 3-Bar patterns)
🔧 Customization:
• Adjustable wick percentages
• Volume multipliers
• Lookback periods
• MA filters
• Display options
🙏 Credits:
Based on Richard Wyckoff's Volume Spread Analysis
and Tom Williams' Master the Markets methodology.
Enhanced with modern Wyckoff accumulation/distribution tracking.
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 │
└─────────────────┴──────────────────────────────────────────────────────────────────────────┘
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.
Volatility Contraction Box (VCB)Volatility Contraction Box (VCB)
Description (Copy & Paste)
This script is a specialized breakout detector designed for scalpers on the Nifty, BankNifty, and NSE 1-minute timeframes.
Inspiration & Concept The core philosophy of this script is based on the concept of Volatility Contraction—the idea that strong market moves are almost always preceded by a period of "quiet compression."
Conceptual Source: This script was inspired by the trading theory discussed in the article "What 90% of Traders Miss Before a Breakout" by betashorts1998, which highlights the importance of identifying low-volatility zones before the expansion phase occurs.
Adaptation: While the original concept often uses ATR to measure contraction, this script adapts that theory into a Price Action Box Model. It detects physical price stagnation (flat Highs and Lows) to draw visual "Kill Zones" on the chart.
The Problem: The "Fakeout" In 1-minute scalping, a simple breakout often results in a wick that traps traders (a "fakeout"). The Solution: This script uses a Next-Candle Confirmation Algorithm. It detects a breakout but hides the signal until the next candle closes in the direction of the trend. If the follow-through fails, the box and signal are discarded, keeping your chart clean and your capital safe.
How the Code Works (Programmer's Logic)
For those interested in the Pine Script logic, here is how the algorithm processes market data:
1. Stagnation Detection (range_changed) The script uses ta.highest(length) and ta.lowest(length) to track the Donchian Channel of the price.
It checks ta.change(h) and ta.change(l).
If both return 0 (meaning the High and Low haven't moved), a counter (count_activity) increments.
Once this counter hits the threshold (default: 5 bars), a "Virtual Box" is created in the code's memory.
2. The "Ghost" State (Pending Logic) Unlike standard indicators that plot immediately, this script enters a "Pending" state when price breaks the box levels:
pendingDir variable is set to 1 (Buy) or -1 (Sell).
breakoutBar records the specific time of the break.
Crucially, nothing is drawn on the chart yet.
3. The Confirmation Loop The script waits for bar_index == breakoutBar + 1 (the very next candle).
It runs a boolean check: isValid.
For Buys: close >= open (The candle must be Green).
For Sells: close <= open (The candle must be Red).
If isValid is true, the script utilizes box.new and label.new to retroactively draw the setup.
If isValid is false, the variables are reset, and the setup is deleted from memory.
How to Use
Wait for the Signal: Do not pre-empt the move. Wait for the colored Box and "BUY/SELL" label to appear.
Entry: The signal appears on the close of the confirmation candle. Enter immediately.
Stop Loss: Place your SL at the opposite end of the Box.
Targets: Aim for a quick 1:1.5 or 1:2 Risk-Reward, or trail your stop using the previous candle's low/high.
Settings
Lookback Length: How far back to check for High/Low (Default: 20).
Min Flat Candles: Minimum duration of the squeeze (Default: 5).
Box Width: Adjusts the visual multiplier of the box.
Multi-Timeframe Rsi-Mean Deviation (Normalized)═══════════════════════════════════════════════════════════════════
RSI SIGMOID OSCILLATOR + MULTI-TIMEFRAME
Advanced RSI-EMA Deviation Analysis with Z-Score Normalization
═══════════════════════════════════════════════════════════════════
📊 OVERVIEW
──────────
This indicator measures the deviation of RSI from its EMA and transforms it into a normalized 0-100 oscillator using z-score and sigmoid function. It provides multi-timeframe analysis with a clean visual dashboard, making it easy to spot momentum shifts across different time horizons.
🎯 KEY FEATURES
──────────────
✓ Z-Score Normalized RSI-EMA Deviation
✓ Sigmoid Transformation (0-100 scale with smooth transitions)
✓ Multi-Timeframe Support (compare up to 3 timeframes simultaneously)
✓ Interactive Dashboard (real-time values and trend indicators)
✓ Dynamic Color Coding (red below 50, unique colors above 50)
✓ Timeframe Labels (clear identification of each line)
✓ RSI Bollinger Bands (hidden background extreme detection)
✓ Clean Minimalist Design
⚙️ HOW IT WORKS
──────────────
1. DEVIATION CALCULATION
- Calculates: RSI - EMA(RSI)
- Measures how far RSI deviates from its moving average
2. Z-SCORE NORMALIZATION
- Converts deviation to z-score: (deviation) / stdev(deviation)
- Makes signals comparable across different market conditions
3. SIGMOID TRANSFORMATION
- Maps z-score to 0-100: sigmoid = 100 / (1 + e^(-k*z))
- Provides smooth, bounded oscillator with clear midline (50)
4. MULTI-TIMEFRAME ANALYSIS
- Displays current TF + 2 higher timeframes
- All calculations use identical parameters for consistency
📈 INTERPRETATION
────────────────
OSCILLATOR VALUES:
• Above 50 = Bullish momentum (RSI > its EMA)
• Below 50 = Bearish momentum (RSI < its EMA)
• Near 70 = Strong bullish (potential overbought)
• Near 30 = Strong bearish (potential oversold)
COLOR CODING:
• Blue line = Current timeframe
• Orange line = Higher timeframe 1 (default: 4H)
• Lime line = Higher timeframe 2 (default: 1D)
• Red = All timeframes when below 50
MULTI-TIMEFRAME SIGNALS:
• All 3 lines above 50 = Strong bullish alignment
• All 3 lines below 50 = Strong bearish alignment
• Mixed signals = Potential reversal or consolidation
🔧 PARAMETERS
─────────────
RSI Period (14): Base RSI calculation period
RSI EMA Period (14): EMA smoothing for RSI
Standard Deviation Period (20): Window for z-score calculation
Sigmoid Sensitivity (1.0): Controls oscillator responsiveness (0.1-10.0)
Bollinger Band Multiplier (2.0): For background extreme detection
Higher Timeframe 1 (240): First comparison timeframe
Higher Timeframe 2 (D): Second comparison timeframe
💡 USAGE TIPS
────────────
1. TREND CONFIRMATION
- Use higher timeframes to confirm trend direction
- Only take longs when 4H/1D also above 50
2. DIVERGENCE DETECTION
- Watch for price making new highs/lows while oscillator doesn't
- Classic bullish/bearish divergence signals
3. OVERBOUGHT/OVERSOLD
- Values above 70: Consider taking profits or tightening stops
- Values below 30: Watch for reversal or continuation
4. TIMEFRAME ALIGNMENT
- Best trades occur when all timeframes align
- Mixed signals suggest waiting for clarity
⚠️ IMPORTANT NOTES
─────────────────
• Not a standalone trading system - use with other confirmations
• Works best in trending markets
• Adjust sensitivity (k) for different instruments
• Higher k values = more responsive (more signals)
• Lower k values = smoother (fewer false signals)
📊 DASHBOARD
───────────
The top-right table shows:
• TF: Timeframe identifier
• Signal: Current oscillator value (0-100)
• Trend: Green circle (≥50) or Red circle (<50)
═══════════════════════════════════════════════════════════════════
Created for multi-timeframe momentum analysis
Best used on 1H, 4H, or Daily charts
Combines statistical normalization with sigmoid smoothing
═══════════════════════════════════════════════════════════════════
⚠️ DISCLAIMER
─────────────
This indicator is provided for educational and informational purposes only.
It is NOT financial advice. Trading involves substantial risk of loss and is
not suitable for everyone. Past performance does not guarantee future results.
Always:
• Use proper risk management
• Combine with other analysis methods
• Test thoroughly before live trading
• Never risk more than you can afford to lose
• Consult a financial advisor for personalized advice
👍 SUPPORT THIS WORK
───────────────────
If you find this indicator useful:
📊 Please give it a LIKE / BOOST
💬 Leave a COMMENT with your feedback
👤 FOLLOW me for more quality indicators and updates
⭐ Share with others who might benefit
Your support motivates me to create more free tools for the trading community!
═══════════════════════════════════════════════════════════════════
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
FxNeel Session (Lite)Here is light version. You can all types of ICT session like Asia, london, new york, Aisa kill zone, CBDR .
Happy trading. Please drop your feedback.
Smart Multi-Timeframe SeparatorsHere you will get Hourly, daily, weekly and monthly candle separator and also Running candle formation. Enjoy our indiactor. Happy Trading. Drop your feedback also please.
MM MAGICAL LINETitle: MM MAGICAL LINE
The MM MAGICAL LINE is a precision-based intraday tool designed to identify critical price levels established during specific institutional windows.
this indicator isolates key trend-confirmation zones that act as psychological support and resistance for the remainder of the session.
Key Features:
Institutional Anchoring: Captures price action from high-volume time brackets.
Clean UI: Minimalist design with customizable color schemes to fit any chart background.
Volatility Filter: Uses smoothed price data to eliminate market noise.
Best used on intraday timeframes (1m, 5m, 15m) for trend identification and breakout confirmation.
Lanovyx# Lanovyx — Setup Window Confluence System
## The Problem This Solves
Traditional confluence indicators require all conditions to align on the exact same bar: stochastic must be oversold AND price must touch support AND divergence must form — all simultaneously. In real markets, this rarely happens. Price touches VWAP -2σ, but stochastic doesn't reach oversold until 3 bars later. The opportunity is missed.
**Lanovyx solves this with the Setup Window methodology.**
---
## Core Innovation: Setup Windows
Instead of requiring simultaneous conditions, Lanovyx separates trading signals into two phases:
**Phase 1 — Context Event (Setup Activation)**
When a meaningful event occurs, it "opens a window" that stays active for a configurable number of bars:
- Price touches VWAP ±2σ or ±3σ band → window opens
- Price tests Previous Day High/Low → window opens
- Stochastic divergence forms → window opens
- Opening Range breakout occurs → window opens
- Price reaches Support/Resistance level → window opens
Each event adds to a cumulative "setup score" (capped at 8). Higher scores indicate stronger context.
**Phase 2 — Trigger (Signal Generation)**
Within the active window, when stochastic conditions confirm, a signal fires. The trigger doesn't need to occur on the same bar as the context — it just needs to occur while the window is open.
This two-phase approach captures setups that traditional indicators miss entirely.
---
## Why Stochastic + VWAP Confluence Works
**VWAP (Volume-Weighted Average Price)** tells us where institutional money has transacted. The standard deviation bands identify statistical extremes:
- Price at VWAP -2σ is extended to the downside (potential mean reversion long)
- Price at VWAP +2σ is extended to the upside (potential mean reversion short)
**Stochastic Oscillator** measures momentum exhaustion. When price reaches a VWAP extreme AND stochastic shows momentum reversing, we have confluence of:
1. Price extension (VWAP bands)
2. Momentum exhaustion (Stochastic)
3. Context validation (Setup Window score)
The multi-lane stochastic (14/21/55 periods) adds timeframe confluence — when fast, medium, and slow stochastics align, the signal is stronger.
---
## Five Signal Families
Each family targets a specific market condition:
### 1. Trend Entry (T) — Blue Labels
**When:** Stochastic pulls back to 25-55 zone (longs) or 45-75 zone (shorts) during established trend
**Logic:** In trending markets, pullbacks to the "value zone" offer low-risk entries with trend
**Best for:** Trending days with clear directional bias
### 2. Mean Reversion (R) — Green/Red Labels
**When:** Stochastic exits oversold (<20) or overbought (>80) with active setup window
**Logic:** At VWAP extremes with momentum exhaustion, price tends to revert to mean
**Best for:** Range-bound, choppy markets
**Requires:** Active setup window (context event must have occurred)
### 3. Breakout (B) — Orange Labels
**When:** Stochastic lanes compress ("coil") then expand, crossing the 50 midline
**Logic:** Compression precedes expansion; breakout from tight range signals new trend
**Best for:** Transition days, post-squeeze moves
### 4. Momentum (M) — Green/Red Labels
**When:** Stochastic crosses 50 from extreme zone (<25 or >75) within lookback period
**Logic:** Catches V-shaped reversals where regime detection lags the move
**Best for:** Fast reversals, news-driven moves
### 5. Counter-Signal / FADE (C) — Purple Labels
**When:** A signal fires and immediately fails (stochastic reverses sharply against it)
**Logic:** Failed signals often lead to strong moves in the opposite direction (trapped traders)
**Confidence gating:** High-confidence fades generate signals; low-confidence show warnings only
---
## Institutional Key Levels
Lanovyx incorporates levels that institutional traders use:
- **PDH/PDL** (Previous Day High/Low) — Major support/resistance where stops cluster
- **PDC** (Previous Day Close) — Settlement price, gap reference
- **ORB** (Opening Range) — First 15 minutes high/low, breakout trigger
- **IB** (Initial Balance) — First 60 minutes range, institutional benchmark
These levels automatically activate setup windows when price interacts with them, adding to the setup score.
---
## Filtering System
**ADX Filter:** In strong trends (ADX > 25), blocks counter-trend mean reversion signals to avoid fighting momentum.
**HTF Bias Filter:** Optional alignment with higher timeframe (e.g., 1-hour) EMAs. Can block or demote signals that oppose the larger trend.
**Regime Detection:** Classifies market as Uptrend, Downtrend, Sideways, or Squeeze using EMA alignment and market structure (HH/HL/LH/LL patterns).
---
## How to Use
1. **Wait for Setup** — Watch for context events (VWAP band touch, key level test, divergence)
2. **Check the Score** — Higher setup scores indicate stronger context (visible in debug mode)
3. **Wait for Trigger** — Let stochastic confirm within the window
4. **Confirm Regime** — Ensure signal type matches market condition
5. **Manage Risk** — Use the ATR-based stop/target levels shown after signals
**Strong signals (★)** appear when multiple confluence factors align — these are highest probability setups.
---
## Settings Overview
| Setting | Default | Purpose |
|---------|---------|---------|
| Setup Window | 10 bars | How long context events stay active |
| Entry Zone | 25-55 | Stochastic zone for trend pullback entries |
| OS/OB Levels | 20/80 | Stochastic extremes for mean reversion |
| Stop Loss | 1.5 ATR | Risk management distance |
| Target 1 | 2.0 ATR | First profit target (1.33:1 R:R) |
Recommended timeframes: 5-minute and 15-minute charts.
---
## Disclaimer
This indicator is for educational purposes only and does not constitute financial advice. Past performance does not guarantee future results. Always use proper risk management and never risk more than you can afford to lose. No indicator can predict the future — use this as one input in your trading decision process, not as a standalone system.
Volume Oracle - Regime DetectionVolume Oracle - Regime Detection
Volume Oracle transforms raw volume data into a regime-based flow analysis framework. The indicator is designed to help traders identify periods of accumulation and distribution through five integrated analytical layers: regime detection, market structure validation, volume footprint analysis, quality scoring, and multi-timeframe confluence.
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
🔶 𝗢𝗩𝗘𝗥𝗩𝗜𝗘𝗪
Volume analysis has long been considered a window into market participant activity. Large players cannot move size without leaving footprints in the volume record. Traditional volume indicators show raw numbers, but interpreting whether elevated volume represents accumulation or distribution requires additional context.
Volume Oracle builds on this foundation by adding five analytical layers:
• Regime Detection: Classifies the current market state as Accumulation (buying pressure), Distribution (selling pressure), or Neutral (no clear direction) using a composite scoring system that weighs price velocity, trend alignment, and volume-weighted flow.
• Market Structure Validation: Tracks swing highs and lows to determine if price structure (higher highs/higher lows vs lower highs/lower lows) agrees with the detected regime.
• Volume Footprint Analysis: Classifies volume spikes as either Momentum bars (large body, small wicks indicating directional conviction) or Absorption bars (small body, large wicks indicating supply/demand absorption).
• Quality Scoring System: Rates each signal from 0-100% based on multiple confluence factors, displayed as star ratings for quick visual assessment.
• Multi-Timeframe Confluence: Optional higher timeframe filters that require regime alignment across multiple timeframes before generating signals.
The indicator adapts all parameters automatically based on the chart timeframe, with different settings optimized for scalping, intraday, swing, and position trading styles.
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
🔶 𝗛𝗢𝗪 𝗜𝗧 𝗪𝗢𝗥𝗞𝗦
The indicator is built around one core principle: market participant activity may reveal itself through the relationship between volume, price movement, and market structure.
𝗥𝗲𝗴𝗶𝗺𝗲 𝗗𝗲𝘁𝗲𝗰𝘁𝗶𝗼𝗻 𝗦𝘆𝘀𝘁𝗲𝗺
What it does: The regime engine calculates a composite score using four weighted components: recent price velocity (where price is heading now versus recent history), trend alignment (EMA stacking and price position relative to moving averages), volume-weighted flow (proportion of volume occurring on up-closes versus down-closes), and volume confirmation (whether current volume exceeds average). The score passes through an EMA smoothing filter and must exceed configurable thresholds for multiple consecutive bars before a regime change is confirmed.
How to interpret it: When the indicator shows Accumulation, this suggests buying pressure currently dominates. Distribution suggests selling pressure dominates. Neutral indicates no clear directional bias. The regime state colors the volume bars: green tints during accumulation, red tints during distribution, gray during neutral periods. A subtle background shade reinforces the current regime.
𝗠𝗮𝗿𝗸𝗲𝘁 𝗦𝘁𝗿𝘂𝗰𝘁𝘂𝗿𝗲 𝗩𝗮𝗹𝗶𝗱𝗮𝘁𝗶𝗼𝗻
What it does: The indicator tracks recent swing highs and swing lows using pivot detection. It compares the most recent swing points to previous ones to determine if price is making higher highs and higher lows (bullish structure), lower highs and lower lows (bearish structure), or mixed patterns.
How to interpret it: When structure aligns with regime (bullish structure during accumulation, bearish structure during distribution), the regime table displays a checkmark. When structure conflicts with regime, this may suggest the regime is losing conviction. Structure validation appears in the regime table and factors into signal quality scores.
𝗩𝗼𝗹𝘂𝗺𝗲 𝗙𝗼𝗼𝘁𝗽𝗿𝗶𝗻𝘁 𝗔𝗻𝗮𝗹𝘆𝘀𝗶𝘀
What it does: On volume spike bars, the indicator analyzes the candle structure. Momentum bars have large bodies relative to their range (directional conviction). Absorption bars have small bodies with large wicks (supply or demand being absorbed without moving price significantly).
How to interpret it: Momentum bars during a trend may suggest strong directional conviction pushing price. Absorption bars may suggest supply or demand being absorbed at support or resistance without significant price movement. Footprint type factors into signal quality and triggers dedicated alerts.
𝗤𝘂𝗮𝗹𝗶𝘁𝘆 𝗦𝗰𝗼𝗿𝗶𝗻𝗴 𝗦𝘆𝘀𝘁𝗲𝗺
What it does: Each signal receives a quality score from 0-100% based on multiple factors: volume spike strength, flow direction conviction, trend alignment, regime strength, regime freshness, squeeze proximity, HTF alignment (if enabled), momentum acceleration, structure agreement, footprint type, market character (trending vs choppy), and confluence count. High signal density (many signals in a short period) reduces quality scores.
How to interpret it: Signals display star ratings: three stars for scores above 85%, two stars for 75-84%, one star for 65-74%, and no stars below 65%. A target emoji appears when five or more confluence factors align. Higher quality scores suggest more factors agreeing, though this does not guarantee outcomes.
𝗠𝘂𝗹𝘁𝗶-𝗧𝗶𝗺𝗲𝗳𝗿𝗮𝗺𝗲 𝗖𝗼𝗻𝗳𝗹𝘂𝗲𝗻𝗰𝗲
What it does: When enabled, the indicator fetches data from one or two higher timeframes and calculates simplified regime scores for each. It checks whether HTF regimes match the current timeframe regime, whether HTF strength exceeds a minimum threshold, and whether HTF regimes are strengthening rather than weakening.
How to interpret it: When all HTF conditions align, signals display an additional emoji indicator. In strict mode, signals only appear when HTF agrees. The HTF table shows regime state, strength percentage, trend direction, and alignment status for each configured timeframe.
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
🔶 𝗪𝗛𝗬 𝗧𝗛𝗘𝗦𝗘 𝗖𝗢𝗠𝗣𝗢𝗡𝗘𝗡𝗧𝗦 𝗪𝗢𝗥𝗞 𝗧𝗢𝗚𝗘𝗧𝗛𝗘𝗥
Each layer addresses a different aspect of market analysis:
1. Regime Detection: Establishes the directional bias using volume-weighted evidence.
2. Structure Validation: Confirms whether price action supports the detected regime.
3. Footprint Analysis: Characterizes the nature of volume activity on spikes.
4. Quality Scoring: Synthesizes all factors into a single actionable metric.
5. Multi-Timeframe Filter: Reduces noise by requiring agreement across timeframes.
When multiple factors align (strong regime, confirming structure, momentum footprint, high quality score, HTF agreement), this represents maximum confluence. Such conditions may warrant closer examination, though they do not guarantee any particular outcome.
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
🔶 𝗛𝗢𝗪 𝗧𝗢 𝗨𝗦𝗘
This section provides step-by-step guidance for interpreting the indicator's visual elements.
𝗦𝘁𝗲𝗽 𝟭: 𝗜𝗱𝗲𝗻𝘁𝗶𝗳𝘆 𝘁𝗵𝗲 𝗖𝘂𝗿𝗿𝗲𝗻𝘁 𝗥𝗲𝗴𝗶𝗺𝗲
Look at the regime table in the corner of the chart. The top row shows the current regime state: ACCUMULATION, DISTRIBUTION, or NEUTRAL. The color matches the regime (green, red, or gray).
• Volume bars tinted green suggest accumulation regime
• Volume bars tinted red suggest distribution regime
• Volume bars gray indicate neutral regime
The regime provides context for all other readings. Trading with the regime (buying during accumulation, selling during distribution) aligns with the detected flow direction.
𝗦𝘁𝗲𝗽 𝟮: 𝗔𝘀𝘀𝗲𝘀𝘀 𝗥𝗲𝗴𝗶𝗺𝗲 𝗛𝗲𝗮𝗹𝘁𝗵
The regime table displays multiple health indicators:
• Strength percentage: Higher values suggest stronger conviction
• Status: STRONG, FADING, WEAKENING, or CRITICAL
• Health: Composite warning indicator (HEALTHY, WATCH, CAUTION, DANGER)
• Structure: Whether price structure agrees with regime
• Market: Whether conditions are TRENDING, NORMAL, or CHOPPY
• Flip: Whether a regime change is building
When status shows FADING or worse, the regime may be losing conviction. Yellow-tinted volume bars appear after three consecutive bars of weakening status, providing early warning of potential regime changes.
𝗦𝘁𝗲𝗽 𝟯: 𝗪𝗮𝘁𝗰𝗵 𝗳𝗼𝗿 𝗦𝗶𝗴𝗻𝗮𝗹𝘀
Bullish signals appear as green labels with an up arrow above volume spikes during accumulation. Bearish signals appear as red labels with a down arrow during distribution. Labels include:
• Star ratings indicating quality (more stars suggest more confluence)
• Target emoji when five or more factors align
• HTF emoji when higher timeframe agrees
Hover over any signal label to see detailed tooltip information including quality percentage, risk levels, position sizing suggestions, and specific confluence factors present.
𝗦𝘁𝗲𝗽 𝟰: 𝗖𝗵𝗲𝗰𝗸 𝗛𝗧𝗙 𝗔𝗹𝗶𝗴𝗻𝗺𝗲𝗻𝘁 (𝗜𝗳 𝗘𝗻𝗮𝗯𝗹𝗲𝗱)
When multi-timeframe filtering is enabled, a second table appears showing HTF regime states. Green checkmarks indicate alignment, red X marks indicate disagreement. For maximum confluence, all timeframes should agree on regime direction.
𝗦𝘁𝗲𝗽 𝟱: 𝗠𝗼𝗻𝗶𝘁𝗼𝗿 𝗘𝘅𝗶𝘁 𝗪𝗮𝗿𝗻𝗶𝗻𝗴𝘀
Yellow warning labels appear when exit conditions trigger: regime flips, flow reversals, critical weakness, time-based exits, or target hits. These suggest reviewing open positions. The tooltip explains the specific exit reason.
𝗦𝘁𝗲𝗽 𝟲: 𝗖𝗼𝗺𝗯𝗶𝗻𝗲 𝗠𝘂𝗹𝘁𝗶𝗽𝗹𝗲 𝗙𝗮𝗰𝘁𝗼𝗿𝘀
The indicator provides the most context when multiple elements align:
𝘌𝘹𝘢𝘮𝘱𝘭𝘦 𝘚𝘤𝘦𝘯𝘢𝘳𝘪𝘰 𝘈 (𝘛𝘳𝘦𝘯𝘥 𝘊𝘰𝘯𝘵𝘪𝘯𝘶𝘢𝘵𝘪𝘰𝘯): Regime shows ACCUMULATION at 72% strength with STRONG status. Structure displays checkmark (HH/HL confirmed). Market character shows TRENDING. A volume spike triggers a bullish signal with two stars and HTF alignment. Multiple factors agreeing during an established regime suggests trend may continue, though no outcome is guaranteed.
𝘌𝘹𝘢𝘮𝘱𝘭𝘦 𝘚𝘤𝘦𝘯𝘢𝘳𝘪𝘰 𝘉 (𝘔𝘰𝘮𝘦𝘯𝘵𝘶𝘮 𝘍𝘢𝘥𝘪𝘯𝘨): Regime shows DISTRIBUTION but status has shifted to FADING. Strength dropped from 65% to 48% over recent bars. Structure shows conflict (regime bearish but structure making higher lows). Volume bars have turned yellow. This type of internal disagreement often appears before regime changes or consolidation periods.
𝘌𝘹𝘢𝘮𝘱𝘭𝘦 𝘚𝘤𝘦𝘯𝘢𝘳𝘪𝘰 𝘊 (𝘌𝘹𝘩𝘢𝘶𝘴𝘵𝘪𝘰𝘯 𝘞𝘢𝘳𝘯𝘪𝘯𝘨): After an extended rally, regime shows ACCUMULATION but status reads CRITICAL. Health indicator shows CAUTION with two warnings active. An absorption bar appears (volume spike with small body and large upper wick). The Flip row shows regime change building. None of this guarantees reversal, but multiple warning signs appearing together suggest caution.
𝘌𝘹𝘢𝘮𝘱𝘭𝘦 𝘚𝘤𝘦𝘯𝘢𝘳𝘪𝘰 𝘋 (𝘉𝘳𝘦𝘢𝘬𝘰𝘶𝘵 𝘍𝘳𝘰𝘮 𝘊𝘰𝘯𝘴𝘰𝘭𝘪𝘥𝘢𝘵𝘪𝘰𝘯): Regime has shown NEUTRAL for several sessions with volume bars gray and muted. Market character displays CHOPPY. Then a volume spike triggers with regime flipping to ACCUMULATION, confirmed by structure shift to HH/HL. A three-star signal appears with target emoji. When multiple elements shift together after a quiet period, consolidation may be resolving into a directional move.
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
🔶 𝗡𝗔𝗩𝗜𝗚𝗔𝗧𝗜𝗡𝗚 𝗗𝗜𝗙𝗙𝗘𝗥𝗘𝗡𝗧 𝗠𝗔𝗥𝗞𝗘𝗧 𝗖𝗢𝗡𝗗𝗜𝗧𝗜𝗢𝗡𝗦
𝗧𝗿𝗲𝗻𝗱𝗶𝗻𝗴 𝗠𝗮𝗿𝗸𝗲𝘁𝘀
During sustained trends, the indicator typically shows persistent regime state (accumulation in uptrends, distribution in downtrends) with STRONG status and TRENDING market character. Structure should confirm with appropriate swing point patterns. Signals receive quality bonuses during trending conditions. Focus on signals that align with the established regime rather than counter-trend setups. The regime strength percentage and status provide ongoing confirmation that the trend remains healthy.
𝗥𝗮𝗻𝗴𝗶𝗻𝗴 𝗠𝗮𝗿𝗸𝗲𝘁𝘀
During consolidation, expect frequent regime shifts between accumulation, distribution, and neutral. Market character will display CHOPPY, and quality scores receive penalties. Structure may show mixed readings. Signal frequency increases but quality decreases. Consider using stricter filtering (higher volume threshold, HTF requirement) or waiting for regime stability before acting. The stability index in the regime table tracks flip frequency to help identify choppy conditions.
𝗛𝗶𝗴𝗵 𝗩𝗼𝗹𝗮𝘁𝗶𝗹𝗶𝘁𝘆 𝗘𝘃𝗲𝗻𝘁𝘀
During news events or volatility spikes, the auto-adapt feature adjusts thresholds based on ATR readings. Higher volatility raises the bar for regime changes, reducing whipsaws. Volume spikes during high volatility require greater statistical significance. The regime table tooltip shows current adaptive settings for transparency. Signals during extreme volatility should be interpreted with additional caution.
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
🔶 𝗧𝗘𝗖𝗛𝗡𝗜𝗖𝗔𝗟 𝗗𝗘𝗧𝗔𝗜𝗟𝗦
• Volume spike detection uses z-score normalization against a lookback window
• Regime scoring combines velocity, trend, flow, and volume components with configurable weights
• Regime changes require multi-bar confirmation above thresholds
• Structure detection uses pivot-based swing point identification
• Footprint classification analyzes body-to-range ratio and wick proportions
• Quality scoring aggregates multiple factors with caps and multipliers
• HTF data uses request.security with lookahead disabled (non-repainting)
• All signals fire on bar close only (non-repainting architecture)
• Parameters adapt automatically based on timeframe category
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
🔶 𝗨𝗡𝗜𝗤𝗨𝗘 𝗙𝗘𝗔𝗧𝗨𝗥𝗘𝗦
• Timeframe Adaptive: All parameters (lookbacks, thresholds, confirmations) automatically scale based on whether the chart shows scalp, intraday, swing, or position timeframes.
• Multi-Layer Warning System: Four warning levels (STRONG, FADING, WEAKENING, CRITICAL) provide graduated alerts as regimes deteriorate, rather than binary flip signals.
• Structure-Regime Validation: Cross-references detected regime against actual price structure (swing highs/lows) to identify potential divergences.
• Volume Footprint Classification: Distinguishes between momentum-driven volume spikes and absorption patterns that may indicate different market participant behavior.
• Quality-Based Position Sizing: Suggested position sizes scale based on signal quality, with higher confluence signals receiving larger size recommendations.
• Non-Repainting Architecture: All calculations use confirmed bar data only. Historical display matches real-time behavior exactly.
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
🔶 𝗦𝗘𝗧𝗧𝗜𝗡𝗚𝗦 𝗢𝗩𝗘𝗥𝗩𝗜𝗘𝗪
• Detection: Volume spike threshold, signal cooldown, regime sensitivity mode, auto-adapt toggle, warning display toggle
• Risk: Account size, risk percentage, ATR length, stop/target multipliers, partial exit percentage, trailing stop and breakeven settings
• Multi-Timeframe: HTF enable toggles, timeframe selections, strict mode, minimum HTF strength threshold
• Strategy: Trading mode selection (Trend Following, Mean Reversion, or Hybrid), mean reversion threshold
• Display: Toggles for regime table, background colors, exit warnings, quality stars, management labels, tooltips, and HTF table
• Table Style: Layout orientation, table positions, text sizes, border and frame widths
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
🔶 𝗔𝗟𝗘𝗥𝗧𝗦
25 alert conditions available:
• Bull Signal / Bear Signal / Any Signal: Core directional signals with quality and position details
• Target 1 Hit / Breakeven: Position management milestones
• Exit Warning: Triggered when exit conditions appear
• Regime to Accumulation / Distribution / Neutral: Individual regime change alerts
• Any Regime Change: Fires on any regime transition
• Regime Weakening: Early warning of deteriorating regime
• Momentum Fading / Flow Deteriorating / Volume Drying: Leading exit indicators
• Multiple Warnings: Fires when two or more warning conditions active
• HTF Aligned / HTF Broke: Multi-timeframe alignment changes
• Structure Bullish / Structure Bearish: Price structure shifts
• Structure Conflict: When structure disagrees with regime
• Momentum Footprint / Absorption Footprint: Volume footprint detection
• Market Trending / Market Choppy: Market character changes
• High Confluence Signal: Signals with five or more factors aligned
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
🔶 𝗟𝗜𝗠𝗜𝗧𝗔𝗧𝗜𝗢𝗡𝗦
• Requires Volume Data: Instruments without reliable volume data (some forex pairs, indices) will produce unreliable readings.
• Analysis Tool, Not Signal Generator: This indicator identifies conditions that may warrant attention. It does not provide entry/exit instructions and should not be followed mechanically.
• Lagging Component: Regime detection requires confirmation bars, introducing necessary lag. Fast reversals may not be captured in time.
• No Guarantee of Outcomes: High quality scores and multiple confluence factors improve context but do not predict results. Markets can move against any setup.
• HTF Limitations: Higher timeframe data updates on HTF bar closes, not continuously. Brief alignment windows may be missed.
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
🔶 𝗖𝗢𝗡𝗖𝗟𝗨𝗦𝗜𝗢𝗡
Volume Oracle provides a structured framework for analyzing volume flow through regime detection, structure validation, footprint classification, quality scoring, and multi-timeframe confluence. The indicator is designed to help traders identify accumulation and distribution phases and assess the conviction behind detected regimes. Multiple warning systems provide early indication when regimes may be losing strength.
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
🔶 𝗗𝗜𝗦𝗖𝗟𝗔𝗜𝗠𝗘𝗥
Trading is risky and most traders lose money. This indicator is provided for informational and educational purposes only. It does not constitute financial advice, and past performance does not guarantee future results. All content, tools, and analysis should not be considered as recommendations to buy or sell any asset. Users are solely responsible for their own trading decisions. Always use proper risk management and consider consulting a qualified financial advisor before making trading decisions.
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
Built with PineScript v6. Non-repainting. All signals confirmed on bar close.
Exchange Sessions - Bollinger Bands Version [FervTrades]This indicator visualizes the four major trading sessions (New York orange, London blue, Tokyo pink, Sydney yellow) using fixed UTC timings optimized for crypto/forex markets and UTC+8 equivalents noted in code. It overlays customizable session ranges (90% transparent boxes), Bollinger Bands (20-period, 2σ default), optional trendlines (linear regression with R²), session means, or max/min levels, plus daily dividers with weekday labels for clear session isolation during high-volume overlaps like London/NY.
Key Features
- Session Dashboard: Real-time table (top-right default) shows active/inactive status (green/red), trend strength (R² >0 bullish), BB width (expansion/contraction), and volatility (σ) for each session; toggle advanced mode for metrics.
- Bollinger Bands Per Session: Session-specific BB calculated incrementally during active hours only, plotted with basis (solid), upper/lower (translucent); ideal for spotting volatility squeezes or breakouts within sessions.
- Flexible Overlays: Enable/disable per session and type (range, BB, trendline, mean, max/min); trendlines use weighted linear regression for directional bias.
----------------Session Times (UTC)----------------
Session Time (UTC) PHT Equivalent
New York 13:00-22:00 9PM-6AM
London 08:00-16:30 4PM-12:30AM
Tokyo 00:00-09:00 8AM-5PM
Sydney 22:00-07:00 6AM-3PM (next day)
Refer to this image:
Perfect for orderflow traders focusing on institutional sessions—pair with volume/delta tools to time entries on BB touches or range breaks. No DST issues; works on any timeframe.
LH Alert Orb & SessionsLH Alert Orb & Session Levels
LH Alert ORB & Sessions is a multi-module intraday trading overlay that combines an Opening Range Breakout (ORB) framework, automated session reference levels, and a “Sniper” alert engine designed to highlight higher-quality momentum entries during a defined New York trading window. It is optimized for index futures—especially NQ/MNQ—and is best used on a 5-minute chart for the intended balance of signal quality and structure clarity.
The indicator plots EMA 10/20/200 and VWAP for trend/mean reference, then generates Sniper Long/Short alerts only when multiple conditions align: directional EMA trend (10 vs 20), reclaim confirmation relative to VWAP and EMA200 within a configurable lookback window, optional “recent cross” validation, and optional RSI and volume expansion filters. To reduce low-quality signals, the Sniper engine includes comprehensive candle-quality rules (minimum body % to avoid dojis, max wick-to-body ratios to avoid wicky indecision candles, hammer-like rejection filtering, and an optional “wick battle” filter that blocks candles where either wick represents an outsized share of the candle range). Alerts can also be gated by proximity to the current ORB and, optionally, require that both VWAP and EMA200 are contained within the opening range to enforce tighter structure-based entries.
The ORB module supports a configurable opening-range duration and an optional custom session (default 08:00–08:15 UTC-5), draws the opening range box, OR High/Low/Mid levels, and optionally displays breakout markers and bias-aware target logic (all breakout signals and targets are disabled by default for a clean chart). Historical ORB drawings can be preserved or hidden based on preference.
In addition, the Sessions module continuously tracks and draws key market structure levels for Asia, London, and PreMarket sessions (High/Low and an average line for each), along with prior trading day high/low using a futures-style trading day definition (rolling at 18:00 New York time). Each level is fully style-customizable (color, line style, width), providing a complete intraday roadmap of session extremes and mean levels alongside the Sniper/ORB framework.
This script is intended for intraday charts only (it enforces a timeframe below 1D) and is designed to be used as an alert-driven decision aid—prioritizing confluence, structure, and candle quality to reduce noise while keeping all major components configurable via grouped settings.
The System THE SYSTEM — Intraday Market Regime & Decision Framework
Overview THE SYSTEM is a closed-source market regime and decision-support framework designed for intraday use, specifically optimized for futures markets. The purpose of the system is not continuous signal generation, but the clear separation of tradable and non-tradable market environments, as well as the statistical reduction of decision-making errors.
Applied Elements and Methodology THE SYSTEM is built upon classical technical indicator families (trend, momentum, and volatility-based calculations); however, it does not use them as standalone indicators or for direct signal generation. The roles of these indicators are functionally separated and organized into a hierarchical decision architecture. These individual elements would not provide a trading signal on their own.
Architecture Overview The operation of the system is based on four mutually validating logical layers:
1. Market Regime Classification The system continuously classifies the market into one of the following states: Trending, Transitional, or Range/Chop. This classification is based on a combination of volatility, momentum, and structure-based measurements. In a Range/Chop state, signal generation is hard-blocked, and the system prohibits trading.
2. Directional Bias Engine (MTF / HTF Validation) Short-term movements are compared against higher-timeframe trend and structural analysis. The system excludes setups that run counter to the dominant direction, reducing the number of counter-trend and false breakout entries. HTF / MTF parameters are user-adjustable; any modifications are at the user's own risk.
3. Momentum & Volatility Filter Signals can only be activated if the current impulse energy exceeds an adaptive threshold and the volatility environment is statistically suitable for intraday trading. This module filters out low-participation moves, exhausted impulses, and noise-driven price fluctuations.
4. Price Action Validation Layer The system also analyzes the internal structure of candles: body-to-wick ratios, closing positions within the range, and impulse continuity. A signal is generated only if the movement is structurally consistent.
Why is it not an Indicator Mashup? THE SYSTEM does not combine indicator values; it builds chains of conditions. A signal can only arise if the market environment is tradable, the direction aligns with the higher timeframe structure, the momentum and volatility are appropriate, and the price action structure is valid. If any layer fails, the system provides no signal. This logic cannot be reproduced by simply merging indicators.
Visual Context Logic The background color is the system's primary decision filter:
🟢 Green – Bullish environment (long-only focus).
🔴 Red – Bearish environment (short-only focus).
⚪ Neutral – Transitional zone; both trend and reversal signals may appear.
⚫ Gray – Range / Chop state; signaling is prohibited.
Technical Characteristics of Signals Long, Short, Early Exit, and Trailing Stop signals may appear intra-bar, but they only become final upon the closing of the candle. The system does not repaint on a closed candle. A yellow signal warns of momentum exhaustion but is non-deterministic and does not appear in all cases.
Optimized Usage
Recommended Timeframe: 5 minutes. Reliability may decrease on lower timeframes due to market noise.
Typical Instruments: Index futures (NQ, ES, YM, RTY), Commodities (Gold, WTI Oil, Copper, Henry Hub Gas), and Crypto (BTC Futures / Perpetuals).
Why is it invite only? The added value is not the existence of the indicators used, but their functional separation, the hierarchical decision logic, and the framework that actively filters out statistically unfavorable trades. The system's goal is not more trades, but fewer, higher-quality decisions.
Disclaimer THE SYSTEM is not an automated strategy but a discretionary decision-support tool. Risk management, position sizing, and trade management are the sole responsibility of the user. Past results do not guarantee future performance.
NY S/R Breakout V1drive.google.com
drive.google.com
Using ATR, VWAP, and RVOL, we can make assumed breakout lines that follow as the price develops, and when a good breakout happens, the lines won't follow but become slightly static to confirm.
The best use I've seen with this indicator is when Price on the 5m closes officially above or below one of the lines, and then shows some bullish push up on the 1m, followed by VWAP price being below price if Bullish, and Above price if Bearish (A good distance is developed for an accurate VWAP)
Please note that this indicator was developed using Google AI.
Please comment on your thoughts, ideas, and improvements to help this indicator grow!
The best settings for this are:
Keep only Long Buffer, short Buffer, and VWAP on
Turn off the ORB High and Low
ATR - 0.3
Relative Volume Threshold - 1.2
These are the settings I found successful for finding confirmed breakouts at 9:30 AM EST, market open
This code was developed by @parischristo67
Coded with Gemini
Dual HTF EMAMulti-timeframe Exponential Moving Average (EMA) indicator plots two separate higher timeframe (HTF) EMAs of your choice. Displays four EMAs per HTF while providing optional background coloring (bullish/bearish). The background coloring occurs when two EMA's cross per HTF. User can select two of the four EMAs to determine the trend direction as they cross creating the background color.
User can configure timeframe, EMA lengths, EMA cross and background, source, and visibility; separately for each timeframe.
Default lengths are 9, 21, 50, 200 with source as closed and EMA cross background from EMA 1 and EMA 3. Also clear visual distinction using thick solid lines for HTF 1 and thin dashed lines for HTF 2.
Uses request.security() with gaps=barmerge.gaps_on to avoid staircase effects on lower timeframes.
This script is ideal for multi-timeframe analysis, helping traders align shorter-term price movements with broader trends from higher timeframes without cluttering the chart.
Market State Tracker🙏🏻 This is MST (Market State Tracker) , it’s main purpose is to tell whether it's better to take a predefined take-profit, or to expect a runner.
Unlike widely-known alternatives, this model is made with top state-space and innovation modelling tech, and it takes the necessary info ‘itself’ (not the derivatives) from the right places. In fancy terms it’s not even a model, it’s an ensemble of several models. If you want to get familiar with other work of mine like this, check UAT .
^^ compared with reverse-engineered Jurik Moving Average in moving window mode
…
Main use case : take-profit engine. It tells whether to hold a position past its primary 1:1 Risk:Reward take-profit up to the opposite entry), or to close it right away at 1:1.
Alternative use case : market state operator. Alternatively the study can be used as a primary market-state operator that would actually define further strategies and actions. It’s very useful if your strategies are not market regime agnostic. Otherwise, use it only as the main use case tells.
Other use cases : anything that other mainstream studies are doing, but better* (proceed to the Tech Note in the end of the post): trend detection, price smoothing, crossovers, dynamic S&R etc.
…
How to use:
The script has 2 studies, lower study (blue and red lines) and upper study (purple and gray lines).
...
Lower study is less variance & more bias option , in general it’s less preferred than upper study, but if none of your other system layers do not gauge directional info directly and you wanna keep it simply this way, this lower study is what you need.
Lower study states -> advised take-profit strategy:
When: negative gamma (red line) is above positive gamma (blue line), market is biased towards sell side, so shorts should be held up to the opposite entry, while longs should be closed asap after 1:1 Risk:Reward
When: positive gamma (blue line) is above negative gamma (red line), market is biased towards buy side, so longs should be held up to the opposite entry, while shorts should be closed asap after 1:1 Risk:Reward
...
Upper study is the preferred one in general because of its higher informational content. Most probably, if you’re already gaining directional info on your other system layers, this one will likely provide you information you don’t gain there. Here the purple line is the lead state estimate, and the gray line is the lagged state estimate, and current price = current bar POC or HLC3 (inferred POC).
Upper study states -> advised take-profit strategy:
When: current price > purple line > gray line, market is heavily biased towards buy side, so longs should be held up to the opposite entry, while shorts should be closed asap after 1:1 Risk:Reward
When: current price < purple line < gray line, market is heavily biased towards sell side, so shorts should be held up to the opposite entry, while longs should be closed asap after 1:1 Risk:Reward
When: purple line > gray line > current price, market is biased towards another buy wave, so longs should be held up to the opposite entry, while shorts should be closed asap after 1:1 Risk:Reward
When: purple line < gray line < current price, market is biased towards another sell wave, so shorts should be held up to the opposite entry, while longs should be closed asap after 1:1 Risk:Reward
All other price x purple line x gray line patterns are considered neutral, and both longs and shorts are done with minimal 1:1 Risk:Reward.
Important: if you trade based on current session activity, you have to track current states. If you trade based on previous session levels, you only need the last state of that session that originated the level.
Important 2: The script has a setting called “blend”. The differences between all 3 options provided there are extremely low, and moreover it doesn’t change the main part: location of crossovers. So I left it here because I genuinely don’t know yet which of these is the most primordial math option for the current context xd.
...
* now about this:
Tech note
In short: it gains all the information without touching artifacts with the best possible math that runs on O(1) time complexity.
The ‘final’ time complexity of the whole method is O(1), both in moving and expanding window modes.
The main short-term forecasting & innovations engine, I called it VAPM (Volume Acceleration Price Model) , is inspired by how prediction and NaN fills works on the lowest hardware level, processor cache etc. It’s based on splines , the most fundamental geometrical principles. This is the stuff you can run on FPGAs doing UHFT, not even HFT.
Based on lead/lag and negative/positive relationships with the VAPM forecasts, innovations are separated into 4 different streams.
Each stream of these 4 then discovers its own adaptive gain (limited by theoretical constraints of the exponential distribution each stream follows).
Then, 4 separate PVA (Position Velocity Acceleration) state-space models are run on POC estimate of each bar, using previously computed 4 different adaptive gains. Initial impulse response of the models was almost exactly matched with the Extended Beta(2, 2) Window, provided in UAT open access script (heck the code & description, it would worth it).
Then these 4 separate trackers are grouped pairwise and blended into 2, resulting in the lead/lag model.
Additionally, 4 adaptive gains are blended into 2 separate pos/neg models. I offer 3 blending options: max(), contraharmonic mean, and Log-Sum-Exp. The differences of outputs based on these 3 options are almost negligible.
All possible hidden issues like info leakage from previous finished expanding windows, or special cases of forecasts at the very few first datapoints, are taken into account and solved. The whole method has zero constants and zero pre-optimized or arbitrary values, everything based on fundamental math entities / objects.
…
∞
BTC - Power Law 1.5: Dynamic 50/50 Decay OVERVIEW
Most Bitcoin models treat the asset as if it exists in a vacuum of infinite exponential growth. The classical Power Law (v1.0) was a groundbreaking start, but as Bitcoin matures into a multi-trillion dollar institutional asset, our models must account for the laws of physics and liquidity. The Power Law 1.5: Dynamic 50/50 Decay is a second-generation structural engine. It doesn't just draw a line; it calculates the structural "Center of Gravity" of Bitcoin’s adoption curve while accounting for the natural maturation (decay) of the network’s growth speed.
THE MATHEMATICAL BACKBONE: QUANTILE MEDIAN CALCULATION
The "Fair Value" line (blue) is derived using a Log-Log Linear Regression focused on the 50th percentile (Median). The script first transforms the price and the time (days since the Genesis Block) into a logarithmic scale. It then calculates a power-law constant by finding the Absolute Least Deviation across the entire historical dataset since 2011. Specifically, it uses the formula: Price = 10^(Intercept + Slope * log10(Days)) . To ensure the line is a true median, the script calculates the Median Offset of every historical price point from the raw regression line. By shifting the intercept by this median value, we guarantee that exactly 50% of all weekly bars fall above the curve and 50% fall below it, creating a robust, non-biased structural center.
THE ALPHA SHADOW: DYNAMIC EXPONENT PROJECTION
Unlike standard power-law projections that rely on a static slope, the "Alpha Shadow" (the projection extending from the blue backbone) utilizes a Time-Varying Exponent Model . The model acknowledges that Bitcoin's growth speed—the exponent 'b'—is a decaying function of time, reflecting the diminishing returns of a maturing asset. The script recalculated the Instantaneous Slope on every single bar using the formula: Future_Slope = Initial_Slope - (Decay_Rate * log10(Total_Days_from_Genesis)) . While the Decay Rate (default 0.045) serves as a structural sensitivity constant, its application ensures the growth speed is a dynamic variable rather than a fixed number. Each segment of the dashed green "Shadow" is a unique power-law arc calculated for its specific future time window. This ensures the projection isn't just a straight line drawn on a log chart, but a mathematically tethered curve that "feels" the weight of increasing market capitalization and respects the reality of global liquidity constraints as we approach 2029.
HOW TO READ THE CHART
• The Backbone (Solid Blue): This is the 50/50 Fair Value. When price is below this line, Bitcoin is structurally "cheap." When price is far above it, the asset is in a state of cyclical expansion.
• The Alpha Shadow (Green): This is the mathematical projection of the current curve into 2029. It shows the path of "Fair Value" as the network continues to mature.
• The Regime Audit (Dashboard): A real-time table in the middle-right of your chart provides an audit of the model's integrity, including the current slope (b) and the projected Fair Price for Jan 1, 2029.
WHY THIS IS "FRESH"
Most open-source Power Law scripts on TradingView utilize a Static Linear Regression —calculating a single constant slope that is applied equally to 2011 and 2029. Furthermore, common community models often rely on "Outer Band" fitting (connecting historical cycle peaks to cycle lows). While visually appealing, these methods can be highly sensitive to "Black Swan" outliers and often assume Bitcoin’s growth velocity is a permanent constant.
This script stands out by introducing a Maturation Framework . Instead of fitting to volatile extremes, we anchor the logic to a 50/50 Quantile Median , creating a backbone that is mathematically centered regardless of cyclical noise. By then applying a Dynamic Decay Factor to the growth exponent, we move away from the "static bands" approach and toward a model that respects the physical reality of a maturing, multi-trillion-dollar asset class. This provides a structurally grounded, institutional-grade view of Bitcoin’s trajectory that accounts for the diminishing returns inherent in global adoption.
DISCLAIMER
This script is for educational and macro-analytical purposes only. It does not constitute financial advice. The 2029 projection is a mathematical extrapolation based on historical data and decay constants; it is not a guarantee of future price action.
TAGS
bitcoin, powerlaw, macro, regression, fairvalue, btc, projection, quantitative, math, structural, Rob Maths, robmaths, Rob_Maths






















