Divergence Constellation [JOAT]Divergence Constellation
Introduction
The Divergence Constellation is an advanced open-source multi-oscillator divergence detection system that combines RSI, MACD, TSI, and Stochastic analysis with sophisticated pivot detection and confluence scoring. This indicator identifies both regular and hidden divergences across multiple oscillators simultaneously, creating a constellation of divergence signals that reveal potential reversals and trend continuations with high probability.
Unlike single-oscillator divergence tools, the Divergence Constellation provides multi-dimensional divergence analysis through composite oscillator calculation, four-oscillator confluence scoring, regular and hidden divergence detection, and chart projection. The indicator is designed for traders who understand that divergences confirmed across multiple oscillators provide significantly higher probability setups than single-oscillator divergences.
Why This Indicator Exists
This indicator addresses the need for systematic multi-oscillator divergence analysis. By combining four distinct oscillators with confluence scoring, it reveals:
Regular Bullish Divergence: Price makes lower low, oscillators make higher low (reversal up signal)
Regular Bearish Divergence: Price makes higher high, oscillators make lower high (reversal down signal)
Hidden Bullish Divergence: Price makes higher low, oscillators make lower low (trend continuation up)
Hidden Bearish Divergence: Price makes lower high, oscillators make higher high (trend continuation down)
Confluence Scoring: Counts how many oscillators confirm the divergence (1-4 score)
Composite Oscillator: Unified oscillator combining all four components
Chart Projection: Divergence lines drawn on both oscillator pane and main chart
Core Components Explained
1. Four-Oscillator System
The indicator calculates four distinct oscillators, each providing unique momentum perspective:
RSI (Relative Strength Index):
Measures momentum by comparing average gains to average losses
Zero-centered (subtracts 50) for composite integration
Sensitive to overbought/oversold conditions
Default period: 14
MACD (Moving Average Convergence Divergence):
Measures relationship between two exponential moving averages
Histogram shows momentum acceleration/deceleration
Responsive to trend changes
Default periods: 12, 26, 9
TSI (True Strength Index):
Double-smoothed momentum indicator
Filters noise while preserving trend direction
Excellent for divergence detection
Default periods: 25, 13
Stochastic:
Compares close to recent high-low range
Zero-centered (subtracts 50) for composite integration
Identifies overbought/oversold extremes
Default periods: 14, 3
2. Composite Oscillator Calculation
All four oscillators are combined into a unified composite:
Composite = (RSI + MACD + TSI + Stochastic) / 4
This composite oscillator provides a balanced view of momentum across all four methodologies. Divergences are detected on the composite, then confirmed by checking individual oscillators.
3. Pivot Detection System
The indicator uses sophisticated pivot detection to identify divergence points:
Pivot Left/Right: Number of bars on each side for pivot confirmation (default: 5)
Price Pivots: Identifies swing highs and lows in price
Oscillator Pivots: Identifies swing highs and lows in each oscillator
Lookback Range: Min (5) to Max (60) bars for comparing pivots
Pivots must be confirmed (bars on both sides) before divergence analysis begins.
4. Regular Divergence Detection
Regular divergences signal potential reversals:
Regular Bullish Divergence:
Price makes lower low (current pivot low < previous pivot low)
Composite oscillator makes higher low (current pivot low > previous pivot low)
Indicates weakening downward momentum - potential reversal up
Best at oversold levels (composite < -20)
Regular Bearish Divergence:
Price makes higher high (current pivot high > previous pivot high)
Composite oscillator makes lower high (current pivot high < previous pivot high)
Indicates weakening upward momentum - potential reversal down
Best at overbought levels (composite > 20)
5. Hidden Divergence Detection
Hidden divergences signal trend continuation:
Hidden Bullish Divergence:
Price makes higher low (current pivot low > previous pivot low)
Composite oscillator makes lower low (current pivot low < previous pivot low)
Indicates strong underlying bullish momentum - trend continuation up
Confirms uptrend strength
Hidden Bearish Divergence:
Price makes lower high (current pivot high < previous pivot high)
Composite oscillator makes higher high (current pivot high > previous pivot high)
Indicates strong underlying bearish momentum - trend continuation down
Confirms downtrend strength
6. Confluence Scoring System
When a divergence is detected on the composite, the indicator checks all four individual oscillators:
Score 1/4: Only one oscillator confirms - weak divergence
Score 2/4: Two oscillators confirm - moderate divergence (minimum for signals)
Score 3/4: Three oscillators confirm - strong divergence
Score 4/4: All four oscillators confirm - extreme divergence (highest probability)
The minimum confluence score (default 2) filters out weak divergences that lack multi-oscillator confirmation.
7. Signal Generation Logic
Signals are generated only at extreme oscillator levels with anti-overlap logic:
Bullish Signals:
Regular bullish divergence detected
Composite oscillator < -20 (oversold)
Confluence score >= minimum (default 2)
At least 20 bars since last bullish signal (anti-overlap)
Bearish Signals:
Regular bearish divergence detected
Composite oscillator > 20 (overbought)
Confluence score >= minimum (default 2)
At least 20 bars since last bearish signal (anti-overlap)
Extreme Signals:
Confluence score = 4/4 (all oscillators confirm)
Composite at extreme levels (< -30 or > 30)
Displayed as diamond shapes for emphasis
8. Visual Divergence Lines
Divergence lines are drawn connecting pivot points:
Regular Divergences: Solid lines (green = bullish, red = bearish)
Hidden Divergences: Dashed lines (cyan = bullish, orange = bearish)
Oscillator Pane: Lines drawn on composite oscillator
Chart Projection: Lines also drawn on main price chart (optional)
Lines provide visual confirmation of the divergence pattern and help identify the exact pivot points involved.
Visual Elements
Four Oscillator Lines: Thick colored lines showing RSI (cyan), MACD (magenta), TSI (yellow), and Stochastic (green)
Composite Line: White line showing unified oscillator
Zero Line: Gray horizontal line at zero
Overbought/Oversold Zones: Shaded areas at +30/-30 levels
Divergence Lines: Solid/dashed lines connecting pivot points
Signal Triangles: Small triangles at signal generation points
Extreme Diamonds: Larger diamonds for 4/4 confluence signals
Information Dashboard: Displays composite position, confluence score, RSI/MACD/TSI/Stochastic status, composite value, divergence types, signal strength, extreme events, and overall verdict
How to Use This Indicator
Step 1: Monitor Composite Position
Check if composite oscillator is at extreme levels (> 30 overbought, < -30 oversold). Divergences at extremes have highest probability.
Step 2: Check Confluence Score
Look for confluence scores of 3/4 or 4/4. Higher scores indicate stronger divergence confirmation across multiple oscillators.
Step 3: Identify Divergence Type
Regular divergences signal reversals, hidden divergences signal trend continuation. Trade accordingly.
Step 4: Wait for Signal Confirmation
Don't trade divergence lines alone. Wait for signal triangles that confirm divergence meets all criteria (extreme level, confluence, anti-overlap).
Step 5: Look for Extreme Events
Diamond shapes indicate 4/4 confluence at extreme levels - highest probability setups.
Step 6: Confirm with Price Action
Use divergence signals as alerts, then confirm with price action, support/resistance, or other indicators before entering.
Step 7: Check Individual Oscillators
Dashboard shows status of each oscillator. All four overbought/oversold provides additional confirmation.
Best Practices
Trade only divergences with confluence score >= 2 (default minimum)
Focus on regular divergences at extreme levels (< -30 or > 30) for reversals
Use hidden divergences to confirm trend continuation, not as standalone entries
Wait for signal triangles - don't front-run divergence lines
4/4 confluence signals (diamonds) offer highest probability setups
Combine with support/resistance levels for additional confirmation
Avoid divergences in middle range (-20 to +20) - wait for extremes
Use higher timeframe divergences for stronger significance
Input Parameters
Pivot Detection:
Pivot Left: Bars to left of pivot (default: 5)
Pivot Right: Bars to right of pivot (default: 5)
Max Lookback: Maximum bars to compare pivots (default: 60)
Min Lookback: Minimum bars to compare pivots (default: 5)
Oscillator Configuration:
RSI Length: Period for RSI (default: 14)
MACD Fast: Fast EMA period (default: 12)
MACD Slow: Slow EMA period (default: 26)
MACD Signal: Signal line period (default: 9)
TSI Long: Long smoothing period (default: 25)
TSI Short: Short smoothing period (default: 13)
Stochastic K: K period (default: 14)
Stochastic D: D smoothing (default: 3)
Divergence Rules:
Show Regular Divergence: Toggle regular divergence detection (default: enabled)
Show Hidden Divergence: Toggle hidden divergence detection (default: enabled)
Min Confluence Score: Minimum oscillators that must confirm (default: 2)
Project on Chart: Draw divergence lines on main chart (default: enabled)
Visual Configuration:
Bullish/Bearish Divergence Colors: Colors for regular divergences
Hidden Bullish/Bearish Colors: Colors for hidden divergences
Originality Statement
This indicator is original in its multi-oscillator confluence approach. While individual oscillators and divergence concepts are established, this indicator is justified because:
It combines four distinct oscillators into a unified composite system
The confluence scoring system measures divergence strength across multiple oscillators
Automatic detection of both regular and hidden divergences with pivot analysis
Signal generation includes extreme level filtering and anti-overlap logic
Chart projection allows divergence visualization on both oscillator and price chart
The comprehensive dashboard presents all oscillator states and divergence metrics simultaneously
Integration of multiple oscillator perspectives creates higher probability divergence signals
Disclaimer
This indicator is provided for educational and informational purposes only. It is not financial advice. Trading involves substantial risk of loss. Divergence analysis does not guarantee profitable trades or reversals. Past divergences do not guarantee future results. Always use proper risk management and never risk more than you can afford to lose.
-Made with passion by officialjackofalltrades Indicator

Prismatic Trend Matrix [JOAT]Prismatic Trend Matrix
Introduction
The Prismatic Trend Matrix is an advanced open-source multi-dimensional trend analysis system that combines Hull Moving Average, SuperTrend, ADX strength filtering, and moving average confluence into a unified trend detection engine. This indicator analyzes trend across multiple dimensions simultaneously, creating a prismatic view of market direction with gradient visualization that reveals trend strength and conviction.
Unlike single-indicator trend systems, the Prismatic Trend Matrix provides multi-layered trend intelligence through Hull MA smoothing, SuperTrend band analysis, ADX strength measurement, and EMA/SMA alignment detection. The indicator is designed for traders who understand that strong trends require confirmation across multiple analytical dimensions.
Why This Indicator Exists
This indicator addresses the need for comprehensive trend analysis that goes beyond simple moving averages. By combining four distinct trend methodologies with gradient visualization, it reveals:
Hull Moving Average: Weighted moving average with reduced lag for responsive trend detection
SuperTrend Component: ATR-based bands that identify trend direction and support/resistance
ADX Strength Filter: Measures trend strength to separate strong trends from weak/choppy conditions
Moving Average Matrix: Three EMAs and two SMAs create alignment-based trend confirmation
Trend Classification: Five-state system (Strong Bull, Weak Bull, Sideways, Weak Bear, Strong Bear)
Counter-Trend Detection: Identifies potential reversals when price moves against established trend
Prismatic Gradient: Visual fill between Hull MA and SuperTrend shows trend intensity
Core Components Explained
1. Hull Moving Average (HMA)
The Hull MA uses weighted moving averages to create a smooth trend line with minimal lag:
The calculation involves three steps:
Step 1: Calculate WMA of half-length period
Step 2: Calculate WMA of full-length period
Step 3: Calculate WMA of the difference using square root of length
The result is a moving average that responds quickly to price changes while maintaining smoothness. The indicator applies additional EMA smoothing (default 3 periods) to reduce noise.
2. SuperTrend Calculation
SuperTrend uses ATR-based bands to identify trend direction:
Source: Average of high and low (HL2)
Upper Band: Source + (ATR × Factor)
Lower Band: Source - (ATR × Factor)
Direction: Bullish when close > upper band, bearish when close < lower band
Three modes control band adjustment:
Strict Mode: Bands adjust only when price crosses or previous band is breached
Quick Mode: Bands adjust when price crosses previous band
Quicker Mode: Bands adjust immediately with price
SuperTrend provides dynamic support/resistance levels that adapt to volatility.
3. ADX Strength Measurement
The Average Directional Index measures trend strength:
DI+ (Directional Indicator Plus): Measures upward directional movement
DI- (Directional Indicator Minus): Measures downward directional movement
ADX: Smoothed average of the difference between DI+ and DI-, normalized
Threshold: ADX above threshold (default 25) indicates strong trend
Rising ADX: Indicates strengthening trend momentum
ADX filters out weak trends and choppy conditions, ensuring signals occur only during strong directional movement.
4. Moving Average Matrix
Five moving averages create a trend alignment system:
Fast EMA (9): Short-term trend direction
Medium EMA (21): Intermediate trend direction
Slow EMA (50): Primary trend direction
Fast SMA (50): Smoothed primary trend
Slow SMA (200): Long-term institutional trend
Alignment is measured by comparing the order of these averages:
Bullish Alignment: EMA9 > EMA21 > EMA50 > SMA50 (all in ascending order)
Bearish Alignment: EMA9 < EMA21 < EMA50 < SMA50 (all in descending order)
Mixed Alignment: Averages not in order (choppy or transitional conditions)
Perfect alignment indicates strong institutional conviction in the trend direction.
5. Composite Trend Classification [/b>
The indicator combines all components into a five-state trend classification:
Strong Bull (State 2): Hull rising + SuperTrend bullish + MA alignment bullish + ADX strong
Weak Bull (State 1): Hull rising + (SuperTrend bullish OR MA alignment bullish)
Sideways (State 0): Mixed signals or weak trend conditions
Weak Bear (State -1): Hull falling + (SuperTrend bearish OR MA alignment bearish)
Strong Bear (State -2): Hull falling + SuperTrend bearish + MA alignment bearish + ADX strong
This classification provides clear trend assessment at a glance.
6. Counter-Trend Detection [/b>
The indicator identifies potential reversals when price moves against established trend:
Counter-Trend Bull: Trend state neutral/bearish + close > open + price rising + DI+ > DI- + close > Hull + ADX > 20
Counter-Trend Bear: Trend state neutral/bullish + close < open + price falling + DI- > DI+ + close < Hull + ADX > 20
Counter-trend signals include anti-overlap logic to prevent signal clustering and ensure clean placement.
7. Prismatic Gradient Visualization
The indicator creates a gradient fill between Hull MA and SuperTrend:
Gradient Layers: Multiple intermediate values calculated between Hull and SuperTrend (default 15 layers)
Color Intensity: Transparency increases from Hull (solid) to SuperTrend (transparent)
Dynamic Coloring: Gradient color matches trend state (green = bullish, red = bearish, cyan = sideways)
Visual Effect: Creates a glowing prismatic effect that emphasizes trend strength
The gradient provides intuitive visual feedback on trend intensity and direction.
8. Platform Levels
Platform levels are horizontal lines at the current Hull MA value:
Extension: Lines extend forward and backward from current bar (default 7 bars each direction)
Color Coding: Platform color matches current trend state
Purpose: Provides visual reference for potential support/resistance at Hull MA level
Platforms help identify key levels where price may find support or resistance.
Visual Elements
Hull Trend Line: Thick line (3px) with regime-based coloring showing primary trend
SuperTrend Line: Medium line (2px) with step-line style showing dynamic support/resistance
EMA Matrix: Three thin lines showing fast, medium, and slow EMAs with transparency
Prismatic Gradient: Multi-layer fill between Hull and SuperTrend creating glow effect
Platform Levels: Horizontal lines at Hull MA value extending forward/backward
Counter-Trend Signals: Triangles marking potential reversal points
Background Coloring: Subtle background tint for strong bull/bear states
Information Dashboard: Displays trend state, Hull direction, ADX strength, momentum, alignment, SuperTrend, DI balance, price vs Hull, gradient zone, counter-trend status, and signal
How to Use This Indicator
Step 1: Check Trend State
Monitor the dashboard for current trend state (Strong Bull, Weak Bull, Sideways, Weak Bear, Strong Bear). Trade in the direction of strong states.
Step 2: Verify ADX Strength
Ensure ADX is above threshold (default 25) for strong trends. Low ADX indicates choppy conditions - avoid trend-following strategies.
Step 3: Confirm MA Alignment
Check if moving averages are aligned (Bullish/Bearish/Mixed). Perfect alignment confirms institutional conviction.
Step 4: Monitor Hull Direction
Hull rising = bullish bias, Hull falling = bearish bias. Hull provides the primary trend direction signal.
Step 5: Use SuperTrend for Support/Resistance
SuperTrend line acts as dynamic support in uptrends and resistance in downtrends. Breaks of SuperTrend warn of trend changes.
Step 6: Watch for Counter-Trend Signals
Counter-trend signals at extreme levels may indicate reversals. Use these cautiously and confirm with other factors.
Step 7: Assess Gradient Zone
Price in upper gradient zone (near Hull) = strong trend, price in lower zone (near SuperTrend) = weak trend or potential reversal.
Best Practices
Trade only in Strong Bull or Strong Bear states for highest probability
Avoid trading in Sideways state - wait for clear trend establishment
Use ADX as a filter - only trade when ADX > 25 for strong trends
Confirm trend with MA alignment before entering positions
Use SuperTrend as trailing stop level in trending markets
Counter-trend signals work best at extreme levels with divergence
Monitor gradient zone - price near SuperTrend may indicate trend exhaustion
Combine with higher timeframe trend for additional confirmation
Input Parameters
Hull Trend Engine:
Hull Length: Period for Hull MA calculation (default: 20)
Hull Smoothing: Additional EMA smoothing (default: 3)
SuperTrend Layer:
ATR Period: Period for ATR calculation (default: 10)
ATR Factor: Multiplier for band width (default: 3.0)
Mode: Strict, Quick, or Quicker (default: Quick)
Trend Strength:
ADX Length: Period for ADX calculation (default: 14)
ADX Smoothing: Smoothing period for ADX (default: 14)
Strength Threshold: Minimum ADX for strong trend (default: 25)
MA Matrix:
Fast EMA: Short-term EMA (default: 9)
Medium EMA: Intermediate EMA (default: 21)
Slow EMA: Primary EMA (default: 50)
Fast SMA: Smoothed primary (default: 50)
Slow SMA: Long-term institutional (default: 200)
Visual Configuration:
Bullish/Bearish Trend Colors: Customizable colors for trend states
Sideways/Weak Trend Colors: Colors for neutral and weak states
Gradient Layers: Number of gradient fills (default: 15)
Show Platforms: Toggle platform level display (default: enabled)
Platform Extension: Bars to extend platforms (default: 7)
Originality Statement
This indicator is original in its multi-dimensional trend approach. While individual components (Hull MA, SuperTrend, ADX, EMAs) are established concepts, this indicator is justified because:
It combines four distinct trend methodologies into a unified classification system
The five-state trend classification provides clear trend assessment
Prismatic gradient visualization creates intuitive trend intensity display
Counter-trend detection with anti-overlap logic identifies potential reversals
MA alignment analysis measures institutional conviction
Integration of Hull MA smoothness with SuperTrend adaptability creates balanced trend detection
The comprehensive dashboard presents all trend dimensions simultaneously
Disclaimer
This indicator is provided for educational and informational purposes only. It is not financial advice. Trading involves substantial risk of loss. Trend analysis does not guarantee profitable trades. Past trends do not guarantee future trends. Always use proper risk management and never risk more than you can afford to lose.
-Made with passion by officialjackofalltrades Indicator

Vortex Liquidation Reaper [JOAT]Vortex Liquidation Reaper
Introduction
The Vortex Liquidation Reaper is an advanced open-source liquidity detection system that identifies institutional liquidity sweeps, equal highs/lows, volume imbalances, and cascade events. This indicator reveals where retail stop losses cluster and how institutions hunt that liquidity to fill their orders, providing traders with a systematic approach to understanding market manipulation and liquidity engineering.
Unlike basic support/resistance indicators, the Vortex Liquidation Reaper provides institutional-grade liquidity analysis through pivot detection, equal level identification, volume profiling, sweep tracking, and cascade detection. The indicator is designed for traders who understand that institutions move markets by systematically hunting liquidity pools where retail traders place their stops.
Why This Indicator Exists
This indicator addresses the critical need for liquidity analysis in modern trading. By combining liquidity level detection with volume profiling and sweep tracking, it reveals:
Buy Side Liquidity (BSL): Pivot highs where long stop losses cluster above current price
Sell Side Liquidity (SSL): Pivot lows where short stop losses cluster below current price
Equal Highs/Lows: Multiple pivots at similar levels indicating concentrated liquidity
Liquidity Sweeps: When price moves through liquidity levels to trigger stops
Volume Confirmation: Volume surge detection confirms institutional participation
Cascade Events: Multiple sweeps with high volume indicating forced liquidations
Liquidity Voids: Gaps between liquidity levels where price may move quickly
Core Components Explained
1. Liquidity Level Detection
Liquidity levels are identified at pivot highs and lows using swing analysis:
Pivot Detection: Uses left and right bars (default 10) to identify swing points
Buy Side Liquidity: Pivot highs represent areas where long traders place stops above
Sell Side Liquidity: Pivot lows represent areas where short traders place stops below
Volume Tracking: Each liquidity level stores the volume at the pivot formation
The indicator maintains arrays of active liquidity levels, tracking up to the maximum specified (default 5 BSL and 5 SSL levels).
2. Equal Level Detection
Equal highs and lows are identified by comparing new pivots with existing liquidity levels:
Threshold Calculation: Two levels are considered equal if within threshold percentage (default 0.3%)
Equal Highs (EQH): Multiple pivot highs at similar prices indicate strong resistance and concentrated liquidity
Equal Lows (EQL): Multiple pivot lows at similar prices indicate strong support and concentrated liquidity
Visual Distinction: Equal levels are displayed in gold color to highlight their importance
Equal levels are particularly significant because they represent areas where multiple waves of traders have placed stops, creating dense liquidity pools that institutions target.
3. Volume Profiling
The indicator analyzes volume at each liquidity level and compares it to average volume:
Average Volume: Calculated over lookback period (default 45 bars)
Volume Surge: Detected when current volume exceeds average by multiplier (default 2.25x)
Volume Percentage: Shows how much above/below average the pivot volume was
Volume Labels: Display actual volume and percentage on liquidity level labels
High volume at pivot formation suggests institutional interest. Volume surges during sweeps confirm institutional participation in the liquidity hunt.
4. Liquidity Sweep Detection
Sweeps occur when price moves through a liquidity level, triggering stops:
Wick Mitigation: Sweep confirmed when wick touches the level
Close Mitigation: Sweep confirmed when close passes through the level
Sweep Tracking: Swept levels are marked with dotted lines and "SWEPT" labels
Reversal Potential: Sweeps often precede reversals as institutions fill orders
The indicator tracks which levels have been swept and can optionally hide mitigated levels to keep charts clean.
5. Cascade Detection
Cascades occur when multiple liquidity sweeps happen in quick succession with high volume:
Cascade Counter: Tracks how many times a level has been swept
Volume Confirmation: Requires volume surge for cascade classification
Cascade Threshold: Two or more sweeps with volume surges trigger cascade status
Visual Indication: Cascade zones displayed in magenta with "CASCADE" labels
Cascades indicate forced liquidations where stop losses trigger more stop losses, creating chain reactions that institutions exploit.
6. Liquidity Void Detection
The indicator identifies gaps between liquidity levels where price may move quickly:
Void Calculation: Measures distance between nearest BSL and SSL
Void Threshold: Gaps exceeding 2% of price are classified as liquidity voids
Visual Display: Voids shown as magenta boxes with percentage labels
Trading Implication: Price often moves quickly through voids due to lack of liquidity
Liquidity voids represent areas where few stops exist, allowing price to move rapidly with minimal resistance.
7. Liquidity Strength Levels
The indicator identifies the strongest liquidity concentrations:
Highest BSL: The highest buy side liquidity level represents strongest overhead resistance
Lowest SSL: The lowest sell side liquidity level represents strongest support
Strength Lines: Dashed lines extend from these levels showing key liquidity zones
Labels: "STRONG BSL" and "STRONG SSL" labels mark these critical levels
Strong liquidity levels are prime targets for institutional liquidity hunts.
8. Volume Imbalance Detection
The indicator tracks extreme volume spikes that indicate institutional activity:
Imbalance Calculation: Current volume compared to average volume
Spike Threshold: Imbalances exceeding 100% (2x average) are flagged
Visual Labels: "VOL SPIKE" labels show percentage above average
Institutional Footprint: Extreme volume often accompanies institutional order flow
Volume imbalances at liquidity levels confirm institutional participation in the sweep.
Visual Elements
Liquidity Level Boxes: Colored boxes extending from pivot time showing BSL (green), SSL (red), EQH/EQL (gold), and cascades (magenta)
Liquidity Lines: Horizontal lines at each level with thickness indicating importance (equal levels = thicker)
Projection Lines: Dashed extensions showing where liquidity levels project into the future
Volume Labels: Display volume amount and percentage above/below average
Sweep Indicators: Small "SWEEP" labels mark when levels are taken out
Cascade Labels: "CASCADE" text on levels that have been swept multiple times
Void Boxes: Magenta boxes showing liquidity voids with percentage labels
Strength Lines: Dashed lines marking strongest BSL and SSL levels
Information Dashboard: Displays active BSL/SSL count, equal highs/lows, cascades, volume status, swept counts, and trading bias
How to Use This Indicator
Step 1: Identify Active Liquidity Levels
Check the dashboard for active BSL and SSL counts. More levels indicate more potential targets for institutional sweeps.
Step 2: Look for Equal Highs/Lows
Equal levels (gold color) represent concentrated liquidity. These are prime targets for institutional liquidity hunts.
Step 3: Monitor Volume at Levels
High volume at pivot formation suggests institutional interest. Volume surges during sweeps confirm institutional participation.
Step 4: Watch for Liquidity Sweeps
When price sweeps a level (especially equal levels), watch for reversal. Institutions often reverse price after filling orders.
Step 5: Identify Cascade Events
Cascades (multiple sweeps with volume) indicate forced liquidations. These often mark exhaustion points and reversals.
Step 6: Check for Liquidity Voids
Large gaps between BSL and SSL indicate voids where price may move quickly. Avoid entering in voids.
Step 7: Use Trading Bias
Dashboard shows bias based on liquidity balance. More active BSL = long bias, more active SSL = short bias.
Best Practices
Wait for liquidity sweeps before entering - don't front-run the sweep
Equal highs/lows are highest probability sweep targets
Volume confirmation is critical - sweeps without volume may fail
Cascades often mark exhaustion - look for reversals after cascades
Avoid trading in liquidity voids - wait for price to reach liquidity
Use higher timeframe liquidity levels for stronger significance
Combine with order blocks and FVGs for highest probability setups
Be patient - institutions may sweep multiple levels before reversing
Input Parameters
Liquidity Detection:
Pivot Length: Swing detection period (default: 10)
Equal Level Threshold: Percentage for equal level detection (default: 0.3%)
Max Buy Side Levels: Maximum BSL to display (default: 5)
Max Sell Side Levels: Maximum SSL to display (default: 5)
Volume Profiling:
Volume Surge Multiplier: Threshold for volume surges (default: 2.25x)
Volume Lookback: Period for average volume (default: 45)
Show Volume Profile: Toggle volume display (default: enabled)
Mitigation Rules:
Mitigation Method: Wick or Close (default: Wick)
Show Mitigated Levels: Toggle swept level display (default: disabled)
Cascade Detection: Enable cascade tracking (default: enabled)
Visual Configuration:
Buy/Sell Liquidity Colors: Customizable BSL and SSL colors
Equal Level Color: Color for EQH/EQL (default: gold)
Cascade Color: Color for cascade zones (default: magenta)
Box Width: Width of liquidity boxes (default: -5.0)
Extension Length: How far to extend levels (default: 20)
Show Projections: Toggle projection lines (default: enabled)
Show Sweep Signals: Toggle sweep labels (default: enabled)
Originality Statement
This indicator is original in its comprehensive liquidity analysis approach. While liquidity concepts are established trading principles, this indicator is justified because:
It combines liquidity detection with equal level identification and volume profiling
The cascade detection system identifies forced liquidation events
Liquidity void detection reveals areas where price may move quickly
Volume imbalance tracking confirms institutional participation
Liquidity strength levels identify the most significant zones
The comprehensive dashboard presents all liquidity metrics simultaneously
Integration of multiple liquidity concepts creates a complete liquidity analysis system
Disclaimer
This indicator is provided for educational and informational purposes only. It is not financial advice. Trading involves substantial risk of loss. Liquidity analysis does not guarantee profitable trades. Liquidity sweeps do not guarantee reversals. Always use proper risk management and never risk more than you can afford to lose.
-Made with passion by officialjackofalltrades Indicator

Velocity Spectrum Analyzer [JOAT]Velocity Spectrum Analyzer
Introduction
The Velocity Spectrum Analyzer is an advanced open-source momentum wave system that combines Munich Wave methodology with ALMA enhancement and multi-basis momentum tracking. This indicator analyzes momentum across five distinct velocity layers, creating a spectrum of momentum waves that reveal trend strength, regime shifts, and momentum alignment across multiple timeframes.
Unlike single-line momentum indicators, the Velocity Spectrum Analyzer provides multi-dimensional momentum analysis through layered EMA calculations, ALMA enhancement, regime classification, and spread analysis. The indicator is designed for traders who understand that momentum flows in waves and that multi-layer alignment signals institutional conviction.
Why This Indicator Exists
This indicator addresses the need for multi-dimensional momentum analysis. By combining five momentum layers with ALMA enhancement and regime detection, it reveals:
Five Velocity Layers: Fast (9), Medium (21), Slow (55), Very Slow (100), and Ultra Slow (200) EMAs create a momentum spectrum
ALMA Enhancement: Arnaud Legoux Moving Average provides adaptive smoothing with reduced lag
Basis Calculations: Averages between EMA layers create intermediate momentum levels
Regime Classification: Extreme Bull/Bear detection using Bollinger-style bands
Spread Analysis: Distance between fast and slow layers measures momentum strength
Wave State Detection: All layers bullish or bearish signals strong directional momentum
Background Coloring: Visual regime indication shows extreme conditions
Core Components Explained
1. Core Momentum Calculation
The indicator starts with basic momentum (current close minus close N bars ago), then applies ALMA for adaptive smoothing:
The ALMA offset (default 0.85) and sigma (default 6) parameters control the balance between responsiveness and smoothness. Higher offset values shift the average toward recent prices, while higher sigma values increase smoothness.
2. Five EMA Layers
Five EMAs are calculated on the momentum values:
Fast EMA (9): Captures short-term momentum shifts
Medium EMA (21): Tracks intermediate momentum trends
Slow EMA (55): Identifies primary momentum direction
Very Slow EMA (100): Reveals long-term momentum bias
Ultra Slow EMA (200): Shows institutional momentum positioning
Each layer responds at different speeds, creating a spectrum of momentum perspectives.
3. Basis Calculations
Five basis levels are calculated as averages between EMA layers:
Basis 1: Average of Fast and Medium EMAs
Basis 2: Average of Medium and Slow EMAs
Basis 3: Average of Slow and Very Slow EMAs
Basis 4: Average of Very Slow and Ultra Slow EMAs
Basis 5: Average of Ultra Slow and Fast EMAs (wraps around)
These basis levels create intermediate momentum zones that smooth transitions between layers.
4. Trend Classification Functions
Two functions classify momentum direction:
Growing: Momentum > basis (bullish momentum)
Falling: Momentum <= basis AND momentum <= ALMA (bearish momentum)
Each basis is classified independently, creating five separate momentum assessments.
5. Regime Detection with Bollinger-Style Bands
The indicator calculates bands around the average of all five basis levels:
Origin: SMA of basis average (default 25 periods)
Deviation: Standard deviation multiplied by factor (default 6.0)
Top Band: Origin + deviation (extreme bullish threshold)
Bottom Band: Origin - deviation (extreme bearish threshold)
When basis 1 and ALMA both exceed the top band with rising momentum, the indicator signals extreme bullish conditions. When both fall below the bottom band with falling momentum, it signals extreme bearish conditions.
6. Mean Range Calculation
A long-term mean range (default 415 bars) tracks the highest and lowest basis average values. The center of this range serves as a reference point for ALMA positioning. When ALMA is above the center mean with all layers bullish, strong upward momentum is confirmed.
7. Wave State Analysis
The indicator tracks when all five basis levels are simultaneously bullish or bearish:
All Bullish: All five basis levels show growing momentum - strong uptrend
All Bearish: All five basis levels show falling momentum - strong downtrend
Mixed: Some layers bullish, some bearish - transitional or choppy conditions
Wave state alignment indicates institutional conviction across all momentum timeframes.
8. Spread Calculation
The spread between Basis 1 (fastest) and Basis 5 (slowest) measures momentum divergence:
Positive Spread (> 10): Fast momentum exceeds slow momentum - bullish acceleration
Negative Spread (< -10): Fast momentum below slow momentum - bearish acceleration
Extreme Spread (> 20 or < -20): Very strong momentum divergence - potential exhaustion
Large spreads indicate strong directional momentum, while narrowing spreads warn of momentum loss.
Visual Elements
Five Velocity Layer Lines: Thick colored lines showing each basis level with dynamic coloring (cyan = bullish, yellow = bearish, white = neutral)
ALMA Enhanced Line: Separate line showing ALMA-adjusted momentum with tri-color scheme
Wave State Line: Zero line colored based on overall wave state
Background Regime: Red background for extreme bull, green background for extreme bear
Information Dashboard: Displays wave state, regime, spread, ALMA position, momentum value, layer alignment, and signal status
Signal Generation
The indicator generates four types of signals:
Lean Short: Bearish crossover with falling Basis 1 and 2, spread <= -10
Maybe Buy: Bearish crossover with falling Basis 1 and 2, extreme bear regime, spread <= -20 (oversold)
Lean Long: Bullish crossover with growing Basis 1 and 2, spread >= 10
Maybe Sell: Bullish crossover with growing Basis 1 and 2, extreme bull regime, spread >= 20 (overbought)
Additional signals:
All Aqua: All layers bullish for 4+ consecutive bars - strong uptrend confirmation
All Yellow: All layers bearish for 4+ consecutive bars - strong downtrend confirmation
How to Use This Indicator
Step 1: Check Wave State
Monitor the dashboard for wave state (All Bullish, All Bearish, or Mixed). Trade in the direction of wave state alignment.
Step 2: Analyze Regime
Watch for extreme bull/bear regimes (red/green backgrounds). These often precede reversals or strong continuation moves.
Step 3: Monitor Spread
Large spreads (> 20 or < -20) indicate strong momentum but potential exhaustion. Narrowing spreads warn of momentum loss.
Step 4: Check ALMA Position
ALMA above center mean with bullish layers confirms uptrend. ALMA below center mean with bearish layers confirms downtrend.
Step 5: Count Layer Alignment
The dashboard shows how many layers are bullish (X/5). 5/5 bullish = strongest uptrend, 0/5 bullish = strongest downtrend.
Step 6: Wait for Signal Confirmation
Lean Long/Short signals work best when wave state aligns. Maybe Buy/Sell signals at extremes offer reversal opportunities.
Best Practices
Trade with wave state alignment, not against it
Use extreme regimes as reversal warnings, not continuation signals
Monitor spread for momentum strength - large spreads indicate strong trends
Wait for all layers to align (5/5) before taking aggressive positions
Use Maybe Buy/Sell signals only at extreme regimes with high spread
Combine with price action - momentum shows intent, price shows result
Be cautious when layers are mixed (2/5 or 3/5) - indicates choppy conditions
Watch for spread narrowing as early warning of trend exhaustion
Input Parameters
Momentum Engine:
Source: Price input (default: close)
Momentum Length: Period for momentum calculation (default: 21)
ALMA Offset: Offset parameter for ALMA (default: 0.85)
ALMA Sigma: Sigma parameter for ALMA (default: 6)
Momentum Layers:
Fast EMA: Short-term momentum (default: 9)
Medium EMA: Intermediate momentum (default: 21)
Slow EMA: Primary momentum (default: 55)
Very Slow EMA: Long-term momentum (default: 100)
Ultra Slow EMA: Institutional momentum (default: 200)
Regime Classification:
Mean Lookback: Period for mean range (default: 415)
StdDev Length: Period for standard deviation (default: 25)
StdDev Multiplier: Band width multiplier (default: 6.0)
Background Offset: Shift background display (default: 0)
Visual Configuration:
Bullish Color: Color for bullish momentum (default: cyan)
Bearish Color: Color for bearish momentum (default: yellow)
Neutral Color: Color for neutral momentum (default: white)
Enable Alerts: Toggle alert conditions (default: enabled)
Originality Statement
This indicator is original in its multi-layer momentum approach. While individual components (EMAs, ALMA, momentum) are established concepts, this indicator is justified because:
It combines five distinct momentum layers into a unified spectrum analysis
The basis calculation system creates intermediate momentum zones between layers
ALMA enhancement provides adaptive smoothing with reduced lag
Regime detection using Bollinger-style bands on basis average identifies extremes
Wave state analysis tracks alignment across all five layers simultaneously
Spread calculation measures momentum divergence between fast and slow layers
The comprehensive dashboard presents all momentum dimensions simultaneously
Disclaimer
This indicator is provided for educational and informational purposes only. It is not financial advice. Trading involves substantial risk of loss. Momentum analysis does not guarantee profitable trades. Past momentum patterns do not guarantee future results. Always use proper risk management and never risk more than you can afford to lose.
-Made with passion by officialjackofalltrades Indicator

Nexus Structure Detector [JOAT]Nexus Structure Detector
Introduction
The Nexus Structure Detector is an advanced open-source Smart Money Concepts (SMC) indicator that identifies institutional order flow through Order Blocks, Fair Value Gaps, Liquidity Levels, and Market Structure analysis. This indicator combines multiple SMC methodologies into a unified system that reveals where institutions are positioning their orders and how they manipulate price to fill those orders.
Unlike basic support/resistance indicators, the Nexus Structure Detector provides institutional-grade structure analysis through order block detection, FVG identification, liquidity sweep tracking, and premium/discount zone mapping. The indicator is designed for traders who understand that institutions move markets through systematic order placement and liquidity manipulation.
Why This Indicator Exists
This indicator addresses the need for systematic SMC analysis on PulseWire. By combining order blocks, fair value gaps, liquidity levels, and market structure into one tool, it reveals:
Order Blocks: The last candle before a strong move where institutions placed orders
Fair Value Gaps: Imbalances in price where institutions will likely return to fill orders
Liquidity Levels: Pivot highs/lows where retail stops cluster and institutions hunt liquidity
Market Structure: Break of Structure (BOS) and Change of Character (CHOCH) detection
Premium/Discount Zones: Price positioning relative to range equilibrium
Mitigation Tracking: Monitors when order blocks and FVGs are filled
Core Components Explained
1. Order Block Detection
Order blocks are identified by finding the candle with the most extreme price before a strong directional move. The indicator uses pivot detection to identify swing points, then traces back to find the order block candle:
Bullish Order Block: Forms when price breaks above a pivot low - the candle with the lowest low before the breakout becomes the bullish OB
Bearish Order Block: Forms when price breaks below a pivot high - the candle with the highest high before the breakdown becomes the bearish OB
Order blocks are drawn as boxes extending into the future. When price returns to an order block, institutions are likely to defend that zone. Mitigation occurs when price closes through the order block (wick or close mitigation options available).
2. Fair Value Gap (FVG) Detection
FVGs are three-candle patterns where there's a gap between candle 1's high/low and candle 3's low/high:
Bullish FVG: Current low > high from 2 bars ago (gap up)
Bearish FVG: Current high < low from 2 bars ago (gap down)
FVGs represent imbalances where price moved too quickly, leaving unfilled orders. Institutions often return to these zones to fill orders. The indicator tracks FVG mitigation using touch, wick, close, or average methods.
3. Liquidity Level Tracking
Liquidity levels are identified at pivot highs (Buy Side Liquidity - BSL) and pivot lows (Sell Side Liquidity - SSL). These represent areas where retail traders place stop losses:
Buy Side Liquidity (BSL): Above pivot highs where long stop losses cluster
Sell Side Liquidity (SSL): Below pivot lows where short stop losses cluster
Institutions often push price through these levels to trigger stops and fill their orders. The indicator tracks when liquidity is swept (price moves through the level) and displays swept levels with dotted lines.
4. Market Structure Analysis
The indicator tracks market structure by monitoring higher highs/lows and lower highs/lows:
Bullish Structure: Price making higher highs and higher lows
Bearish Structure: Price making lower highs and lower lows
Break of Structure (BOS): When structure continues in the same direction
Change of Character (CHOCH): When structure shifts direction
Market structure helps identify the current trend and potential reversal points. The indicator combines structure with order blocks and liquidity to identify high-probability setups.
5. Premium/Discount Zones
The indicator calculates the range between the highest high and lowest low over a lookback period (default 50 bars), then divides it into zones:
Premium Zone: Above 50% of the range (75-100%) - ideal for shorts
Equilibrium: At 50% of the range - neutral zone
Discount Zone: Below 50% of the range (0-25%) - ideal for longs
Institutions typically buy in discount zones and sell in premium zones. The indicator displays these zones with dotted lines and tracks current price position.
Visual Elements
Order Block Boxes: Solid boxes showing bullish (green) and bearish (red) order blocks with volume labels
Fair Value Gap Boxes: Dashed boxes showing bullish (cyan) and bearish (orange) FVGs
Liquidity Lines: Horizontal lines at pivot highs (BSL - green) and pivot lows (SSL - red)
Premium/Discount Lines: Dotted lines showing range extremes, 75%, equilibrium, and 25% levels
Mitigation Indicators: Faded boxes and dotted lines show mitigated zones
Information Dashboard: Displays market structure, active OBs/FVGs, liquidity levels, price position, and trading bias
How to Use This Indicator
Step 1: Identify Market Structure
Check the dashboard for current market structure (Bullish/Bearish/Neutral). Trade in the direction of structure for highest probability.
Step 2: Locate Order Blocks
Look for unmitigated order blocks in the direction of structure. Bullish OBs in discount zones and bearish OBs in premium zones offer best setups.
Step 3: Monitor Fair Value Gaps
FVGs often get filled before price continues. Use FVGs as entry zones when they align with order blocks and structure.
Step 4: Watch for Liquidity Sweeps
When price sweeps liquidity (BSL or SSL), it often reverses. Look for liquidity sweeps near order blocks for high-probability reversals.
Step 5: Check Price Position
Use premium/discount zones to determine if price is at an extreme. Buy in discount, sell in premium, avoid equilibrium.
Step 6: Combine Elements for Confluence
Best setups occur when multiple elements align: structure + order block + FVG + liquidity sweep + premium/discount zone.
Best Practices
Trade with market structure, not against it
Wait for price to return to order blocks before entering
Use liquidity sweeps as confirmation, not standalone signals
Combine order blocks with FVGs for highest probability entries
Avoid trading in equilibrium zones - wait for premium or discount
Monitor mitigation - once an OB or FVG is mitigated, it's no longer valid
Use higher timeframe structure to confirm lower timeframe setups
Be patient - wait for all elements to align before entering
Input Parameters
Structure Detection:
Swing Length: Pivot detection period (default: 10)
Max Order Blocks: Maximum OBs to display (default: 3)
Max Fair Value Gaps: Maximum FVGs to display (default: 3)
Max Liquidity Levels: Maximum liquidity lines (default: 3)
Mitigation Rules:
OB Mitigation: Wick or Close (default: Close)
FVG Mitigation: Touch, Wick, Close, or Average (default: Close)
Show Mitigated Zones: Toggle mitigated zone display (default: disabled)
Premium/Discount Zones:
Show PD Zones: Toggle zone display (default: enabled)
Lookback Period: Range calculation period (default: 50)
Visual Configuration:
Bullish/Bearish OB Colors: Customizable order block colors
Bullish/Bearish FVG Colors: Customizable FVG colors
Buy/Sell Liquidity Colors: Customizable liquidity line colors
Show Labels: Toggle zone labels (default: enabled)
Show Volume: Toggle volume display on OBs (default: enabled)
Show Dashboard: Toggle information table (default: enabled)
Originality Statement
This indicator is original in its comprehensive SMC integration. While individual concepts (order blocks, FVGs, liquidity) are established SMC principles, this indicator is justified because:
It combines four distinct SMC methodologies into a unified detection system
The automatic order block detection uses swing analysis to identify the exact candle
FVG tracking with multiple mitigation methods provides flexibility
Liquidity sweep detection with volume confirmation adds institutional context
Premium/discount zone integration provides price positioning context
Market structure tracking with BOS/CHOCH detection guides directional bias
The comprehensive dashboard presents all SMC elements simultaneously
Disclaimer
This indicator is provided for educational and informational purposes only. It is not financial advice. Trading involves substantial risk of loss. Smart Money Concepts are analytical tools, not guarantees of future price movement. Order blocks, FVGs, and liquidity levels do not guarantee profitable trades. Always use proper risk management and never risk more than you can afford to lose.
-Made with passion by officialjackofalltrades Indicator

Quantum Flux Oscillator [JOAT]Quantum Flux Oscillator
Introduction
The Quantum Flux Oscillator is an advanced open-source momentum detection system that synthesizes six distinct analytical methodologies into a unified institutional-grade oscillator. This indicator combines Volume Flux Indicator (VFI), Laguerre RSI, Fisher Transform, True Strength Index (TSI), Money Flow Index (MFI), and On-Balance Volume (OBV) with Accumulation/Distribution analysis to create a comprehensive momentum engine that reveals institutional positioning and market regime shifts.
Unlike traditional single-dimension oscillators, the Quantum Flux Oscillator provides multi-layered momentum intelligence through weighted composite calculations, regime classification, velocity tracking, and divergence detection. The indicator is designed for traders who understand that momentum precedes price and that institutional footprints can be detected through systematic multi-indicator confluence.
Why This Indicator Exists
This indicator addresses a critical gap in momentum analysis: the ability to detect institutional momentum shifts before they become obvious to retail traders. By combining multiple momentum methodologies with volume-weighted analysis, this indicator reveals:
Volume Flux Intelligence: Detects unusual volume-price relationships that signal institutional activity
Laguerre RSI: Zero-centered adaptive RSI that responds faster to price changes while filtering noise
Fisher Transform: Converts momentum into a Gaussian normal distribution for clearer extreme identification
True Strength Index: Double-smoothed momentum that separates genuine trends from noise
Money Flow Analysis: Tracks buying and selling pressure through volume-weighted price movements
Volume Confirmation: Integrates OBV and A/D Line to confirm momentum with volume flow
Regime Classification: Categorizes market conditions as Extreme Bull, Bullish, Neutral, Bearish, or Extreme Bear
Multi-Timeframe Alignment: Confirms momentum across higher timeframes for conviction measurement
Each component provides a different perspective on momentum. VFI shows volume-driven momentum, Laguerre RSI shows adaptive momentum, Fisher Transform shows statistical extremes, TSI shows smoothed directional momentum, MFI shows money flow momentum, and OBV/A/D show cumulative volume momentum. Together, they create a comprehensive view of institutional momentum positioning.
Core Components Explained
1. Volume Flux Indicator (VFI)
VFI measures the relationship between price movement and volume to identify institutional accumulation or distribution. The calculation uses logarithmic price changes and volume cutoffs to filter significant moves:
The indicator classifies volume-price relationships by comparing actual volume against average volume with a cutoff threshold. When price moves significantly with volume above the cutoff, it signals institutional participation. VFI is scaled and smoothed to create a momentum baseline that responds to volume-confirmed price movements.
2. Laguerre RSI (Zero-Centered)
Laguerre RSI applies a four-stage Laguerre filter to price data, creating an adaptive RSI that responds faster to recent price changes while maintaining smoothness. The zero-centered output ranges from -50 to +50, making it easier to identify bullish and bearish momentum:
The Laguerre filter uses a gamma parameter (default 0.4) to control responsiveness. Lower gamma values create faster response, while higher values create smoother output. The zero-centered format allows direct comparison with other momentum components.
3. Fisher Transform
The Fisher Transform converts the composite momentum into a Gaussian normal distribution, making extreme values more identifiable. This transformation compresses the middle range and expands the tails, creating clearer overbought and oversold signals:
The Fisher Transform output oscillates around zero with extreme values typically beyond +2 and -2. These extremes often precede reversals as momentum reaches unsustainable levels.
4. True Strength Index (TSI)
TSI applies double exponential smoothing to price momentum, creating a smooth oscillator that filters out short-term noise while preserving trend direction. The calculation uses two EMA periods (default 25 and 13) to separate signal from noise:
TSI values above zero indicate bullish momentum, while values below zero indicate bearish momentum. The double smoothing reduces whipsaws while maintaining responsiveness to genuine momentum shifts.
5. Money Flow Index (MFI)
MFI is a volume-weighted RSI that measures buying and selling pressure. It calculates the ratio of positive money flow (volume on up days) to negative money flow (volume on down days):
MFI values above 80 indicate overbought conditions with high volume, while values below 20 indicate oversold conditions with high volume. The indicator normalizes MFI to a zero-centered scale for integration with other components.
6. On-Balance Volume (OBV) and Accumulation/Distribution (A/D)
OBV and A/D track cumulative volume flow to confirm momentum direction. OBV adds volume on up days and subtracts on down days, while A/D weights volume by the close's position within the day's range:
Both indicators are normalized to a 0-100 scale and then zero-centered for composite integration. Rising OBV/A/D with rising momentum confirms institutional accumulation, while falling OBV/A/D with rising price warns of distribution.
Quantum Flux Core Calculation
The Quantum Flux Core combines all components using weighted averaging:
Quantum Flux = (VFI × 0.20) + (Laguerre RSI × 0.20) + (Fisher × 0.15) + (TSI × 0.15) + (MFI × 0.10) + (OBV × 0.10) + (A/D × 0.05) + (CMF × 0.05)
This weighted approach emphasizes volume-driven components (VFI, Laguerre) while incorporating smoothed momentum (Fisher, TSI) and volume confirmation (MFI, OBV, A/D, CMF). The result is smoothed with an EMA to create the final Quantum Flux line.
Regime Classification System
The indicator classifies market conditions into five regimes based on Quantum Flux levels:
Extreme Bull (QF > 35): Institutional buying pressure at extreme levels, potential exhaustion
Bullish (QF > 25): Strong bullish momentum with institutional participation
Neutral (-25 < QF < 25): Balanced conditions, no clear institutional bias
Bearish (QF < -25): Strong bearish momentum with institutional selling
Extreme Bear (QF < -35): Institutional selling pressure at extreme levels, potential capitulation
Regime shifts often precede significant price moves as institutional positioning changes. The indicator tracks regime changes and generates signals when momentum confirms directional bias.
Multi-Timeframe Alignment
The indicator requests Quantum Flux data from three customizable higher timeframes (default: 5m, 15m, 60m) and calculates alignment:
Strong Aligned (3/3): All timeframes show bullish/bearish momentum - high conviction
Aligned (2/3): Majority timeframes confirm - moderate conviction
Weak (1/3): Only one timeframe confirms - low conviction
No Alignment (0/3): No timeframe confirmation - conflicting signals
Strong alignment across multiple timeframes indicates institutional participation at scale, as large orders are often split across timeframes to minimize market impact.
Velocity and Acceleration Tracking
The indicator calculates momentum velocity (rate of change) and acceleration (change in velocity):
Velocity: Current Quantum Flux minus previous bar's value
Acceleration: Current velocity minus previous velocity (second derivative)
Accelerating momentum often precedes breakouts as institutional orders hit the market. Decelerating momentum warns of potential reversals or consolidation.
Visual Elements
Quantum Flux Line: Main oscillator with regime-based color coding (cyan = extreme bull, aqua = bullish, yellow = neutral, red = bearish, magenta = extreme bear)
Threshold Lines: Horizontal lines at +35 (extreme overbought), +25 (overbought), 0 (zero line), -25 (oversold), -35 (extreme oversold)
Velocity Histogram: Shows momentum velocity with color-coded bars (green = rising, red = falling)
Acceleration Columns: Displays momentum acceleration to identify momentum shifts early
Regime Strength Bars: Visual regime indicator showing current market condition strength
Gradient Glow Effect: Multiple layered fills create a glowing effect that emphasizes momentum intensity
Information Dashboard: Comprehensive table displaying all metrics in real-time with color-coded cells
The dashboard displays 10 key metrics: Regime, Flux Value, HTF Confirmation, MFI, CMF, Velocity, Divergence, Volume, and Signal status.
Signal Generation
The indicator generates two types of signals:
Primary Reversal Signals:
Bullish Reversal: Quantum Flux in extreme oversold (< -35), rising momentum, positive velocity acceleration, and HTF confirmation
Bearish Reversal: Quantum Flux in extreme overbought (> 35), falling momentum, negative velocity acceleration, and HTF confirmation
Momentum Crossover Signals:
Bullish Momentum: Quantum Flux crosses above -25 (oversold threshold) with positive velocity and volume confirmation
Bearish Momentum: Quantum Flux crosses below +25 (overbought threshold) with negative velocity and volume confirmation
Signals include anti-overlap logic to prevent signal clustering and ensure clean chart presentation.
Divergence Detection
The indicator detects both regular and hidden divergences between price and Quantum Flux:
Regular Bullish Divergence: Price makes lower low, Quantum Flux makes higher low (potential reversal up)
Regular Bearish Divergence: Price makes higher high, Quantum Flux makes lower high (potential reversal down)
Hidden Bullish Divergence: Price makes higher low, Quantum Flux makes lower low (trend continuation up)
Hidden Bearish Divergence: Price makes lower high, Quantum Flux makes higher high (trend continuation down)
Divergences are drawn with clean lines (solid for regular, dashed for hidden) without text clutter.
How to Use This Indicator
Step 1: Monitor Regime Classification
Watch for regime shifts between Extreme Bear, Bearish, Neutral, Bullish, and Extreme Bull. Regime changes often precede significant price moves.
Step 2: Check Multi-Timeframe Alignment
Strong alignment (3/3) across timeframes confirms institutional conviction. Weak or no alignment suggests retail-driven moves that may lack follow-through.
Step 3: Analyze Velocity and Acceleration
Accelerating momentum (positive acceleration) often precedes breakouts. Decelerating momentum (negative acceleration) warns of potential reversals.
Step 4: Look for Divergences
Regular divergences at extreme levels (QF > 35 or < -35) often signal reversals. Hidden divergences confirm trend continuation.
Step 5: Confirm with Volume Metrics
Check MFI, CMF, OBV, and A/D for confirmation. Rising volume metrics with rising Quantum Flux confirms institutional accumulation.
Step 6: Wait for Signal Confirmation
Primary reversal signals at extreme levels with HTF confirmation provide highest probability setups. Momentum crossover signals work best in trending markets.
Best Practices
Use on liquid instruments (major forex pairs, large-cap stocks, major crypto) for most reliable signals
Combine with price action analysis - momentum shows intent, price shows result
Pay attention to extreme levels (QF > 35 or < -35) as these often precede reversals
MTF alignment is most reliable in trending markets, less reliable in choppy conditions
Extreme momentum can persist longer than expected during strong trends - use stops
Look for momentum divergences at key support/resistance levels for highest probability setups
Monitor velocity and acceleration for early warning signs of momentum shifts
Use the dashboard to quickly assess overall market condition and signal status
Indicator Limitations
Momentum analysis works best on liquid instruments with consistent volume patterns
Low-volume instruments or off-market hours can produce unreliable readings
MTF alignment requires sufficient data on all timeframes - may not work on newly listed instruments
Momentum precedes price but doesn't guarantee direction - high momentum can occur on both breakouts and fakeouts
Extreme momentum levels can persist longer than expected during major news events or market dislocations
The indicator shows what is happening, not why - fundamental catalysts can override technical momentum patterns
Divergences are more reliable at extreme levels than in neutral zones
Multiple components mean the indicator can be slower to respond than single-component oscillators
Input Parameters
Core Engine:
Primary Length: Period for momentum calculations (default: 14)
Smoothing Period: EMA smoothing for final output (default: 7)
Sensitivity Factor: Multiplier for Fisher Transform input (default: 1.5)
Volume Flux Engine:
VFI Coefficient: Cutoff multiplier for significant moves (default: 0.2)
Volume Cutoff: Maximum volume multiplier (default: 2.5)
Scale Multiplier: VFI output scaling (default: 4.0)
Laguerre Transform:
Gamma: Responsiveness parameter (default: 0.4, lower = faster)
Threshold Zones:
Extreme Overbought: Upper extreme threshold (default: 35)
Overbought: Upper threshold (default: 25)
Oversold: Lower threshold (default: -25)
Extreme Oversold: Lower extreme threshold (default: -35)
Money Flow & Volume:
MFI Length: Period for Money Flow Index (default: 14)
OBV Smoothing: Smoothing period for OBV (default: 14)
A/D Smoothing: Smoothing period for A/D Line (default: 14)
Multi-Timeframe Analysis:
Enable Higher Timeframe: Toggle MTF calculations (default: enabled)
HTF Timeframe 1/2/3: Customizable timeframes (default: 5m, 15m, 60m)
Visual Configuration:
Color Theme: Choose from Gradient Glow, Professional Dark, Neon Spectrum, or Institutional Grey
Bullish/Bearish Spectrum: Customizable colors for momentum direction
Glow Layers: Number of gradient layers for glow effect (default: 20)
Show Divergence: Toggle divergence detection (default: enabled)
Show Volume Profile: Toggle volume profile histogram (default: enabled)
Technical Implementation
Built with Pine Script v6 using:
Custom VFI calculations with logarithmic price changes and volume cutoffs
Four-stage Laguerre filter for adaptive RSI
Fisher Transform for Gaussian distribution conversion
Double-smoothed TSI for noise filtering
Volume-weighted MFI calculations
Normalized OBV and A/D Line integration
Multi-timeframe security requests with proper lookahead settings
Velocity and acceleration calculations for momentum derivatives
Real-time regime classification system
Dynamic dashboard with 10 metrics and color-coded cells
Gradient glow effect with multiple layered fills
Divergence detection with pivot analysis
The code is fully open-source and can be modified to suit individual trading styles and preferences.
Originality Statement
This indicator is original in its comprehensive integration approach. While individual components (VFI, Laguerre RSI, Fisher Transform, TSI, MFI, OBV, A/D) are established concepts, this indicator is justified because:
It synthesizes six distinct momentum methodologies into a unified weighted composite system
The regime classification provides institutional momentum measurement not available in standard oscillators
Multi-timeframe alignment detection measures institutional conviction across timeframes
Velocity and acceleration calculations provide early warning of momentum shifts
The gradient glow visualization creates intuitive momentum intensity display
Integration of volume-weighted components (VFI, MFI) with smoothed momentum (Fisher, TSI) and cumulative volume (OBV, A/D) creates layered confirmation
The comprehensive dashboard presents 10 metrics simultaneously for holistic momentum analysis
Each component contributes unique information: VFI shows volume-driven momentum, Laguerre RSI shows adaptive momentum, Fisher Transform shows statistical extremes, TSI shows smoothed momentum, MFI shows money flow, OBV shows cumulative volume, and A/D shows distribution. The indicator's value lies in presenting these complementary perspectives simultaneously with a unified regime classification system.
Disclaimer
This indicator is provided for educational and informational purposes only. It is not financial advice or a recommendation to buy or sell any financial instrument. Trading involves substantial risk of loss and is not suitable for all investors.
Momentum analysis is a tool for understanding market dynamics, not a crystal ball for predicting future price movement. High momentum does not guarantee profitable trades. Past momentum patterns do not guarantee future momentum patterns. Market conditions change, and strategies that worked historically may not work in the future.
The metrics displayed are mathematical calculations based on current market data, not predictions of future price movement. Extreme momentum levels, regime classifications, and signal generation do not guarantee profitable trades. Users must conduct their own analysis and risk assessment before making trading decisions.
Always use proper risk management, including stop losses and position sizing appropriate for your account size and risk tolerance. Never risk more than you can afford to lose. Consider consulting with a qualified financial advisor before making investment decisions.
The author is not responsible for any losses incurred from using this indicator. Users assume full responsibility for all trading decisions made using this tool.
-Made with passion by officialjackofalltrades Indicator

Sovereign Meridian [JOAT]Sovereign Meridian
Introduction
The Sovereign Meridian is a proprietary, closed-source charting suite designed to give traders a unified view of market structure, regime context, reaction zones, liquidity mapping, order flow dynamics, and institutional signal detection — all within a single overlay indicator. Rather than requiring traders to load multiple separate tools and mentally piece together their outputs, this indicator runs every analytical dimension through a shared engine so that each module informs the others. The result is a cohesive, context-aware charting environment where structure, volume, momentum, and volatility work together to produce a clear, actionable picture of what the market is doing right now and where it is likely to go next.
This indicator is built in Pine Script v6 and is published as invite-only because the proprietary scoring algorithms, signal prioritization logic, and the way each analytical module feeds into the others represent original work that goes significantly beyond standard implementations of these concepts. The source is protected to preserve the integrity of the detection logic and the specific calibration of thresholds, weights, and interaction rules that make this tool unique.
What Makes This Indicator Worth Protecting
The Sovereign Meridian is not simply a collection of standard concepts placed on the same chart. While the individual analytical principles it draws from — swing-based structure, fair value gaps, order blocks, VWAP analysis, volume delta, Wyckoff theory — are well-established in institutional trading education, the value of this indicator lies in how these concepts are unified, scored, and prioritized through a proprietary engine:
Unified Structure Engine: Every module — from regime detection to FVG creation to signal generation — operates through a single shared structure engine. This means that a Break of Structure event does not exist in isolation; it is immediately contextualized by the current regime state, the active reaction zones, the volume delta direction, and the volatility environment. This cross-module awareness produces more meaningful signals than running separate tools independently.
Proprietary Structure Score: A composite scoring algorithm evaluates the current market state across eight weighted dimensions — structural trend direction, swing pattern quality, active imbalance zone count, order block density, volume conviction, moving average alignment, regime classification, and delta flow direction. The specific weights, thresholds, and interaction rules that produce this score are original and calibrated through extensive testing.
Adaptive Sensitivity System: A single sensitivity control adjusts detection thresholds across every module simultaneously, ensuring that the entire indicator tightens or loosens its criteria in a coordinated way. This is not a simple multiplier — the sensitivity adjustment is calibrated differently for each module based on how that module's detection logic responds to threshold changes.
Priority-Based Signal Architecture: The institutional signal system uses a six-tier priority hierarchy with cooldown management to ensure that only the most significant event is displayed at any given time. Higher-priority signals (such as liquidity grabs and Wyckoff events) suppress lower-priority ones (such as delta surges and engulfing patterns) within a configurable cooldown window. The specific priority ordering, cooldown interaction rules, and signal qualification criteria are proprietary.
Multi-Factor Candle Coloring: Candles are colored through a cascading priority system that evaluates displacement status, VWAP band position, and structural trend direction in a specific order. This produces candle colors that immediately communicate the most important context about each bar without requiring the trader to check multiple indicators.
The Regime Engine
At the foundation of the Sovereign Meridian is a regime classification system that determines the current market state. The regime engine evaluates three independent analytical dimensions:
Trend Alignment: The indicator monitors the relationship between short-term, medium-term, and long-term moving averages to determine whether the market is in a directionally aligned state. Full alignment in one direction indicates a strong trending environment. Mixed alignment indicates transitional or range-bound conditions.
Institutional Flow Direction: VWAP (Volume Weighted Average Price) slope analysis measures the direction and intensity of institutional order flow over a lookback period. The slope is normalized to make it comparable across instruments with different price scales and volatility levels. A positive normalized slope indicates net institutional buying pressure; negative indicates selling pressure; flat indicates balanced flow.
Volatility State: Bollinger Band width percentile ranking classifies the current volatility environment. When volatility compresses into the lowest percentile, a Squeeze state is detected — often a precursor to an explosive directional move. When volatility expands into the highest percentile, an Expansion state is detected — indicating that a significant move is already underway.
These three dimensions combine to classify the market into one of five regimes: Trend Up, Trend Down, Range, Squeeze, or Expansion. The regime state directly influences how every other module behaves — from how reaction zones are colored to which signals are generated to how candles are tinted.
The Structure Engine
The structure engine tracks the market's swing-based directional bias using pivot-based swing high and swing low detection. It maintains a history of the last two swings on each side, enabling pattern recognition:
Swing Pattern Recognition: The engine identifies higher highs with higher lows (bullish structure), lower highs with lower lows (bearish structure), and transitional patterns where the swing sequence is mixed.
Break of Structure (BOS): When price closes beyond a previous swing level in the direction of the existing structural trend, a BOS is recorded. This confirms that the current trend is continuing and that the market is making new structural progress.
Change of Character (CHoCH): When price closes beyond a previous swing level against the existing structural trend, a CHoCH is recorded. This is a potential reversal signal — the market's character is shifting from one directional bias to the other. CHoCH events are labeled on the chart with reference lines extending forward from the break level.
Displacement Detection: The engine identifies displacement candles — bars with exceptionally large bodies relative to their range and to the recent average body size. These candles indicate aggressive institutional order flow and often coincide with the creation of new reaction zones. The sensitivity control adjusts the detection thresholds for displacement candles in coordination with all other modules.
Reaction Zones: Fair Value Gaps and Order Blocks
The Sovereign Meridian identifies and tracks two types of institutional reaction zones:
Fair Value Gaps (FVG) are three-candle price imbalances where the market moved so aggressively that a gap was left in the price ladder. These gaps represent areas where one side of the market was overwhelmed, and price often returns to fill them. The indicator:
Detects bullish and bearish FVGs using the classic three-candle pattern
Filters out insignificant micro-gaps using an ATR-based minimum size threshold (adjusted by the sensitivity control)
Draws each FVG as a dotted-border box with directional coloring — teal for bullish, coral for bearish
Tracks fill status in real-time: when price returns to close the gap, the box fades to grey, indicating the imbalance has been resolved
Automatically manages zone count, removing the oldest zones when the configurable maximum is exceeded
Order Blocks (OB) are the last opposing candle before a strong directional move, confirmed by above-average volume. They represent price levels where institutional orders were placed and where resting orders may still exist. The indicator:
Detects bullish and bearish OBs using engulfing-style pattern recognition with a configurable strength multiplier
Requires volume confirmation — the signal candle must have volume exceeding the 20-bar average
Draws each OB as a solid-border box with directional coloring — azure/cobalt for bullish, coral/rose for bearish
Tracks mitigation: when price returns to the OB zone after sufficient bars have passed, the box fades and its border becomes dashed, indicating the zone has been tested
Manages zone count with automatic cleanup of the oldest zones
Liquidity Mapping
The indicator maps key liquidity features that institutional traders use to plan entries, exits, and targets:
Equal Highs (EQH) and Equal Lows (EQL): When two consecutive swing highs or swing lows form at nearly the same price level (within an ATR-based tolerance), the indicator identifies them as Equal Highs or Equal Lows. These levels are significant because they represent areas where stop orders tend to cluster — above equal highs (buy stops) and below equal lows (sell stops). Institutional traders often engineer price moves toward these levels to fill large orders. EQH/EQL levels are drawn as dashed lines that extend forward and are automatically removed when price sweeps through them.
Premium and Discount Zones: The range between the last swing high and swing low is divided at the equilibrium (50%) level. The upper half is labeled Premium — where sellers have a statistical edge. The lower half is labeled Discount — where buyers have a statistical edge. A dotted equilibrium line marks the midpoint. These zones help traders understand whether they are buying at a discount or selling at a premium relative to the current structural range.
Key Institutional Levels: Prior Day High, Prior Day Low, Prior Week High, and Prior Week Low are drawn as dashed reference lines with labels. These levels are fetched using anti-repaint methodology (no future data references) and represent the most-watched institutional reference points on any chart.
VWAP Deviation Bands
The indicator plots VWAP with two standard deviation bands above and below, creating a statistical framework for price position:
Inner Band (+/- 1 standard deviation): Price within this band is in the "normal" range relative to the volume-weighted average. This is the fair value zone where most trading activity occurs.
Outer Band (+/- 2 standard deviations): Price beyond the inner band but within the outer band is in an extended state. Price beyond the outer band is at a statistical extreme — more than two standard deviations from the volume-weighted mean.
Regime-Adaptive Coloring: The VWAP bands change color based on the current regime state. In a bullish regime, the bands are azure. In a bearish regime, they are coral. In neutral conditions, they are silver. This provides immediate visual context about the directional environment without requiring the trader to check the HUD.
Band Fills: The area between the inner bands is filled with a subtle tint, and the area between the inner and outer bands receives a lighter fill. This creates a visual "channel" that makes it easy to see where price sits relative to the institutional benchmark.
Institutional Signal Detection
The Sovereign Meridian detects six types of institutional events, organized in a strict priority hierarchy to prevent visual clutter:
Liquidity Grab (highest priority): Price sweeps beyond a swing level and closes back inside, with a wick significantly larger than the body. This is a classic stop-hunt pattern where institutional traders push price into a liquidity pool to fill orders, then reverse. These events are marked with gold labels and include a reference line and highlight box at the grab level.
Wyckoff Spring / Upthrust: Price sweeps below a swing low (Spring) or above a swing high (Upthrust) and closes back inside, confirmed by above-average volume. These are accumulation and distribution signals from Wyckoff methodology — among the most reliable reversal patterns in institutional trading.
Absorption: High volume with small price range — the Wyckoff "Effort vs Result" concept. When large volume produces minimal price movement, it indicates that institutional orders are being absorbed without moving the market. This often precedes a directional breakout as the absorption phase completes.
Volume-Confirmed Engulfing: Classic engulfing candle patterns where the current bar's body fully engulfs the prior bar's body, confirmed by volume exceeding the 20-bar average. These patterns indicate a shift in short-term control from buyers to sellers or vice versa.
Delta Surge: When the buy/sell volume ratio becomes heavily skewed in one direction, indicating strong one-sided institutional flow. This confirms directional conviction in the current move.
Change of Character (lowest priority): CHoCH events from the structure engine are also displayed as signals with reference lines, providing structural context alongside the order flow signals above.
Each signal type has its own color and label style for instant recognition. The cooldown system ensures a minimum number of bars between signals on the same side (bull/bear), and higher-priority signals reset the cooldown for lower-priority ones. This means you will never see a cluttered chart with overlapping labels — only the most significant event at any given moment is displayed.
The Structure Score
The proprietary Structure Score (0-100) synthesizes information from every module into a single number that represents the overall conviction level of the current market state. The score evaluates:
Whether a directional structural trend is established
Whether the swing pattern supports the trend (higher highs/higher lows or lower highs/lower lows)
How many active, unfilled Fair Value Gaps exist (more active FVGs = more institutional imbalance)
How many unmitigated Order Blocks exist (more active OBs = more institutional interest)
Whether current volume is above average (confirming participation)
Whether moving averages are aligned in a trending configuration
Whether the regime engine confirms a trending state
Whether the volume delta supports the directional bias
Each component contributes a weighted amount to the total score, capped at 100. The specific weights and caps for each component are proprietary. Scores above 70 indicate strong directional conviction with multiple confirming factors. Scores between 40-70 indicate moderate conditions. Below 40 indicates weak or conflicting signals.
The Institutional Bias
The HUD displays a weighted institutional bias reading (BULL / BEAR / LEAN BULL / LEAN BEAR / NEUTRAL) computed from the weighted sum of all currently active signals and conditions. Each signal type carries a different weight based on its historical reliability — liquidity grabs and Wyckoff events carry the highest weight, while delta surges carry the lowest. The regime state and moving average alignment provide baseline directional context. This gives traders an at-a-glance summary of which side has the institutional edge right now.
HUD Dashboard
The real-time HUD displays 16 metrics in a compact, color-coded table:
Regime state (Trend Up / Trend Down / Range / Squeeze / Expansion) with regime-specific color
Structure direction (Bullish / Bearish / Neutral)
SMA alignment state (Bull Aligned / Bear Aligned / Mixed)
RSI value with directional color coding
Structure Score (0-100) with green/gold/coral color coding
Volume ratio (current vs 20-bar average) with classification (Surge / High / Normal / Low)
Delta value with directional sign and color
Imbalance classification (BUY PRESSURE / SELL PRESSURE / Buyers / Sellers / Balanced)
Effort/Result ratio with Wyckoff absorption detection (ABSORB / High / Elevated / Normal)
VWAP band position (Above +2s / Above +1s / Upper Band / Lower Band / Below -1s / Below -2s)
Volatility state with Bollinger percentile (Squeeze / Expansion / Normal)
Active FVG and OB zone counts
Current Swing High and Swing Low price levels
Weighted Institutional Bias (BULL / BEAR / LEAN BULL / LEAN BEAR / NEUTRAL)
Visual Design — The Sovereign Theme
The indicator uses a custom "Sovereign" color palette — a desaturated, professional aesthetic built around muted blues, orchids, teals, corals, and golds on a dark graphite background. Every color choice carries meaning:
Azure / Cobalt: Bullish structure, VWAP in bullish regime, SMA 20
Coral / Rose: Bearish structure, bearish regime, bearish signals
Teal / Mint: Bullish reaction zones (FVG), EQL levels, discount zone
Gold / Amber: Liquidity grabs, squeeze state, equilibrium, warnings
Orchid / Violet: Absorption events, SMA 50, CHoCH signals
Sage / Emerald: Strong bullish signals, springs, high scores
Silver / Iron: Neutral states, mitigated zones, mixed conditions
Ice / Lavender: Key levels (PDH, PWH), reference information
The palette is intentionally desaturated compared to typical trading indicators. This reduces eye strain during extended chart sessions and ensures that when a bright signal does appear (gold liquidity grab, emerald spring), it immediately draws attention because it contrasts with the subdued baseline.
Anti-Repaint Design
The Sovereign Meridian is designed to produce signals that do not repaint:
All signal generation is gated behind confirmed bar close logic — signals only appear after the bar has closed, never during an open bar
Prior day and prior week levels are fetched with anti-repaint methodology (no future data references, no lookahead)
Pivot-based swing detection has an inherent offset equal to the lookback period, which is accounted for in the structure engine
The confirmed-bars-only toggle allows traders to verify the anti-repaint behavior by comparing real-time signals with historical ones
Configurable Inputs
The indicator provides organized input groups for customization:
Core System: Sensitivity control (1-3) that adjusts all detection thresholds simultaneously, and confirmed-bars-only toggle
Structure Engine: Swing lookback period, FVG visibility and maximum count, FVG minimum size filter, OB visibility and maximum count, OB strength multiplier
Reaction Zones: EQH/EQL visibility and tolerance, Premium/Discount zone visibility, swing level line visibility
Volatility Engine: Bollinger Band length and multiplier for squeeze/expansion detection
Visuals: VWAP bands, SMA ribbon, key levels, candle coloring, signal display with cooldown, HUD panel, displacement markers, regime background tint — all individually toggleable
How to Use the Sovereign Meridian
Step 1: Read the Regime
Check the HUD for the current regime state and the background tint. Trending regimes (azure or coral tint) favor directional trades. Squeeze (gold tint) means wait for a breakout. Range (no tint) favors mean-reversion approaches.
Step 2: Identify the Structure
Look at the structural trend direction in the HUD and the swing pattern on the chart. Are you seeing higher highs and higher lows, or lower highs and lower lows? BOS labels confirm trend continuation. CHoCH labels warn of potential reversals.
Step 3: Find Reaction Zones
Identify unfilled FVGs and unmitigated OBs in the direction of the structural trend. These are areas where price is likely to react. A bullish FVG in a bullish structure within a Trend Up regime is a high-probability long zone.
Step 4: Check the Score and Bias
A Structure Score above 70 with a BULL or BEAR institutional bias means multiple factors are aligned. This is when the highest-conviction trades occur. Scores below 40 or a NEUTRAL bias suggest waiting for clearer conditions.
Step 5: Use Signals for Timing
Liquidity grabs and Wyckoff springs/upthrusts at reaction zones provide entry timing. Absorption events warn that a move is being loaded. Delta surges confirm directional conviction.
Step 6: Manage with VWAP Bands
Use the VWAP deviation bands for position management. Price at +2 standard deviations in a long trade may be a good area to take partial profits. Price returning to the inner band after an extended move may be a re-entry opportunity.
Who This Indicator Is For
Traders who study institutional price action concepts (market structure, order flow, Wyckoff theory) and want a unified tool that connects these concepts
Traders who are tired of loading 4-5 separate indicators and mentally correlating their outputs
Traders who want a quantified Structure Score and institutional bias reading rather than subjective chart interpretation
Traders who value clean, professional visuals that reduce eye strain and highlight only the most significant events
Traders on any liquid instrument (forex majors, large-cap equities, crypto majors, futures) on timeframes of 5 minutes and above
Limitations and Honest Assessment
Swing detection has an inherent delay equal to the lookback period. Pivots are confirmed only after the right-side bars have formed. This means structure signals appear with a slight lag.
Volume-based features (OB confirmation, delta analysis, absorption detection) require reliable volume data. Instruments with poor volume reporting will produce less reliable signals.
FVG and OB zones are probabilistic reaction areas, not guaranteed reversal points. Price can and does move through zones without reacting.
The buy/sell volume split is estimated from candle structure, which is an approximation of true order flow. True tick-level delta requires exchange data not available in Pine Script.
The Structure Score is a heuristic composite, not a statistical model. It provides a useful summary but should not be the sole basis for trading decisions.
During low-liquidity periods (overnight sessions, holidays), all signals may be less reliable.
This indicator provides context and identifies high-probability zones and events. It does not predict the future and should be used as part of a broader trading plan with proper risk management.
Alert Conditions
The indicator includes 14 configurable alert conditions:
BOS Long / BOS Short — structural break of structure in either direction
CHoCH Long / CHoCH Short — change of character (potential reversal)
Bull / Bear Liquidity Grab — stop-hunt reversal events
Wyckoff Spring / Upthrust — accumulation and distribution signals
Absorption — institutional order absorption detected
Buy / Sell Delta Surge — strong one-sided volume flow
Bull / Bear Displacement — aggressive institutional candles
Regime Change — market regime transition
Why Closed Source
The Sovereign Meridian is published as invite-only with protected source because the proprietary value lies not in the individual concepts it employs — which are well-documented in institutional trading education — but in the specific way these concepts are unified, weighted, scored, and prioritized through a shared engine. The Structure Score algorithm, the signal priority hierarchy with its cooldown interaction rules, the adaptive sensitivity system, the multi-factor candle coloring cascade, and the weighted institutional bias calculation represent original engineering work that goes beyond standard implementations. Protecting the source preserves the integrity of these systems while the description above provides full transparency about the underlying principles, what the indicator does, and how traders can use it.
Disclaimer
This indicator is provided for educational and informational purposes only. It is not financial advice or a recommendation to buy or sell any financial instrument. Market structure analysis, regime detection, and institutional signal identification are frameworks for understanding price behavior — they are not prediction systems. Signals do not guarantee future price movement. Past patterns do not guarantee they will repeat. Always use proper risk management and never risk more than you can afford to lose. The author makes no claims about guaranteed profitability and is not responsible for any losses incurred from using this indicator.
-Made by officialjackofalltrades
Indicator

Bastion Execution Protocol [JOAT]Bastion Execution Protocol
Introduction
The Bastion Execution Protocol is an open-source automated trading strategy built in Pine Script v6. It combines regime detection, market structure analysis, dual momentum confirmation (RSI + Stochastic Momentum Index), order flow validation (CVD), candle pattern recognition, session filtering, and dynamic risk management into a single institutional-grade execution framework. The strategy is designed to take high-confluence directional trades only when multiple independent factors align — regime, structure, momentum, volume flow, and session — while managing risk through ATR-based stop losses, configurable reward-to-risk ratios, trailing stops, regime-adaptive position sizing, daily trade limits, and end-of-day forced closes.
This is not a "set and forget" black box. It is a transparent, fully configurable framework where every entry condition, risk parameter, and filter can be adjusted. The strategy is published open-source so traders can study the logic, understand why each trade is taken, and adapt the parameters to their instruments and timeframes.
Why This Strategy Exists
Most published strategies on PulseWire fall into two categories: overly simple (single indicator crossover) or overly complex (dozens of conditions that overfit to historical data). This strategy occupies the middle ground — it requires meaningful confluence from independent analytical dimensions without over-optimizing to specific historical patterns:
Multi-Factor Entry Gate: Every trade requires agreement from regime detection, market structure, momentum oscillators, and optionally CVD order flow and candle patterns. No single factor can trigger a trade alone.
Regime-Aware Execution: The strategy only trades in trending regimes by default. It avoids squeeze conditions and can be configured to require specific regime states. Position sizing automatically reduces in volatile or uncertain regimes.
Session Intelligence: Trades are filtered by session (London, New York, Kill Zones) and day of week. The strategy avoids low-quality periods and forces position closure at end of day.
Dynamic Risk Management: ATR-based stop losses adapt to current volatility. Trailing stops activate after a configurable profit threshold. Position sizing is calculated from account equity and risk percentage, then adjusted by regime conditions.
Performance Tracking: Real-time HUD displays win rate, profit factor, max drawdown, daily trade count, and current position status.
Strategy Architecture — 9 Modules
The strategy is organized into 9 sequential modules, each responsible for a specific aspect of the trading process:
Module 1: Regime Detection
The regime engine classifies the market into four states using SMA alignment and VWAP slope:
Trend Up: SMA 20 > 50 > 200 (bull alignment) AND positive VWAP slope — clear upward momentum
Trend Down: SMA 20 < 50 < 200 (bear alignment) AND negative VWAP slope — clear downward momentum
Squeeze: Bollinger Band width in the bottom 10th percentile — volatility compression
Range: No SMA alignment and flat VWAP slope — sideways conditions
The VWAP slope is normalized by ATR to make it comparable across instruments with different price scales. The regime state directly controls whether trading is allowed — by default, the strategy requires a trending regime.
Module 2: Market Structure
Swing-based structure tracking identifies the directional bias:
Pivot highs and lows are detected using configurable lookback
When price closes above the last swing high while structure was bearish or neutral, structure flips bullish
When price closes below the last swing low while structure was bullish or neutral, structure flips bearish
Structure must agree with the regime for entries — regime bullish + structure bullish = long allowed
Displacement candle detection identifies aggressive institutional order flow — candles with body >= 70% of range and body >= 1.8x the 20-bar average body. These serve as entry triggers when all other conditions are met.
Module 3: Momentum Confirmation
Dual momentum confirmation requires both RSI and SMI to agree:
RSI: Must be above the bull threshold (default 55) for longs, below the bear threshold (default 45) for shorts
Stochastic Momentum Index: Must be positive for longs, negative for shorts. The SMI measures where price sits relative to the midpoint of its recent range, double-smoothed for noise reduction.
Both must agree — RSI bullish AND SMI bullish = momentum confirmed for longs
Module 3B: CVD Order Flow Confirmation
When enabled, Cumulative Volume Delta must support the trade direction:
Buy volume is estimated from bullish candles (close > open = full volume, otherwise proportional)
Sell volume = total volume minus buy volume
CVD = cumulative sum of (buy volume - sell volume)
CVD must be above its moving average for longs, below for shorts
This ensures that actual volume flow supports the intended trade direction
Module 3C: Candle Pattern Detection
When enabled, the strategy detects institutional candle patterns as entry triggers:
Bullish Engulfing: Current bullish candle fully engulfs the prior bearish candle's body, with volume above average
Bearish Engulfing: Current bearish candle fully engulfs the prior bullish candle's body, with volume above average
Bullish Pin Bar: Lower wick > 2x body, upper wick < 0.5x body — rejection of lower prices
Bearish Pin Bar: Upper wick > 2x body, lower wick < 0.5x body — rejection of higher prices
Patterns serve as alternative entry triggers alongside displacement candles. Either a displacement candle, a pattern, or price above SMA20 + VWAP can trigger entry when all other conditions are met.
Module 4: Session Filter
The session filter controls when trading is allowed:
Four session windows: NY Kill Zone (7-10am), London Kill Zone (2-5am), NY Session (9:30am-4pm), London Session (3am-9:30am)
Each session can be individually enabled/disabled
Day of week filter allows disabling specific days (e.g., avoid Mondays or Fridays)
Configurable timezone (default: America/New_York)
End-of-day forced close at configurable time (default: 3:45pm)
Module 5: Daily Trade Counter
A daily trade counter prevents overtrading:
Resets at the start of each new day
Configurable maximum trades per day (default: 3)
Combined with squeeze avoidance and regime filtering for comprehensive trade gating
Module 6: Entry Signal Generation
Entry signals require ALL of the following to be true simultaneously:
// Long entry requires full confluence:
// 1. Regime = Trend Up
// 2. Structure trend = Bullish (swing break confirmed)
// 3. RSI > bull threshold AND SMI > 0
// 4. CVD above its MA (if enabled)
// 5. Bar is confirmed (barstate.isconfirmed)
// 6. Trade is allowed (daily limit, session, no squeeze)
// 7. Trigger: displacement candle OR pattern OR price > SMA20 + VWAP
This multi-gate approach ensures that trades are only taken when regime, structure, momentum, volume flow, session, and a specific trigger all agree. The probability of a random signal passing all gates is very low, which is by design.
Module 7: Risk Calculations
Risk is calculated dynamically for each trade:
Stop Loss: ATR * configurable multiplier (default 1.5x) below entry for longs, above for shorts
Take Profit: SL distance * reward-to-risk ratio (default 2.0x)
Position Size: (Account Equity * Risk Percentage * Regime Multiplier) / SL Distance
Regime-Adaptive Sizing: When enabled, position size is reduced to 50% during squeeze conditions and 70% during non-trending conditions. Full size is used only in trending regimes.
Module 8: Trade Execution
Entries are executed using strategy.entry() with calculated position size. The strategy tracks active trade parameters (entry price, SL, TP) for trailing stop management.
Module 9: Exit Management
Three exit mechanisms operate simultaneously:
Fixed SL/TP: strategy.exit() with the calculated stop loss and take profit levels
Trailing Stop: When enabled, activates after price moves a configurable multiple of R in profit (default 1.0R). The trail distance is ATR * configurable multiplier (default 1.0x). The trailing stop only moves in the favorable direction and replaces the fixed SL when it is tighter.
End-of-Day Close: All positions are closed at the configured time to avoid overnight risk
Performance Tracking
The strategy tracks and displays real-time performance metrics:
Win Rate: Wins / (Wins + Losses) as a percentage
Profit Factor: Gross Profit / Gross Loss — values above 1.5 indicate a healthy edge
Max Drawdown: Peak-to-trough equity decline as a percentage
Net P&L: Total net profit/loss
Daily Trade Count: Current day's trades vs maximum allowed
Strategy Settings and Backtesting Notes
The strategy is configured with realistic default parameters:
Initial Capital: $100,000
Default Position Size: 2% of equity
Risk Per Trade: 1.5% (configurable)
Commission: Not included by default — users should add commission appropriate to their broker in the strategy settings
Slippage: Not included by default — users should add slippage appropriate to their instrument
calc_on_every_tick: false — the strategy only evaluates on confirmed bar closes to prevent repainting
calc_on_order_fills: true — allows trailing stop updates on fill events
Important: Before evaluating backtest results, users should:
Add realistic commission for their broker (e.g., $5 per trade for stocks, 0.1% for crypto)
Add realistic slippage (e.g., 1-2 ticks for liquid instruments)
Verify that the backtest period includes different market conditions (trending, ranging, volatile)
Check that the number of trades is sufficient for statistical significance (100+ trades recommended)
Understand that past performance does not guarantee future results
Input Parameters
Risk Management:
Risk Per Trade %: Percentage of equity risked per trade (default: 1.5%)
Reward:Risk Ratio: TP distance as multiple of SL distance (default: 2.0)
SL ATR Multiplier: Stop loss distance as ATR multiple (default: 1.5)
ATR Length: Period for ATR calculation (default: 14)
Use Trailing Stop: Enable/disable trailing (default: true)
Trail After X R Profit: Profit threshold to activate trail (default: 1.0R)
Trail ATR Multiplier: Trail distance as ATR multiple (default: 1.0)
Max Trades Per Day: Daily trade limit (default: 3)
Regime-Adaptive Sizing: Reduce size in non-trending conditions (default: true)
Regime Filter:
VWAP Slope Lookback: Period for slope calculation (default: 20)
Slope Threshold: Normalized threshold for trend detection (default: 0.12)
Bollinger Length/Multiplier: BB parameters for squeeze detection (default: 20/2.0)
Avoid Squeeze Entries: Skip entries during squeeze (default: true)
Require Trend Regime: Only trade in trending conditions (default: true)
Structure:
Swing Lookback: Pivot detection length (default: 5)
Displacement Min Body Ratio: Minimum body/range for displacement (default: 0.7)
Displacement Body Multiplier: Minimum body vs average for displacement (default: 1.8)
Momentum:
RSI Length/Thresholds: RSI parameters (default: 14, bull 55, bear 45)
SMI Lookback/Smoothing: SMI parameters (default: 13/25/2)
Session Filter:
Enable Session Filter: Toggle session-based trade gating
Individual session toggles: NY KZ, London KZ, NY, London
Day of week toggles: Monday through Friday
Force Close End of Day: Toggle EOD position closure
Close Hour/Minute: EOD close time (default: 15:45)
Order Flow:
CVD Confirmation: Require delta direction to match entry (default: true)
CVD Lookback: Period for CVD moving average (default: 10)
Candle Patterns:
Use Pattern Confirmation: Enable pattern detection as entry trigger (default: true)
Pattern Volume Multiplier: Minimum volume for pattern confirmation (default: 1.3x)
How to Use This Strategy
Step 1: Configure for Your Instrument
Adjust the ATR multiplier and displacement thresholds for your instrument's volatility. Add realistic commission and slippage in PulseWire's strategy settings.
Step 2: Set Your Risk Parameters
Choose a risk percentage that matches your risk tolerance. The default 1.5% with 2:1 R:R is conservative. Adjust the trailing stop parameters based on your preference for locking in profits vs giving trades room.
Step 3: Configure Sessions
Enable the sessions relevant to your instrument. For US equities, NY KZ and NY Session are most relevant. For forex, both London and NY Kill Zones are important. Disable days you prefer not to trade.
Step 4: Run the Backtest
Apply the strategy to your chart and review the backtest results. Check win rate, profit factor, max drawdown, and number of trades. Ensure results are realistic and not the product of overfitting.
Step 5: Forward Test
Before trading live, run the strategy in paper trading mode for at least 2-4 weeks to verify that live performance matches backtest expectations.
Best Practices
Always add commission and slippage before evaluating backtest results
The strategy works best on liquid instruments with reliable volume data
Higher timeframes (15m+) produce fewer but higher-quality trades
The multi-gate entry system means trades are infrequent by design — this is a feature, not a bug
Regime-adaptive sizing is recommended — it automatically reduces exposure in uncertain conditions
The daily trade limit prevents revenge trading and overexposure
End-of-day forced close eliminates overnight gap risk for intraday strategies
Monitor the HUD during live trading for real-time regime, momentum, and session context
If win rate drops below 40% or profit factor drops below 1.0, re-evaluate parameters for current market conditions
Limitations
The strategy uses lagging indicators (SMAs, RSI, SMI) for entry conditions. Entries occur after the trend has started, not at the exact turn.
Regime detection can lag regime changes. The strategy may miss the first portion of a new trend or take a trade just as a trend is ending.
CVD is estimated from candle direction, not true order flow data. This is an approximation.
Backtest results are hypothetical and do not account for real-world execution issues (partial fills, requotes, connectivity).
The strategy is designed for intraday/swing trading. It is not optimized for scalping or long-term position trading.
Session filtering is based on EST timezone. Instruments traded primarily in other timezones may need different session definitions.
The multi-gate entry system can be too restrictive in some market conditions, producing very few trades. This is intentional — the strategy prioritizes quality over quantity.
Past performance in backtesting does not guarantee future results. Market conditions change, and strategies that worked historically may not work in the future.
Technical Implementation
Built with Pine Script v6 using:
calc_on_every_tick=false for non-repainting execution
barstate.isconfirmed gating on all signal generation
9-module architecture with clear separation of concerns
ATR-based dynamic stop loss and take profit calculation
Trailing stop with configurable activation threshold and trail distance
Regime-adaptive position sizing with squeeze and non-trending penalties
Session detection with timezone support and day-of-week filtering
Daily trade counter with automatic reset
End-of-day forced close mechanism
Real-time performance tracking (win rate, profit factor, max drawdown)
Dual momentum confirmation (RSI + SMI)
CVD order flow validation
Candle pattern detection (engulfing, pin bar) with volume confirmation
6 alert conditions covering entries, regime changes, EOD close, patterns, and drawdown
Originality Statement
This strategy is original in its multi-dimensional confluence framework. While individual components (RSI, SMI, SMA alignment, session filtering) are established concepts, this strategy is justified because:
The 9-module architecture creates a clear, auditable decision pipeline where each module's contribution to the final trade decision is transparent
The multi-gate entry system (regime + structure + dual momentum + CVD + session + trigger) requires an unusually high level of confluence, reducing false signals
Regime-adaptive position sizing automatically adjusts exposure based on market conditions, a feature rarely seen in published strategies
The combination of trailing stops with regime-aware sizing creates a dynamic risk framework that adapts to changing conditions
Session filtering with Kill Zone preference and day-of-week controls provides institutional-grade time management
CVD order flow confirmation adds a volume-based validation layer that pure price-based strategies lack
The real-time HUD with performance tracking provides transparency into strategy behavior that most published strategies do not offer
The Volcanic theme provides a cohesive visual identity where every color choice carries meaning (lava = entry, amber = warning, teal = VWAP, crimson = bearish)
Disclaimer
This strategy is provided for educational and informational purposes only. It is not financial advice or a recommendation to buy or sell any financial instrument. Backtested results are hypothetical and do not represent actual trading. Past performance does not guarantee future results. The strategy involves risk of loss, including the potential loss of the entire investment. Commission, slippage, and other real-world execution costs are not included in the default configuration and must be added by the user for realistic evaluation. The author makes no claims about the profitability of this strategy and is not responsible for any losses incurred from its use. Always use proper risk management, trade with capital you can afford to lose, and consider consulting a qualified financial advisor before trading.
-Made with passion by officialjackofalltrades
Strategy

Cadence Refracted Oscillator [JOAT]Cadence Refracted Oscillator
Introduction
The Cadence Refracted Oscillator is an open-source multi-layer momentum analysis tool built in Pine Script v6. It combines three distinct momentum methodologies — Spectral-Filtered RSI, Stochastic Momentum Index (SMI), and Cumulative Volume Delta (CVD) divergence detection — into a single composite oscillator displayed in a separate pane below the chart. The indicator produces a blended momentum reading (0-100), a gradient histogram, a signal line with crossover detection, Z-score extreme markers, and Wyckoff absorption alerts. It is designed for traders who want a deeper, noise-reduced view of momentum that goes beyond what a standard RSI or stochastic can provide.
The key innovation is the spectral filtering stage. Instead of applying RSI directly to raw price, the indicator first passes price data through a Discrete Fourier Transform (DFT) to extract dominant frequency components, then applies RSI-weighted filtering to produce a cleaner, less noisy momentum signal. This filtered signal is then blended with the Stochastic Momentum Index to create a composite that captures both trend momentum and mean-reversion potential.
Why This Indicator Exists
Standard momentum oscillators have well-known limitations. RSI is noisy on lower timeframes and produces frequent false signals in choppy markets. Stochastic oscillators are fast but whipsaw-prone. Neither incorporates volume information. This indicator addresses these issues by layering three complementary approaches:
Spectral-Filtered RSI: Applies a Discrete Fourier Transform to extract the dominant price cycle, then weights the filtered output by RSI distance from the midpoint. This removes high-frequency noise while preserving the meaningful momentum signal. The result is a smoother RSI that responds to genuine trend changes rather than random fluctuations.
Stochastic Momentum Index: Measures where the close is relative to the midpoint of the recent high-low range, double-smoothed with configurable EMA periods. Unlike classic stochastic which measures close relative to the range boundaries, SMI measures distance from the center — making it more sensitive to directional momentum and less prone to ceiling/floor effects.
CVD Divergence: Tracks Cumulative Volume Delta (buy volume minus sell volume) and compares it to price extremes. When price makes a new low but CVD is higher than its previous low, buying pressure is diverging from price — a bullish signal. The reverse applies for bearish divergences. This adds a volume-based confirmation layer that pure price-based oscillators lack.
How the Spectral Filter Works
The spectral filtering process uses a Discrete Fourier Transform — the same mathematical tool used in signal processing, audio analysis, and scientific computing — to decompose price data into frequency components:
// Discrete Fourier Transform implementation
// Decomposes price into frequency components
// DC component (index 0) represents the dominant trend
// Higher harmonics represent shorter-term oscillations
The process works in four stages:
Stage 1 — Short RSI Weighting: A short-period RSI is calculated and converted to an "absolute distance from 50" value. Bars where RSI is far from 50 (strong momentum) receive higher weight in the filter.
Stage 2 — Forward DFT: Price data is transformed into the frequency domain using a configurable number of harmonics (default 3). The magnitude spectrum is extracted, and the DC component (the dominant low-frequency trend) becomes the filtered subject.
Stage 3 — RSI-Weighted Smoothing: The filtered subject is smoothed using the RSI absolute distance as weights. This means the filter responds more to bars with strong momentum and less to bars with weak, indecisive momentum.
Stage 4 — Final RSI: RSI is calculated on the filtered data with the main length (default 21). A divergence component (rate of change of the spectral RSI) is added to create the final Cadence RSI value.
The result is an RSI-like oscillator that is significantly smoother than standard RSI while still being responsive to genuine trend changes. The Fourier harmonics parameter controls how many frequency components are retained — fewer harmonics produce a smoother signal, more harmonics preserve more detail.
Stochastic Momentum Index Component
The SMI component provides a complementary momentum perspective. While the spectral RSI focuses on trend momentum, the SMI captures where price sits within its recent range:
The lookback period defines the range (highest high, lowest low)
The distance from the midpoint of that range is double-smoothed with two EMA passes
The range itself is also double-smoothed and halved to create the denominator
The resulting value oscillates between -100 and +100, where positive values indicate price is above the range midpoint and negative values indicate it is below
This is normalized to 0-100 for blending with the spectral RSI
The SMI is particularly useful for detecting mean-reversion opportunities. When the spectral RSI shows a trend but the SMI is at an extreme, it suggests the trend may be overextended.
Composite Blending
The final composite oscillator blends the spectral RSI (60% weight) with the normalized SMI (40% weight). This weighting prioritizes the trend-following spectral RSI while incorporating the mean-reversion sensitivity of the SMI. The composite oscillates between 0 and 100, with 50 as the neutral midpoint.
The histogram displays the difference from 50, making it easy to see momentum direction and intensity at a glance. Positive histogram bars indicate bullish momentum, negative bars indicate bearish momentum, and the gradient coloring intensifies with momentum strength.
Signal Line and Crossovers
An EMA-based signal line (default 9 periods) is applied to the composite. Crossovers between the composite and signal line provide timing signals:
Bull Cross: Composite crosses above the signal line — momentum is accelerating upward
Bear Cross: Composite crosses below the signal line — momentum is decelerating or reversing
The distance between composite and signal line indicates momentum conviction — wide separation means strong momentum, tight convergence suggests a potential cross is forming
Z-Score Extreme Detection
The indicator calculates a Z-score of the composite value over a configurable lookback (default 50 bars). When the Z-score exceeds +2.0 or falls below -2.0, the momentum is at a statistical extreme — more than two standard deviations from the mean. These events are marked with square markers and indicate:
Potential exhaustion of the current move
High probability of mean reversion
Possible climax buying or selling
Z-score extremes are not automatic reversal signals — strong trends can sustain extremes for extended periods. They are best used as warnings to tighten stops or take partial profits.
Wyckoff Absorption Detection
The indicator detects Wyckoff absorption events — bars where volume is significantly above average (1.5x) but the price range is significantly below average (0.5x). This pattern indicates that large institutional orders are being filled without moving price, which often precedes a directional breakout. Absorption markers appear as circles at the midline.
Visual Design
The indicator uses a "Solar Flare" color theme — golds, ambers, magentas, and plasma purples on a dark background:
Composite Line: Neon glow effect with three layered plots (outer glow at 85% transparency, mid glow at 65%, core line at full intensity). Color adapts to trend state — gold/amber for bullish, magenta/red for bearish, ash for neutral.
Gradient Histogram: 10-level color gradient from bright gold (strong bull) through amber to magenta (strong bear). Rising momentum within a direction intensifies the color.
Signal Line: Plasma purple with glow effect
Zone Fills: Subtle fills between threshold lines — gold tint in the bull zone, magenta tint in the bear zone, ash in the neutral zone
OB/OS Fills: When the composite enters overbought (>75) or oversold (<25) territory, a colored fill highlights the extreme
SMI Reference: A thin blue line showing the normalized SMI for comparison
Markers: Triangles for signal crossovers, diamonds for CVD divergences, squares for Z-score extremes, circles for absorption
HUD Dashboard
The real-time HUD displays 14 metrics:
Composite value with color-coded bull/bear/neutral state
Trend direction (Bullish/Bearish/Neutral)
Z-Score value with classification (Extreme Bull/Bear, Strong, Normal)
Momentum Percentile Rank (0-100%)
SMI value
Signal Line distance (Wide/Moderate/Tight)
Volume Flow direction (Buying/Selling/Neutral) from CVD
Spectral RSI component value
Momentum Strength percentage with classification (Very Strong to Very Weak)
Overbought/Oversold pressure state
Divergence status (Bull Div/Bear Div/None)
Current mode description (Bull Momentum/Bear Momentum/Consolidating)
Input Parameters
Spectral RSI:
RSI Length: Main RSI period (default: 21)
Source: Price source (default: close)
Filter Length: Short RSI period for weighting (default: 12)
Fourier Harmonics: Number of DFT components (default: 3). Lower = smoother, higher = more detail.
Stochastic Momentum:
SMI Lookback: Range period (default: 13)
SMI Smooth 1/2: Double-smoothing EMA periods (default: 25/2)
Signal Length: Signal line EMA period (default: 13)
Volume Delta:
Show CVD Divergence: Toggle divergence detection
CVD Divergence Lookback: Period for comparing CVD extremes to price extremes (default: 14)
Levels:
Overbought/Oversold: Extreme thresholds (default: 75/25)
Bull/Bear Threshold: Trend classification levels (default: 58/42)
How to Use This Indicator
Step 1: Read the Composite Direction
Above 58 = bullish momentum. Below 42 = bearish momentum. Between = consolidation. The histogram makes this immediately visible.
Step 2: Watch for Signal Crossovers
Bull crosses (composite above signal) in the lower half of the range are potential long entries. Bear crosses in the upper half are potential short entries. Crosses near the midline are less significant.
Step 3: Check for Divergences
CVD divergences at price extremes are powerful reversal warnings. A bullish CVD divergence at an oversold composite reading is a high-probability long setup.
Step 4: Monitor Z-Score Extremes
Z-score beyond +/-2.0 warns of potential exhaustion. Consider tightening stops or taking partial profits when the Z-score reaches extreme levels.
Step 5: Use Absorption as Early Warning
Absorption events (high volume, small range) often precede breakouts. When absorption appears near a threshold level, be prepared for a directional move.
Best Practices
The spectral filter works best on timeframes with sufficient data — 5-minute and above is recommended
Fewer Fourier harmonics (2-3) produce a smoother, more trend-following signal. More harmonics (5-8) produce a more responsive but noisier signal.
The composite is most reliable when the spectral RSI and SMI agree. Divergence between the two components suggests mixed conditions.
CVD divergences are most significant at overbought/oversold extremes
Z-score extremes in trending markets can persist — do not blindly fade them
The signal line crossover is a timing tool, not a standalone entry signal. Combine with price action and structure analysis.
Absorption events are context-dependent — they are most meaningful near support/resistance levels
Limitations
The DFT calculation is computationally intensive. Very high harmonic counts may slow chart loading on lower timeframes with large datasets.
The spectral filter introduces a small amount of lag compared to raw RSI. This is the tradeoff for noise reduction.
CVD divergence detection uses a simple comparison of extremes over the lookback period. It may miss complex divergences or flag simple pullbacks as divergences.
Buy/sell volume separation is estimated from candle direction, not true order flow data.
The composite blending weights (60/40) are fixed. Different instruments or timeframes might benefit from different weights.
Z-score extremes are relative to the lookback period. A Z-score of +2.0 over 50 bars may not be extreme over 200 bars.
Like all oscillators, this indicator can remain at extremes during strong trends. It is not a contrarian tool by default.
Technical Implementation
Built with Pine Script v6 using:
Custom Discrete Fourier Transform implementation (forward and inverse) with configurable harmonics
RSI-weighted spectral filtering for noise reduction
Double-smoothed Stochastic Momentum Index with normalization
Cumulative Volume Delta tracking with divergence detection
Z-score calculation for statistical extreme identification
Wyckoff absorption detection (effort vs result)
10-level gradient histogram coloring function
Multi-layer neon glow effect on composite and signal lines
barstate.isconfirmed gating on all signal markers
10 alert conditions covering threshold crosses, divergences, signal crossovers, and Z-score extremes
Originality Statement
This indicator is original in its synthesis of spectral analysis with momentum oscillators and volume delta. While RSI, stochastic, and CVD are established concepts, this indicator is justified because:
The Discrete Fourier Transform spectral filtering applied to RSI calculation is a novel approach that significantly reduces noise while preserving signal responsiveness
The RSI-weighted filtering stage ensures the spectral filter responds more to high-momentum bars and less to noise, creating an adaptive smoothing mechanism
Blending spectral RSI with SMI combines trend-following and mean-reversion perspectives into a single composite that captures both dimensions of momentum
CVD divergence detection adds a volume-based confirmation layer that pure price-based oscillators cannot provide
Z-score extreme detection provides statistical context for momentum readings, helping traders distinguish between normal momentum and genuine extremes
Wyckoff absorption integration connects volume analysis with momentum analysis in a way that standard oscillators do not
The Solar Flare theme with gradient histogram and neon glow provides immediate visual clarity about momentum direction and intensity
Disclaimer
This indicator is provided for educational and informational purposes only. It is not financial advice or a recommendation to buy or sell any financial instrument. Momentum oscillators measure the rate and direction of price change — they do not predict future price movement. Overbought conditions can persist in strong uptrends, and oversold conditions can persist in strong downtrends. Signal crossovers and divergences are probabilistic, not deterministic. Past momentum patterns do not guarantee future behavior. Always use proper risk management and never risk more than you can afford to lose. The author is not responsible for any losses incurred from using this indicator.
-Made by officialjackofalltrades
Indicator

Echelon Regime Gauge [JOAT]Echelon Regime Gauge
Introduction
The Echelon Regime Gauge is an open-source market regime detection and session awareness indicator built in Pine Script v6. It classifies the current market state into one of six regimes — Trend Up, Trend Down, Range, Volatile, Squeeze, or Mixed — using a combination of SMA alignment, VWAP slope analysis, and Bollinger Band volatility metrics. On top of regime detection, the indicator provides session identification (Asian, London, New York, Kill Zones, Power Hour), volatility state tracking (Expansion, Contraction, Squeeze), R-squared trend quality measurement, historical volatility percentile, Wyckoff effort/result analysis, and an institutional activity score that colors candles by multi-factor heatmap logic.
The core question this indicator answers is: "What kind of market am I in right now?" Knowing whether the market is trending, ranging, squeezing, or volatile changes everything about how you should trade — from entry type to stop placement to position sizing. This indicator provides that context in real-time with a confidence percentage and a comprehensive HUD dashboard.
Why This Indicator Exists
Most traders apply the same strategy regardless of market conditions. A breakout strategy in a ranging market produces whipsaws. A mean-reversion strategy in a trending market produces losses. This indicator solves the context problem by providing a clear, quantified regime classification:
Regime Detection: Six distinct market states, each requiring different trading approaches. The classification uses three independent inputs — SMA alignment, VWAP slope direction, and Bollinger Band percentile — to produce a robust, multi-factor regime reading.
Regime Confidence: A 0-100 score indicating how clearly the market fits the detected regime. High confidence means the classification is strong and reliable. Low confidence suggests transitional or ambiguous conditions.
Session Awareness: Identifies the current trading session (Asian, London, New York) and highlights Kill Zones (London 2-5am, NY 7-10am) and Power Hour (3-4pm) — the periods when institutional activity is highest and moves are most significant.
Volatility State: Tracks whether volatility is in Expansion, Contraction, Squeeze, or Normal state. Squeeze conditions (Bollinger width in the bottom 10th percentile) often precede explosive moves.
Trend Quality (R-Squared): Measures how linear and clean the current trend is on a 0-1 scale. R-squared above 0.6 indicates a clean, tradeable trend. Below 0.4 indicates choppy, random price action.
Institutional Activity Score: A multi-factor score (0-100) computed from body ratio, volume ratio, R-squared, Bollinger Band position, and VWAP distance. This score drives the candle heatmap coloring.
How Regime Detection Works
The regime engine combines three independent analytical dimensions:
Dimension 1 — SMA Alignment:
The indicator calculates three Simple Moving Averages (default 20, 50, 200). When all three are aligned in order (20 > 50 > 200), the market is in bull alignment. When reversed (20 < 50 < 200), bear alignment. Any other configuration is diverged/mixed.
Dimension 2 — VWAP Slope:
The VWAP (Volume Weighted Average Price) slope is calculated over a configurable lookback and normalized by ATR to make it comparable across instruments. A normalized slope above the threshold indicates upward momentum. Below the negative threshold indicates downward momentum. Within the threshold band indicates flat/ranging conditions.
Dimension 3 — Volatility Percentile:
Bollinger Band width percentile rank over 120 bars determines volatility state. Below the 10th percentile is a squeeze. Above the configurable expansion percentile (default 75th) is expansion. ATR percentile rank provides a secondary volatility measure.
These three dimensions combine into the regime classification:
Squeeze: BB width in bottom 10th percentile — volatility compression, potential breakout imminent
Trend Up: Bull SMA alignment AND positive VWAP slope — clear directional momentum upward
Trend Down: Bear SMA alignment AND negative VWAP slope — clear directional momentum downward
Volatile: ATR in expansion percentile WITHOUT SMA alignment — high volatility but no clear trend direction
Range: Flat VWAP slope WITHOUT SMA alignment — sideways, mean-reverting conditions
Mixed: Conditions do not clearly fit any category — transitional state
Regime Confidence Calculation
Each regime has its own confidence formula based on how strongly the inputs support the classification:
Trend Up/Down: SMA alignment (40pts) + slope direction (30pts) + slope magnitude (up to 30pts)
Range: Flat slope (40pts) + no alignment (30pts) + low ATR percentile (up to 30pts)
Squeeze: Low BB percentile (70%) + low ATR percentile (30%)
Volatile: High ATR percentile (70%) + high BB percentile (30%)
Mixed: Fixed at 25 — low confidence by definition
The confidence is displayed as both a number and a visual bar (||||......) in the HUD, making it easy to assess at a glance.
Session and Time-of-Day Analysis
The indicator identifies seven session states with configurable timezone (default America/New_York):
Asia (7pm-3am): Low volatility, range-building session. Quality: Low.
London (3am-9:30am): Increasing volatility, often sets the day's direction. Quality: Medium.
London Kill Zone (2-5am): Peak London institutional activity. Quality: High.
New York (9:30am-4pm): Highest volume session for US instruments. Quality: Medium.
NY Kill Zone (7-10am): Peak NY institutional activity, overlap with London. Quality: High.
Lunch (10am-12pm): Low conviction, choppy price action. Quality: Low.
Power Hour (3-4pm): End-of-day positioning, often produces strong moves. Quality: High.
Kill Zones are highlighted with a subtle gold background tint. Lunch hours receive a dark tint as a visual warning of low-quality conditions.
Institutional Signal System
The indicator detects and labels six types of institutional events using a priority-based system with cooldowns to prevent label stacking:
P1 — BULL/BEAR CONFLUENCE (highest priority): Full alignment of SMA, VWAP slope, R-squared trend quality, regime confidence > 70, and price vs VWAP. This is the strongest possible directional signal — all factors agree.
P2 — MAJOR GOLDEN/DEATH CROSS: Mid SMA (50) crosses the Slow SMA (200). These are rare, high-impact structural events that signal major trend shifts.
P2b — GOLDEN X / DEATH X: Fast SMA (20) crosses Mid SMA (50). More frequent than major crosses but still significant structural events.
P3 — REGIME CHANGE: The regime classification changes from one state to another. Labels show the new regime name.
P4 — SQZ BREAK: Squeeze releases into expansion with price above (bull) or below (bear) the fast SMA. These are high-energy breakout events.
P5 — VWAP RECLAIM/REJECT: Price crosses above VWAP with positive slope (reclaim) or below with negative slope (rejection). VWAP is the institutional benchmark — reclaiming or losing it is significant.
P6 — DISP (Displacement, lowest priority): Large-body candles (body > 70% of range, body > 2x average) indicating aggressive institutional order flow.
Each signal checks a cooldown counter before firing. Higher-priority signals suppress lower-priority ones within the cooldown window, ensuring the chart shows only the most important signal at any given time.
Candle Heatmap Coloring
When enabled, candles are colored based on the current regime and trend quality rather than simple bull/bear direction:
Bull Aligned + Clean Trend: Bright aurora lime (bullish candles) / aurora green (bearish candles)
Bull Aligned: Aurora green / aurora teal
Bear Aligned + Clean Trend: Aurora pink / aurora purple
Bear Aligned: Aurora purple / aurora pink
Squeeze: Aurora gold / warm orange
Neutral: Ice blue / arctic blue
This coloring scheme makes it immediately obvious what regime the market is in without looking at the HUD — the entire chart changes character with the regime.
Advanced Metrics
R-Squared Trend Quality: Calculated as the square of the correlation between close price and bar_index over a configurable period. Values above 0.7 indicate a clean, linear trend. Values below 0.4 indicate choppy, non-directional price action. This metric helps distinguish between trending markets that are tradeable and trending markets that are too choppy to trade reliably.
Historical Volatility: Annualized standard deviation of log returns, displayed as a percentage with percentile ranking over 252 bars. This provides a longer-term volatility context beyond the Bollinger-based squeeze detection.
Wyckoff Effort/Result: Volume divided by range — when this ratio is high (high volume, small range), institutional absorption is occurring. The indicator detects these events and displays them in the HUD.
Regime Duration: Counts how many bars the current regime has persisted. Long-duration regimes are more established. Short-duration regimes may be transitional.
Institutional Score: A 0-100 composite from body ratio, volume ratio, R-squared, BB position extremes, and VWAP distance. Higher scores indicate more institutional-quality price action.
HUD Dashboard
The HUD displays 12 metrics with color-coded values:
Regime State with regime-specific color
Confidence score with visual bar (||||......)
VWAP Slope direction (Rising/Falling/Flat)
Volatility state with squeeze duration counter
Current Session name
Session Quality rating (High/Medium/Low)
SMA Alignment (Bull Aligned/Bear Aligned/Diverged)
R-Squared trend quality (Clean/Moderate/Choppy)
Historical Volatility with percentile classification
Regime Duration in bars
Institutional Activity Score
Input Parameters
Regime Detection:
Fast/Mid/Slow SMA: Moving average periods (default: 20/50/200)
VWAP Slope Lookback: Period for slope calculation (default: 20)
Slope Threshold: Normalized slope threshold for trend detection (default: 0.12)
Volatility:
ATR Length: Period for ATR calculation (default: 14)
Bollinger Length/Multiplier: BB parameters (default: 20/2.0)
Squeeze Lookback: Percentile rank period (default: 120)
Expansion Percentile: ATR percentile threshold for expansion (default: 75)
Sessions:
Show Session Zones: Toggle session background highlighting
Timezone: Configurable timezone (default: America/New_York)
Highlight Kill Zones: Toggle kill zone emphasis
Visual:
Regime Background: Toggle regime-adaptive background tinting
SMA Trend Ribbon: Toggle ribbon fill between fast and mid SMA
Candle Heatmap Coloring: Toggle institutional activity-based candle colors
Show Prior Day H/L: Toggle PDH/PDL reference lines
HUD Panel: Toggle with configurable position
How to Use This Indicator
Step 1: Check the Regime
Before entering any trade, check what regime the market is in. Trend Up/Down = directional strategies. Range = mean-reversion. Squeeze = wait for breakout. Volatile = reduce size or stand aside.
Step 2: Verify Confidence
A regime reading with 80+ confidence is reliable. Below 50 suggests the market is in transition — be cautious.
Step 3: Check the Session
Kill Zones and Power Hour produce the most reliable moves. Lunch hour and Asian session moves are less reliable for most instruments.
Step 4: Watch for Signals
BULL/BEAR CONFLUENCE is the highest-conviction signal — all factors agree. SQZ BREAK signals high-energy breakouts. VWAP RECLAIM/REJECT provides key level context.
Step 5: Use Trend Quality for Filtering
R-squared above 0.6 means the trend is clean and tradeable. Below 0.4 means the trend is choppy — consider waiting for cleaner conditions.
Best Practices
The regime classification is most reliable on timeframes of 5 minutes and above
Session features are most relevant for instruments with clear session structures (equities, futures, major forex)
Squeeze conditions can persist for extended periods. Do not assume a squeeze will break immediately.
Regime transitions (Mixed state) are the most dangerous periods. Consider reducing exposure during transitions.
The institutional score is a heuristic — use it as one input among many, not as a standalone signal
SMA crosses are lagging by nature. They confirm trend changes rather than predict them.
Combine this indicator with structure or momentum tools for entry timing — this indicator provides context, not entries.
Limitations
Regime detection uses lagging indicators (SMAs, BB percentile). Regime changes are confirmed after they occur, not predicted in advance.
The six-regime classification is a simplification. Real markets exist on a continuum, not in discrete states.
Session times are hardcoded for EST timezone sessions. Instruments traded primarily in other timezones may need different session definitions.
R-squared measures linearity, not direction. A perfectly linear downtrend has the same R-squared as a perfectly linear uptrend.
The institutional activity score is estimated from available data (body ratio, volume, BB position). True institutional activity detection requires order flow data not available in Pine Script.
VWAP resets daily on most instruments. Intraday VWAP slope is most meaningful for day trading timeframes.
Kill Zone highlighting assumes EST-based session times. Adjust the timezone input for your local market.
Technical Implementation
Built with Pine Script v6 using:
Three-dimensional regime classification (SMA alignment + VWAP slope + BB volatility)
Regime confidence scoring with per-regime formulas
Session detection using time() with configurable timezone
R-squared trend quality via ta.correlation()
Annualized historical volatility with percentile ranking
Wyckoff effort/result absorption detection
Multi-factor institutional activity scoring
Priority-based signal system with 6 tiers and cooldown anti-overlap
Volatility-adaptive gradient background coloring
Aurora-themed SMA ribbon with alignment-responsive colors
10 alert conditions covering regime changes, SMA crosses, absorption, and clean trend detection
Originality Statement
This indicator is original in its comprehensive regime detection and session awareness integration. While SMA alignment and Bollinger squeeze are established concepts, this indicator is justified because:
The three-dimensional regime classification (SMA + VWAP slope + BB volatility) produces a more robust state detection than any single method
Regime confidence scoring quantifies how clearly the market fits the detected state, providing actionable uncertainty information
Session awareness with quality ratings integrates time-of-day context directly into the regime framework
R-squared trend quality measurement distinguishes between clean tradeable trends and choppy non-directional trends
The priority-based signal system with 6 tiers ensures only the most important events are displayed
Candle heatmap coloring driven by regime and trend quality provides immediate visual context
The Aurora Borealis theme with volatility-adaptive background creates a dynamic visual environment that changes character with market conditions
Squeeze duration tracking and regime duration counting provide temporal context for current conditions
Disclaimer
This indicator is provided for educational and informational purposes only. It is not financial advice or a recommendation to buy or sell any financial instrument. Regime detection classifies current market conditions based on historical data — it does not predict future regime changes. Markets can transition between regimes without warning. Squeeze conditions do not guarantee breakouts. Session quality ratings are generalizations that may not apply to all instruments or market conditions. Past regime patterns do not guarantee future behavior. Always use proper risk management and never risk more than you can afford to lose. The author is not responsible for any losses incurred from using this indicator.
-Made by officialjackofalltrades
Indicator

Blanco V3 (PRO MTF System)**Blanco V3 – Advanced Precision Trading System**
Blanco V3 is the next evolution of the Blanco series, designed to deliver **precision entries, stronger confirmations, and cleaner decision-making**. It builds on the foundation of Blanco V1 and V2 by enhancing timing, filtering noise, and introducing smarter multi-timeframe alignment.
At its core, Blanco V3 uses a **Zero Lag EMA (ZLEMA)** to reduce delay and detect trend direction faster than traditional indicators. Combined with advanced filters, it helps traders enter earlier while avoiding weak or late setups.
---
### ⚙️ Intelligent Trading Modes
Blanco V3 features three adaptive modes that dynamically adjust strictness:
* **Aggressive Mode**
Faster signals with more entries. Ideal for scalping and lower timeframes.
* **Balanced Mode (Recommended)**
Optimized for consistency. Balances signal quality and frequency.
* **Conservative Mode**
Focuses only on the strongest setups. Best for swing trading and higher timeframes.
Each mode automatically adjusts:
* Trend strength thresholds (ADX)
* Momentum requirements (RSI)
* Entry precision (pullback sensitivity)
---
### 📊 Signal System
Blanco V3 delivers a refined 3-layer signal structure:
#### 🔺 Entry Signals (Precision Arrows)
Small arrows mark optimized entry points using:
* Pullbacks toward the ZLEMA
* Momentum confirmation (RSI alignment)
* Strong trend validation (ADX filter)
* Candle strength (price action confirmation)
These signals are designed to **improve timing and avoid chasing price**.
---
#### 🟢 BUY / 🔴 SELL Labels (Trend Confirmation)
Larger labels appear when the overall trend shifts direction, helping traders identify:
* Swing entries
* Trend reversals
* Continuation opportunities
---
#### ❗ Elite Signals (Full Alignment)
Blanco V3 introduces enhanced **Elite Signals**, which appear only when:
* A valid entry signal is triggered
* AND all monitored timeframes are aligned
These signals represent the **highest-probability setups**, combining trend, momentum, and full market agreement.
---
### 🧠 Multi-Timeframe Intelligence
Blanco V3 includes a bright, easy-to-read dashboard showing trend direction across:
* 5-minute
* 15-minute
* 30-minute
* 1-hour
* 2-hour
* 4-hour
Each timeframe is color-coded:
* 🟢 Green = Bullish
* 🔴 Red = Bearish
---
### 🔍 Smart Confirmation Logic (NEW)
Blanco V3 improves flexibility and accuracy with:
* **Partial Alignment (4/6 or more)**
Allows earlier entries while maintaining quality
* **Full Alignment (6/6)**
Triggers ❗ Elite Signals for maximum confidence
* **Noise Reduction Filters**
Avoids sideways markets and weak momentum conditions
---
### 🎯 Strategy Philosophy
Blanco V3 is designed around one key principle:
> **Trade with the trend, enter on pullbacks, and confirm with alignment.**
It focuses on:
* Entering **after retracements**, not breakouts
* Trading only in **strong market conditions**
* Aligning with **higher timeframe direction**
---
### ⚠️ Best Use
* Best on **1H and 4H charts**
* Works best in **trending markets**
* Combine with:
* Risk management
* Support & resistance
* Market structure
---
### 📌 Quick Guide
* 🔺 Arrows = precise entries
* 🟢 BUY / 🔴 SELL = trend shifts
* ❗ = elite high-probability trades
* 📊 Dashboard = multi-timeframe confirmation
---
**Blanco V3 is built for traders who want cleaner charts, smarter entries, and higher-quality signals — all in one system.**
Indicator

Lattice Trend Helix [JOAT]Lattice Trend Helix
Introduction
The Lattice Trend Helix is an open-source trend analysis indicator built in Pine Script v6. It combines a GMMA-inspired multi-EMA fan system (19 exponential moving averages across fast and slow groups) with a pivot-center SuperTrend, RSI momentum confirmation, and a comprehensive trend strength scoring system. The indicator detects EMA fan alignment, measures trend strength on a 0-100 scale, identifies fan expansion/contraction dynamics, and generates priority-ranked signals including full confluence locks, fan crosses, SuperTrend flips, EMA 200 reclaims, fan burst breakouts, SuperTrend bounces, and displacement impulses.
The Guppy Multiple Moving Average (GMMA) concept, originally developed by Daryl Guppy, uses two groups of EMAs to visualize the behavior of short-term traders (fast group) and long-term investors (slow group). When both groups are aligned and separated, a strong trend is in place. When they converge and cross, a trend change is developing. This indicator extends the GMMA concept by adding a pivot-based SuperTrend for dynamic support/resistance, RSI filtering for momentum confirmation, and a quantified scoring system that turns visual alignment into a measurable number.
Why This Indicator Exists
Single moving average crossover systems are prone to whipsaws. Even dual-MA systems produce frequent false signals in choppy markets. The GMMA approach solves this by requiring alignment across many EMAs simultaneously — a much higher bar than a simple crossover. This indicator takes that concept further:
19-EMA Fan System: 11 fast EMAs (periods 3 through 23) capture short-term trader sentiment. 8 slow EMAs (periods 25 through 60) capture longer-term investor positioning. Full alignment of all 11 fast EMAs in order is a strong signal that short-term traders agree on direction. Full alignment of all 8 slow EMAs confirms institutional agreement.
Pivot-Center SuperTrend: Unlike standard SuperTrend which uses HL2 as the center, this implementation uses a weighted average of detected pivot points. Each new pivot high or low updates the center using the formula: center = (center * 2 + pivot) / 3. This creates a more responsive center line that adapts to actual market structure rather than simple bar midpoints. ATR-based bands around this center define the trend direction.
Trend Strength Score (0-100): Quantifies trend strength from three components — fast EMA alignment (50 points), slow EMA alignment (30 points), and price position relative to EMA 200 (20 points). A score of 100 means all 19 EMAs are perfectly aligned and price is on the correct side of the 200 EMA.
Fan Spread Dynamics: The distance between the fastest EMA (3) and slowest fast EMA (23), normalized by ATR, measures how "open" the fan is. An expanding fan indicates strengthening trend momentum. A contracting fan warns of potential trend exhaustion or reversal.
RSI Momentum Filter: RSI must agree with the fan direction for the highest-confidence signals. This prevents false confluence signals during momentum divergences.
EMA 200 Macro Filter: Price must be above the 200 EMA for confirmed bullish signals and below for confirmed bearish signals, ensuring alignment with the macro trend.
How the EMA Fan Alignment Works
The fast fan consists of 11 EMAs at periods 3, 5, 7, 9, 11, 13, 15, 17, 19, 21, and 23. For bullish alignment, every EMA must be above the next longer one:
// Full fast fan bull alignment requires ALL 10 pairs in order
bool fastBull = ef3 > ef5 and ef5 > ef7 and ef7 > ef9 and ef9 > ef11
and ef11 > ef13 and ef13 > ef15 and ef15 > ef17
and ef17 > ef19 and ef19 > ef21 and ef21 > ef23
This is an extremely high bar. In choppy markets, the fast EMAs will be tangled and neither fastBull nor fastBear will be true. Only in genuine trending conditions do all 11 EMAs sort into perfect order. The same logic applies to the 8 slow EMAs.
The indicator counts how many adjacent pairs are aligned (0-10 for fast, 0-7 for slow) to produce a granular alignment score even when full alignment is not achieved. This allows the trend strength score to reflect partial alignment — a market with 8/10 fast pairs aligned is stronger than one with 4/10, even though neither achieves full alignment.
Pivot-Center SuperTrend
The SuperTrend component uses a unique center calculation based on detected pivot points:
Pivot highs and lows are detected using ta.pivothigh() and ta.pivotlow() with a configurable period
Each new pivot updates the center line using an exponentially weighted formula that gives 2/3 weight to the existing center and 1/3 to the new pivot
Upper and lower bands are calculated as center +/- (ATR Factor * ATR)
Trend direction flips when price crosses the opposite band
The trailing stop ratchets in the trend direction — it can only move favorably, never against the trend
This pivot-based center produces a SuperTrend that is more responsive to actual market structure than the standard HL2-based version. It adapts to the rhythm of the market's swing points rather than just the midpoint of each bar.
Signal Priority System
The indicator generates 8 types of signals, ranked by priority with cooldown-based anti-overlap:
P1 — HELIX LOCK (highest): Full fan alignment (fast + slow) + RSI confirmation + price above/below EMA 200. This is the maximum confluence signal — every factor agrees. A highlight box is drawn around the signal candle.
P2 — LATTICE SYNC: Full fan alignment (fast + slow) without RSI/EMA200 confirmation. Strong but not maximum confluence.
P3 — TREND FLIP: SuperTrend direction change. The pivot-center SuperTrend has flipped from bearish to bullish or vice versa.
P4 — FAN CROSS: The fast fan median (EMA 13) crosses the slow fan median (EMA 40). This is the GMMA equivalent of a moving average crossover, but using the center of each fan group.
P5 — MACRO CROSS: Price crosses the EMA 200 — a major structural event that changes the macro trend context.
P6 — FAN BURST: The fan spread transitions from contracting to expanding while the trend score is above 50. This indicates a breakout from compression — similar to a Bollinger squeeze release but measured through EMA dynamics.
P7 — ST BOUNCE: Price touches the SuperTrend line and bounces in the trend direction. This is a pullback-to-support/resistance signal unique to this indicator. A separate 5-bar cooldown prevents repeated bounce signals during extended touches.
P8 — IMPULSE (lowest): Displacement candle detection — large body (>70% of range, >2x average body). These indicate aggressive institutional order flow.
Trend Strength Score Breakdown
The 0-100 score is computed from three weighted components:
Fast EMA Alignment (50 points): The number of aligned adjacent pairs (max 10) divided by 10, multiplied by 50. Full fast alignment = 50 points. Half alignment = 25 points.
Slow EMA Alignment (30 points): The number of aligned adjacent pairs (max 7) divided by 7, multiplied by 30. Full slow alignment = 30 points.
EMA 200 Filter (20 points): If price is above EMA 200 and the fast fan leans bullish, or below EMA 200 and the fast fan leans bearish, 20 points are added. This rewards macro-aligned trends.
The score is displayed in the HUD with both a number and a visual bar (||||......). Scores above 70 indicate strong, tradeable trends. Scores between 40-70 indicate developing or weakening trends. Below 40 indicates choppy or transitional conditions.
Visual Design
The indicator uses a "Cyberpunk" color theme — electric cyan, hot magenta, neon yellow, deep violet, and chrome accents:
Fast EMA Fan: All 11 lines in a single color that adapts to alignment — cyan for bullish, magenta for bearish, steel grey for neutral. Configurable opacity.
Slow EMA Fan: All 8 lines in deeper tones — teal for bullish, violet for bearish, steel grey for neutral.
EMA 200: Three-layer neon glow effect (outer glow, mid glow, core line) that shifts between cyan (above) and violet (below).
Holographic Ribbon: Fill between the fastest (EMA 3) and slowest (EMA 23) fast EMAs, creating a ribbon that expands with trend strength and contracts during consolidation.
SuperTrend: Four-layer neon glow step-line (88%, 72%, 50%, 10% transparency) in cyan (bullish) or magenta (bearish).
Regime Background: Subtle background tinting for confirmed bull (cyan) or confirmed bear (magenta) conditions.
Candle Coloring: Multi-tier coloring based on confirmation level — confirmed bull/bear, strong bull/bear, weak bull/bear, or neutral.
HUD Dashboard
The HUD displays 14 metrics:
Trend direction (Bullish/Bearish/Neutral)
Strength score with visual bar (||||......)
Fan state (Strong Bull/Bear, Weak Bull/Bear, Converging)
SuperTrend direction
EMA 200 position (Above/Below)
Alignment counts (Fast: X/10, Slow: X/7)
Fan Spread value with state (Expanding/Contracting/Stable)
RSI value with bull/bear/neutral classification
Confluence count (0-5): fast alignment + slow alignment + SuperTrend agreement + RSI agreement + EMA 200 agreement
SuperTrend distance from price
Volume ratio (current vs 20-bar average)
Confirmed signal status (CONFIRMED BULL/BEAR or ---)
Input Parameters
EMA Fan:
Show Fast/Slow EMAs: Toggle each fan group
Show EMA 200: Toggle macro filter line
Fast/Slow EMA Opacity: Control transparency of each fan group
SuperTrend:
Show SuperTrend: Toggle the pivot-center SuperTrend
Pivot Period: Lookback for pivot detection (default: 3)
ATR Factor: Band width multiplier (default: 2.5)
ATR Length: Period for ATR calculation (default: 14)
Visual:
Show Trend Ribbon: Toggle holographic ribbon fill
Show Fan Crosses: Toggle fan cross signals
Show Regime Background: Toggle background tinting
SuperTrend Neon Glow: Toggle 4-layer glow effect
Color Candles: Toggle multi-tier candle coloring
HUD Panel: Toggle dashboard
Momentum Filter:
Show RSI Confirmation: Toggle RSI requirement for confirmed signals
RSI Length: Period (default: 14)
RSI Bull/Bear Threshold: Directional thresholds (default: 55/45)
How to Use This Indicator
Step 1: Check Fan Alignment
Look at the fan state in the HUD. "Strong Bull" or "Strong Bear" means both fast and slow fans are fully aligned — the strongest trend condition. "Weak" means only the fast fan is aligned — a developing or weakening trend.
Step 2: Verify with SuperTrend
The SuperTrend should agree with the fan direction. Fan bullish + SuperTrend bullish = high conviction. Disagreement suggests a transitional market.
Step 3: Check the Strength Score
Scores above 70 are strong trends. Use the visual bar for quick assessment. The confluence count (0-5) tells you how many independent factors agree.
Step 4: Trade the Signals
HELIX LOCK is the highest-conviction entry — all factors agree. LATTICE SYNC and TREND FLIP are strong. FAN CROSS and MACRO CROSS are structural. ST BOUNCE provides pullback entries within established trends.
Step 5: Monitor Fan Spread
Expanding fan = strengthening trend. Contracting fan = weakening trend or approaching reversal. FAN BURST signals mark the transition from contraction to expansion.
Best Practices
The 19-EMA fan is most effective on timeframes of 5 minutes and above. Very low timeframes produce too much noise for meaningful alignment.
Full fan alignment is rare and powerful. Do not expect it on every trade — it represents the highest-conviction conditions.
The SuperTrend bounce signal works best in established trends. In choppy markets, bounces may fail.
Fan crosses (fast median vs slow median) are the GMMA equivalent of MA crossovers — they confirm trend changes but lag the actual turn.
The EMA 200 filter is a macro-level gate. Ignoring it means trading against the larger trend, which reduces probability.
Use the fan spread dynamics to time entries — entering when the fan is expanding gives you momentum. Entering when it is contracting means you are fighting exhaustion.
The confluence count (0-5) is a quick decision filter. 4-5 = high conviction. 2-3 = moderate. 0-1 = low conviction.
Limitations
EMAs are lagging indicators. Full fan alignment is confirmed after the trend has already started, not at the exact turn.
The 19-EMA system uses significant computational resources. On very long charts with many bars, loading may be slower.
Pivot-center SuperTrend depends on pivot detection, which has an inherent delay equal to the pivot period.
Fan alignment can persist in overextended trends. Full alignment does not mean the trend will continue indefinitely.
The RSI filter can occasionally prevent valid signals during strong momentum divergences.
The indicator is optimized for trending markets. In range-bound conditions, the fan will be tangled and few signals will fire — which is by design.
EMA periods are fixed (3-23 fast, 25-60 slow). Different instruments or timeframes might benefit from different period sets, but the GMMA standard periods are well-tested across markets.
Technical Implementation
Built with Pine Script v6 using:
19 EMA calculations at global scope (11 fast + 8 slow) for Pine v6 compliance
Pivot-based SuperTrend center with exponentially weighted pivot averaging
Granular alignment counting (0-10 fast, 0-7 slow) for trend strength scoring
Fan spread normalization by ATR for cross-instrument comparability
8-tier priority signal system with cooldown-based anti-overlap
Separate cooldown tracking for SuperTrend bounce signals
4-layer neon glow rendering for SuperTrend and EMA 200
Holographic ribbon fill between fan extremes
Multi-tier candle coloring based on confirmation level
barstate.isconfirmed gating on all signal generation
9 alert conditions covering alignment changes, fan crosses, SuperTrend flips, confirmed signals, and fan expansion
Originality Statement
This indicator is original in its synthesis of the GMMA fan concept with pivot-center SuperTrend and quantified trend scoring. While GMMA and SuperTrend are established concepts, this indicator is justified because:
The pivot-center SuperTrend uses a weighted average of actual market pivots rather than simple HL2, creating a more structurally responsive trend line
The trend strength score (0-100) quantifies fan alignment into a single actionable metric with three weighted components
Fan spread dynamics (expansion/contraction tracking normalized by ATR) provide momentum acceleration/deceleration information not available in standard GMMA implementations
The 8-tier priority signal system with separate cooldown tracking for SuperTrend bounces prevents visual clutter while capturing all significant events
RSI momentum filtering and EMA 200 macro gating create a multi-layer confirmation framework that reduces false signals
The confluence count (0-5) provides an instant assessment of how many independent factors agree
The Cyberpunk theme with 4-layer neon glow and holographic ribbon creates a distinctive visual identity where trend strength is immediately apparent from the fan's visual character
Disclaimer
This indicator is provided for educational and informational purposes only. It is not financial advice or a recommendation to buy or sell any financial instrument. Moving average systems identify trends after they have started — they do not predict trend changes in advance. Full fan alignment can occur in overextended trends that are about to reverse. SuperTrend bounces can fail. Past alignment patterns do not guarantee future trend behavior. Always use proper risk management and never risk more than you can afford to lose. The author is not responsible for any losses incurred from using this indicator.
-Made with passion by officialjackofalltrades
Indicator

Pinnacle Structure Cipher [JOAT]Pinnacle Structure Cipher
Introduction
The Pinnacle Structure Cipher is an open-source market structure analysis indicator built in Pine Script v6. It detects and visualizes the core building blocks of institutional price action: swing highs and lows, Break of Structure (BOS), Change of Character (CHoCH), Fair Value Gaps (FVG), Order Blocks (OB), displacement candles, Equal Highs/Lows (EQH/EQL), and Premium/Discount zones. Rather than stacking separate indicators for each concept, this tool unifies them into a single coherent overlay with a shared structure engine, consistent visual language, and a real-time HUD dashboard.
The indicator is designed for traders who study how price builds and breaks structure, where institutional footprints appear in the form of imbalances and reaction zones, and how to identify high-probability areas where price is likely to react. Every signal is gated behind confirmed bar close logic to prevent repainting.
Why This Indicator Exists
Most retail traders use separate tools for structure detection, FVG mapping, and order block identification. The problem is that these concepts are deeply interconnected. A Break of Structure only matters in the context of the swing it broke. A Fair Value Gap is most relevant when it forms during a displacement candle that also created an Order Block. Equal Highs become significant when they sit at the boundary of a Premium zone.
This indicator solves that fragmentation by running all concepts through a single structure engine:
Swing Tracking: Pivot-based swing high/low detection with configurable lookback, tracking the last two swings on each side for pattern recognition (higher highs, lower lows, etc.)
BOS/CHoCH Detection: Structural breaks are classified as continuation (BOS) when price breaks a swing in the current trend direction, or reversal (CHoCH) when price breaks against the trend. This distinction is critical for understanding whether the market is continuing or shifting character.
Fair Value Gaps: Three-candle imbalances where a gap exists between candle 1's high and candle 3's low (bullish) or candle 1's low and candle 3's high (bearish). Gaps are filtered by a minimum ATR-based size threshold to eliminate noise. The indicator tracks whether each FVG has been filled by subsequent price action.
Order Blocks: The last opposing candle before a strong directional move, confirmed by volume exceeding the 20-bar average. OB zones are drawn as boxes and tracked for mitigation when price returns to the zone.
Displacement Candles: Large-body candles (body >= 70% of range, body >= 1.8x the 20-bar average body) that indicate aggressive institutional order flow. These often coincide with the creation of FVGs and OBs.
EQH/EQL Detection: When two consecutive swing highs or lows are within an ATR-based tolerance of each other, the indicator identifies them as Equal Highs or Equal Lows — key liquidity targets where stop orders tend to cluster. These are drawn as dashed lines and automatically removed when swept.
Premium/Discount Zones: The range between the last swing high and swing low is divided at the equilibrium (50%) level. The upper half is labeled Premium (where sellers have an edge), the lower half is Discount (where buyers have an edge). An equilibrium line marks the midpoint.
How the Structure Engine Works
The core of this indicator is a swing-based structure tracking system. Here is how swing detection feeds into BOS/CHoCH classification:
// Pivot-based swing detection
float swH = ta.pivothigh(high, i_swingLen, i_swingLen)
float swL = ta.pivotlow(low, i_swingLen, i_swingLen)
// Track last two swings for pattern recognition
if not na(swH)
prevSH := lastSH
lastSH := swH
if not na(swL)
prevSL := lastSL
lastSL := swL
The indicator maintains a structural trend variable. When price closes above the last swing high in a bullish or neutral structure, that is a BOS Long (trend continuation). When price closes below the last swing low while the structure was bullish, that is a CHoCH Short (character change — potential reversal). This classification helps traders distinguish between moves that confirm the existing trend and moves that signal a shift.
Fair Value Gap Mechanics
FVGs represent price inefficiencies — areas where the market moved so aggressively that it left a gap in the price ladder. The indicator detects these using the classic three-candle pattern:
Bullish FVG: Current candle's low is above the high of two candles ago, creating a gap. The directional candle in the middle must be bullish.
Bearish FVG: Current candle's high is below the low of two candles ago. The middle candle must be bearish.
Size Filter: The gap must be at least a configurable multiple of ATR (default 0.3x) to filter out insignificant micro-gaps.
Fill Tracking: When price returns to close the gap (low touches the bottom of a bullish FVG, or high touches the top of a bearish FVG), the box is visually faded to indicate mitigation.
Cleanup: Oldest FVGs are automatically removed when the maximum count is exceeded, keeping the chart clean.
Order Block Detection
Order Blocks are identified as the last opposing candle before a strong move. The detection logic requires:
A bearish candle followed by a bullish candle that closes above the bearish candle's high (bullish OB), or vice versa
The engulfing move must be proportional — the bullish candle's body must exceed the bearish candle's body multiplied by a configurable factor
Volume on the signal candle must exceed the 20-bar average volume, confirming institutional participation
Mitigation is tracked: when price returns to the OB zone after at least 3 bars, the box is faded and its border becomes dashed
Institutional Signal Detection
Beyond structure and zones, the indicator detects several institutional candle patterns and order flow signals:
Volume-Confirmed Engulfing: Classic engulfing patterns where the engulfing candle's body exceeds the prior candle's body and volume is above average
Wyckoff Spring/Upthrust: Price sweeps below a swing low (Spring) or above a swing high (Upthrust) and closes back inside, with high volume — classic accumulation/distribution signals
Absorption: High volume with small range (Effort vs Result from Wyckoff theory) — indicates institutional absorption where large orders are being filled without moving price
CVD Divergence: When Cumulative Volume Delta diverges from price (price makes new high but CVD does not), suggesting hidden distribution or accumulation
Delta Surge: When the buy/sell volume ratio exceeds 40% in either direction, indicating strong directional conviction
All signals use a priority-based cooldown system to prevent label stacking. Higher-priority signals (liquidity grabs, springs) suppress lower-priority ones (engulfing, delta) within a configurable cooldown window.
Visual Design
The indicator uses an "Emerald Matrix" color theme — a cohesive palette built around matrix greens, jade, mint, amber warnings, and cyan highlights on a dark background:
FVG Boxes: Dotted-border boxes in jade (bullish) or red (bearish) with high transparency. Filled FVGs fade to grey.
OB Boxes: Solid-border boxes in cyan (bullish) or red (bearish) with "OB" text labels. Mitigated OBs become dashed grey.
BOS/CHoCH Labels: Small labels at the break level with dashed reference lines extending forward
EQH/EQL Lines: Dashed lines at equal high/low levels that auto-extend and auto-delete when swept
Premium/Discount Zones: Very subtle background shading (94% transparency) with text labels and a dotted equilibrium line
Displacement Markers: Small circles below (bullish) or above (bearish) displacement candles
Candle Coloring: Multi-factor coloring based on displacement > structure trend > neutral
HUD Dashboard
A real-time table displays 16 metrics including:
Current regime state and structural trend direction
SMA alignment (20/50/200) and RSI value
Structure score (0-100) computed from trend state, swing patterns, active FVG/OB count, volume, alignment, and delta
Volume ratio and delta flow direction
Imbalance pressure classification
Wyckoff Effort/Result ratio
VWAP band position and volatility state
Active FVG and OB counts
Current swing high and low levels
Weighted institutional bias (BULL/BEAR/NEUTRAL) computed from all active signals
Input Parameters
Structure:
Swing Lookback: Pivot detection length (default: 5)
Confirmed Bars Only: Toggle to gate all signals behind bar close confirmation
Sensitivity: 1 (loose) to 3 (tight) — adjusts detection thresholds across all modules
Fair Value Gaps:
Show FVGs: Toggle visibility
Max FVG Zones: Maximum tracked (default: 10)
Track FVG Fill: Enable/disable fill detection
Min FVG Size: Minimum gap as ATR multiple (default: 0.3x)
Order Blocks:
Show OBs: Toggle visibility
Max OB Zones: Maximum tracked (default: 8)
OB Body Multiplier: Minimum engulfing ratio (default: 1.5x)
Advanced:
Show EQH/EQL: Equal highs/lows detection
EQ Tolerance: ATR-based tolerance for "equal" classification (default: 0.3x)
Show Premium/Discount Zones
Show Swing Level Lines
Show Displacement Markers
Show Institutional Signals with configurable cooldown
Bar Coloring toggle
HUD Panel toggle
How to Use This Indicator
Step 1: Identify the Structural Trend
Check the HUD for the current structure direction (Bullish/Bearish/Neutral). Look at the swing pattern — are you seeing higher highs and higher lows, or lower highs and lower lows?
Step 2: Watch for BOS or CHoCH
A BOS confirms the trend is continuing. A CHoCH warns that the trend may be reversing. CHoCH signals are particularly valuable when they occur at Premium/Discount zone boundaries.
Step 3: Identify Reaction Zones
Look for unfilled FVGs and unmitigated OBs in the direction of the structural trend. These are areas where price is likely to react. A bullish FVG in a bullish structure is a potential long entry zone.
Step 4: Confirm with Institutional Signals
Wait for confirmation signals like displacement candles, volume-confirmed engulfing patterns, or Wyckoff springs/upthrusts at your identified zones.
Step 5: Use EQH/EQL as Targets
Equal Highs and Equal Lows represent liquidity pools. In a bullish structure, EQH levels above price are likely targets. In a bearish structure, EQL levels below are targets.
Best Practices
Use on liquid instruments where volume data is meaningful (major forex pairs, large-cap stocks, crypto majors)
Higher timeframes (15m+) produce more reliable structure signals than very low timeframes
FVGs and OBs are most significant when they form during displacement candles
Not all BOS signals are equal — BOS with high volume and displacement carries more weight than a quiet break
CHoCH at Premium/Discount boundaries is a higher-probability reversal signal
The structure score in the HUD provides a quick read on overall market conviction — scores above 70 suggest strong directional conditions
Use the sensitivity input to adjust for different instruments — volatile instruments may need lower sensitivity
Limitations
Swing detection has an inherent delay equal to the lookback period — pivots are confirmed only after the right-side bars have formed
Volume-based filters (OB confirmation, delta, absorption) require reliable volume data. Instruments with poor volume reporting will produce less reliable signals
FVG and OB zones are probabilistic reaction areas, not guaranteed reversal points. Price can and does blow through zones
The buy/sell volume split is estimated from candle structure (close vs open), which is an approximation of true order flow
During low-liquidity periods (overnight, holidays), structure signals may be less reliable
The indicator works best when used as part of a broader analysis framework, not as a standalone entry system
Technical Implementation
Built with Pine Script v6 using:
All ta.* function calls at global scope for Pine v6 compliance
Array-based zone tracking with parallel arrays for FVG and OB properties
Automatic cleanup: oldest zones are deleted when max count is exceeded
barstate.isconfirmed gating on all signal generation to prevent repainting
request.security() with lookahead=barmerge.lookahead_off for prior day/week levels
Priority-based signal cooldown system to prevent visual clutter
Pre-computed boolean conditions with deferred drawing for performance
14 alert conditions covering BOS, CHoCH, liquidity grabs, springs, absorption, delta surges, displacement, and regime changes
Originality Statement
This indicator is original in its unified architecture approach. While individual concepts like BOS/CHoCH, FVG, and OB detection exist in other scripts, this indicator is justified because:
It runs all structure concepts through a single swing engine, ensuring consistency between BOS/CHoCH classification and zone creation
The priority-based signal system with cooldowns prevents the visual clutter that plagues most multi-concept indicators
FVG and OB mitigation tracking provides dynamic zone lifecycle management — zones are not static; they evolve as price interacts with them
The structure score synthesizes swing patterns, zone activity, volume, alignment, and delta into a single 0-100 metric
EQH/EQL detection with automatic sweep deletion creates self-cleaning liquidity maps
Institutional signal detection (Wyckoff spring/upthrust, absorption, CVD divergence) is integrated with the structure engine rather than bolted on separately
The Emerald Matrix theme provides a cohesive visual identity where every color choice carries meaning (green = bullish structure, red = bearish, amber = warning, cyan = highlight)
Disclaimer
This indicator is provided for educational and informational purposes only. It is not financial advice or a recommendation to buy or sell any financial instrument. Market structure analysis is a framework for understanding price behavior, not a prediction system. BOS, CHoCH, FVG, and OB signals do not guarantee future price movement. Past structural patterns do not guarantee they will repeat. Always use proper risk management and never risk more than you can afford to lose. The author is not responsible for any losses incurred from using this indicator.
-Made by officialjackofalltrades
Indicator

Stratum Depth Profile [JOAT]Stratum Depth Profile
Introduction
The Stratum Depth Profile is an open-source volume profile indicator built in Pine Script v6. It calculates and displays a real-time Volume Profile histogram directly on the price chart, identifying the Point of Control (POC), Value Area High (VAH), Value Area Low (VAL), and classifying price zones as High Volume Nodes (HVN) or Low Volume Nodes (LVN). The indicator separates buying and selling volume within each price level, calculates a context score based on where price sits relative to the profile, and detects institutional signals like POC reclaims, Value Area breakouts, absorption events, and delta imbalances.
Unlike simple volume bars beneath the chart, this indicator maps volume across price levels to show where the most trading activity occurred. The POC represents the price level with the highest traded volume — a natural magnet for price. The Value Area contains the configurable percentage (default 70%) of total volume, defining the range where most participants agreed on value. Price outside the Value Area is in a statistical extreme and tends to revert or accelerate.
Why This Indicator Exists
Volume Profile is one of the most powerful tools in institutional trading, but most implementations on PulseWire either require paid subscriptions, lack delta separation, or do not provide context scoring. This indicator addresses those gaps:
Full Volume Profile Calculation: Bins volume across configurable price levels over a lookback period, producing a true histogram of volume by price
Bull/Bear Delta Separation: Each price level's volume is split into buying volume (close > open candles) and selling volume (close < open candles), revealing who controls each level
POC / VAH / VAL Detection: Automatically identifies the Point of Control and expands outward to find the Value Area boundaries containing the specified percentage of total volume
Context Scoring: A 0-100 score based on price position relative to the profile (above VAH, at POC, below VAL, etc.) combined with SMA alignment, giving a quick read on the current market context
Institutional Signal Detection: POC Reclaim, POC Rejection, VA Breakout, Absorption, Delta Imbalance, and Zone Shift events with anti-overlap cooldowns
HVN/LVN Classification: Identifies which price levels have concentrated volume (support/resistance) versus thin volume (fast-move zones)
How Volume Profile Calculation Works
The indicator divides the price range of the lookback period into a configurable number of rows (default 24). For each bar within the lookback, it determines which price bin the bar's activity falls into and accumulates volume. The calculation separates bullish and bearish volume:
// For each bar in the lookback, assign volume to the appropriate price bin
// Bullish volume: bars where close > open
// Bearish volume: bars where close < open
// POC = price bin with the highest total volume
// Value Area = expand from POC until cumulative volume >= vaPct% of total
The POC is the single price level where the most volume was traded — it acts as a magnet because it represents the price at which the most participants found value. The Value Area expands symmetrically from the POC, adding the next-highest adjacent bins until the specified percentage of total volume is captured.
Bull/Bear Delta at Each Level
What makes this profile unique is the delta separation within each price bin. Instead of just showing total volume, the histogram displays bullish volume (green/teal) and bearish volume (pink/red) side by side at each price level. This reveals:
A POC dominated by buying volume suggests buyers control the key level — bullish bias
A POC dominated by selling volume suggests distribution — bearish bias
VAH with heavy selling indicates resistance with institutional distribution
VAL with heavy buying indicates support with institutional accumulation
Levels where bull and bear volume are roughly equal indicate genuine two-way auction — balanced market
Context Scoring System
The context score (0-100) provides an at-a-glance assessment of the current market state relative to the volume profile:
Price Zone Component: Where price sits relative to POC, VAH, and VAL. Price above VAH or below VAL scores higher (trending/breakout conditions). Price near POC scores for mean-reversion potential.
SMA Alignment Component: Whether the 20, 50, and 200 SMAs are aligned in a trending configuration. Full bull alignment (20 > 50 > 200) or bear alignment adds to the score.
POC Proximity: How close price is to the POC level — useful for identifying mean-reversion opportunities or confirming that price is at a key decision point.
Delta Direction: Whether the current cumulative delta supports the price direction.
Institutional Signals
The indicator detects six types of institutional events, each with anti-overlap cooldowns to prevent label stacking:
POC Reclaim: Price crosses above the POC after being below it — indicates buyers are reclaiming the most-traded level, often a bullish continuation signal
POC Rejection: Price approaches the POC and reverses away — the POC is acting as resistance or support
VA Breakout: Price closes outside the Value Area — a statistical extreme that often leads to trend continuation or a sharp reversion
Absorption: High volume with small price range (Wyckoff Effort vs Result) — institutional orders are being filled without moving price, often preceding a directional move
Delta Imbalance: The buy/sell volume ratio at the current level is heavily skewed, indicating one-sided institutional flow
Zone Shift: The Value Area boundaries shift significantly between profile recalculations, indicating a change in the accepted value range
Visual Design
The indicator uses a "Midnight Neon" color theme with electric blues, hot pinks, neon violets, and lime accents on a dark background:
VP Histogram: Horizontal bars drawn as boxes, with bull volume in neon teal and bear volume in hot pink. A sin-based gradient provides smooth color transitions across the histogram.
POC Line: Bright electric blue line at the highest-volume price level, with a label showing the exact price
VAH/VAL Lines: Neon violet lines marking the Value Area boundaries
SMA Lines: 20/50/200 SMAs with neon glow effect for trend context
Signal Labels: Color-coded labels for each institutional signal type with cooldown-based anti-overlap
Context Score: Displayed in the HUD with color coding (green for high scores, amber for moderate, red for low)
HUD Dashboard
The real-time HUD displays key metrics:
POC price level and proximity state (At POC, Near POC, Away)
VAH and VAL price levels with current zone (Above VA, In VA, Below VA)
Context Score (0-100) with color coding
POC Delta direction (Buyers/Sellers/Balanced)
Current Delta value and direction
Effort/Result ratio (Wyckoff absorption detection)
SMA Alignment state (Bull Aligned, Bear Aligned, Mixed)
Volume Ratio (current vs 20-bar average)
Imbalance classification
Input Parameters
Volume Profile:
Lookback (bars): Number of bars to calculate the profile over (default: 100)
Price Levels: Number of horizontal bins to divide the price range into (default: 24)
Value Area %: Percentage of total volume to include in the Value Area (default: 70%)
Display:
Display Mode: Full (histogram + lines), Minimal (lines only), or Off
Histogram Width: How many bars wide the histogram extends (default: 12)
Show SMA Lines: Toggle 20/50/200 SMA overlay
Show Signals: Toggle institutional signal labels
Signal Cooldown: Minimum bars between signals (default: 5)
Show HUD Panel: Toggle the information dashboard
How to Use This Indicator
Step 1: Identify the Value Area
The area between VAH and VAL represents where 70% of volume was traded. Price inside this range is in "fair value." Price outside is in a statistical extreme.
Step 2: Watch the POC
The POC is the strongest magnet on the chart. If price is away from the POC, expect a pull back toward it unless strong momentum keeps price moving. If price is at the POC, watch for a directional break.
Step 3: Read the Delta
Check whether the POC is buyer-dominated or seller-dominated. A buyer-dominated POC in a bullish SMA alignment is a strong confluence for longs. A seller-dominated POC with bearish alignment favors shorts.
Step 4: Use Signals for Timing
POC Reclaim and VA Breakout signals provide timing for entries. Absorption signals warn that a move is being loaded. Delta Imbalance confirms directional conviction.
Step 5: Context Score for Quick Assessment
A context score above 70 suggests strong directional conditions. Below 30 suggests choppy or mean-reverting conditions. Use this to decide whether to trade aggressively or wait.
Best Practices
Volume Profile is most meaningful on instruments with reliable volume data — major forex pairs, large-cap equities, crypto majors
The lookback period should match your trading timeframe. Day traders might use 50-100 bars on a 5-minute chart. Swing traders might use 100-200 bars on a 1-hour chart.
More price levels (rows) give finer resolution but can make the histogram harder to read. 20-30 rows is a good balance.
The POC is not a guaranteed support/resistance level — it is a probability zone. Use it with other confluence factors.
VA Breakouts can be false. Confirm with volume and momentum before trading a breakout above VAH or below VAL.
The delta separation is estimated from candle direction (close vs open), which is an approximation. True tick-level delta requires exchange data not available in Pine Script.
During low-volume periods, the profile may be less representative of true institutional positioning.
Limitations
Volume Profile calculation is computationally intensive. Very large lookback periods (500+ bars) with many price levels may slow chart loading.
The profile is recalculated on each bar, so the POC and VA boundaries can shift as new volume data arrives. This is by design — the profile reflects the most current volume distribution.
Buy/sell volume separation uses candle direction as a proxy, not actual order flow data. This is the standard approximation available in Pine Script.
The indicator draws boxes for the histogram, which counts against PulseWire's drawing object limits. The max_boxes_count is set to 500.
On instruments with inconsistent volume reporting (some forex brokers, illiquid stocks), the profile may not accurately represent true volume distribution.
The context score is a heuristic, not a statistical model. It provides a useful summary but should not be the sole basis for trading decisions.
Technical Implementation
Built with Pine Script v6 using:
Custom volume profile calculation with configurable resolution and lookback
Bull/bear volume separation at each price bin
Value Area expansion algorithm (symmetric outward from POC)
Pre-allocated drawing objects updated via set() methods for performance
Sin-based gradient coloring for smooth histogram visual transitions
barstate.isconfirmed gating on all signal generation
Anti-overlap cooldown system for institutional signals
SMA alignment scoring integrated with profile-based context
Alert conditions for POC Reclaim, VA Breakout, Absorption, Delta Imbalance, and Zone Shift
Originality Statement
This indicator is original in its integration of volume profile analysis with institutional signal detection and context scoring. While volume profile calculation is a known concept, this indicator is justified because:
It combines VP histogram visualization with real-time bull/bear delta separation at each price level, revealing who controls each zone
The context scoring system synthesizes price position, SMA alignment, POC proximity, and delta direction into a single actionable metric
Institutional signal detection (POC Reclaim, Absorption, Delta Imbalance) is derived directly from the volume profile data rather than being a separate overlay
The sin-based gradient coloring and Midnight Neon theme provide clear visual hierarchy without the visual noise common in VP indicators
Pre-allocated drawing objects with set() updates provide significantly better performance than creating/deleting objects each bar
The HVN/LVN classification helps traders quickly identify where price will find support/resistance versus where it will move quickly
Disclaimer
This indicator is provided for educational and informational purposes only. It is not financial advice or a recommendation to buy or sell any financial instrument. Volume Profile analysis shows where volume was traded historically — it does not predict where price will go. The POC, VAH, and VAL are probability zones, not certainties. Past volume distributions do not guarantee future price behavior. Always use proper risk management and never risk more than you can afford to lose. The author is not responsible for any losses incurred from using this indicator.
-Made by officialjackofalltrades
Indicator

AG Pro Structural Momentum Oscillator [AGPro Series]AG Pro Structural Momentum Oscillator
OVERVIEW
AG Pro Structural Momentum Oscillator evaluates momentum through price structure instead of relying on a standard oscillator formula alone. The goal is not to duplicate a classic RSI, MACD, or stochastic workflow, but to study how price behaves internally: where bars close within their own range, how upper and lower wicks are distributed, how efficiently directional travel develops, and whether pullbacks remain controlled or start to damage the underlying move.
This produces a structure-based momentum reading that is designed to help users distinguish between constructive directional pressure, weak or unstable movement, and transition phases. In practice, the oscillator is intended for traders who want more context than a simple overbought/oversold style reading, while still keeping the visual experience compact and readable in a separate pane.
The model is normalized into a clean oscillator format and supported by an optional panel that exposes the internal components behind the headline score. This makes the script easier to inspect without turning it into a crowded dashboard. The result is a momentum tool that remains chart-friendly while still offering transparency about what is driving the current state.
WHAT THIS SCRIPT DOES
This script builds a composite momentum score from structural price behavior. Instead of measuring momentum only through smoothed distance or rate-of-change logic, it examines whether bars are closing with quality, whether wick balance supports continuation or rejection, whether the move is advancing efficiently, whether counter-moves are being absorbed, and whether directional pressure is persisting across the selected lookback.
The oscillator is shown in a separate pane so that the price chart remains clean. Stronger bullish conditions push the reading toward the upper zone, stronger bearish conditions push it toward the lower zone, and transitional behavior tends to cluster around the middle band. Optional markers can highlight structural shifts, expansion entries, and midline events, while the panel can display both the current state and the underlying component scores.
UNIQUE EDGE
The core idea here is structure-based momentum assessment.
This script does not attempt to repackage a traditional oscillator with cosmetic changes. Its momentum reading is built from several structural observations working together:
- close quality within the bar range
- wick pressure balance
- impulse efficiency
- pullback control
- directional persistence
That combination is what makes the oscillator different. It is not asking only whether price moved. It is asking how price moved, whether that movement was internally supportive, and whether the recent sequence of bars reflects constructive continuation or unstable friction.
Because of that design, the oscillator can be useful in situations where traders want additional confirmation around trend continuation, weakening follow-through, or state transitions, without depending on a single legacy oscillator formula.
METHODOLOGY
The composite score is built from a weighted structural model.
1) Close Quality
This measures where the bar closes relative to its own range. Bars that close with directional conviction contribute more positively or negatively than bars that finish in weak or indecisive positions.
2) Wick Pressure
This evaluates the balance between upper and lower wick behavior. It helps estimate whether rejection pressure is supporting the current direction or working against it.
3) Impulse Efficiency
This compares net directional progress against recent travel. Large movement alone is not treated as strength if the structure is inefficient or overly noisy.
4) Pullback Control
This examines whether counter-direction movement remains contained or begins to undermine the active directional leg.
5) Persistence
This tracks whether structural bias has been holding together across the recent window instead of flipping constantly from bar to bar.
These components are normalized and combined into a structural momentum oscillator score. The separate panel allows users to inspect the same internal drivers individually, which can be helpful when the headline reading is near transition levels.
SIGNALS AND ALERTS
The oscillator can be used visually or through alerts.
Depending on settings, the script can monitor:
- bullish structural shifts
- bearish structural shifts
- bullish expansion entries
- bearish expansion entries
- midline events
Optional markers can be displayed directly in the oscillator pane. The legend row in the panel explains what each marker type represents. Users who prefer a cleaner presentation can disable markers or legend items from the settings.
As with most technical tools, signals are best interpreted in context. A structural shift is not the same thing as a trade command. It is an analytical event showing that the model detected a meaningful change in the balance of recent price behavior.
KEY INPUTS
The script includes the following input groups:
- structure length
- persistence window
- pullback window
- smoothing
- expansion thresholds
- panel visibility and font size
- signal marker mode
- marker legend visibility
- marker cooldown
These controls allow the user to keep the oscillator relatively clean by default, or expose more information when deeper inspection is needed.
HOW TO READ IT
A higher reading generally indicates stronger constructive bullish structure. A lower reading generally indicates stronger constructive bearish structure. Readings near the middle zone typically represent mixed or transitional behavior rather than strong directional consensus.
The panel state labels are designed to summarize that environment in plain language. The component rows below the headline score can help explain why the state is strong, weak, improving, or deteriorating.
In general, the oscillator is most useful when read together with price structure, trend context, and nearby technical levels, rather than in complete isolation.
LIMITATIONS AND TRANSPARENCY
This script is an analytical aid, not a predictive engine.
It does not know future price direction. It only evaluates the recent structural character of price action according to its own model. Like any momentum-based tool, it can react quickly during strong directional phases and become less reliable during noisy, event-driven, or highly erratic conditions.
Different symbols and timeframes can also produce different structural behavior. Users should expect to adjust settings where appropriate and validate how the oscillator behaves on the markets they follow.
The script is designed to provide a structured interpretation of momentum, but it should not be treated as a guarantee of continuation, reversal, or trade outcome.
RISK DISCLOSURE
This indicator is provided for chart analysis, research, and educational use only. It does not provide financial advice, investment advice, or guaranteed signals. All trading decisions remain the sole responsibility of the user. Technical indicators should be used with risk management and broader market context, not as standalone certainty tools. Indicator

Vestige Liquidity Terrain [JOAT]Vestige Liquidity Terrain
Introduction
The Vestige Liquidity Terrain is an open-source liquidity analysis indicator built in Pine Script v6. It detects, scores, and tracks liquidity zones — price levels where resting stop orders and limit orders tend to cluster — using pivot-based detection, volume-weighted intensity, a multi-factor scoring system, sweep tracking, and trade planning overlays. The indicator identifies where liquidity exists, how strong each zone is, whether it has been swept, and which zones are the most probable targets for price to reach next.
Liquidity is the fuel that moves markets. Institutional traders need liquidity to fill large orders, and they often engineer price moves toward areas where stop orders are concentrated. Understanding where liquidity sits, how fresh it is, and whether it has confluence with key levels gives traders a significant edge in anticipating where price is likely to travel.
Why This Indicator Exists
Most liquidity zone indicators simply draw boxes at swing highs and lows. They treat all zones equally and provide no context about which zones matter most. This indicator goes further:
Pivot-Based Zone Detection: Uses configurable left/right pivot bars to identify swing highs and lows where resting orders accumulate. Zones are padded by a tick-based distance to account for the cluster of stops around a level.
Volume-Weighted Intensity: Each zone's creation is filtered by normalized volume. Only zones formed during meaningful volume activity are tracked, filtering out noise from thin-market pivots.
Zone Merging: When a new pivot forms within a configurable tick distance of an existing zone, the zones are merged rather than stacked. This prevents redundant zones and reflects the reality that nearby levels form a single liquidity pool.
Multi-Factor Scoring (0-100): Each zone receives a dynamic score based on touches, freshness, confluence with key levels, reaction speed, session alignment, and regime context. This score determines visual prominence and whether the zone qualifies as a trade planning target.
Sweep Tracking: When price sweeps through a zone, the event is recorded. Swept zones receive a score penalty because their liquidity has been partially consumed.
Trade Planning Targets: The nearest high-scoring zones above and below current price are highlighted as potential targets, with dashed lines extending forward and score labels.
Zone Scoring System
The scoring system is what separates this indicator from basic liquidity zone tools. Each zone's score is computed from multiple factors:
Touch Score (max 60): Each time price touches a zone without sweeping it, the zone gains 12 points. More touches mean more orders have accumulated at that level. Capped at 60 to prevent over-weighting.
Freshness (max 40): Newer zones score higher. The freshness component starts at 40 and decays by 0.8 points per bar of age. Old, stale zones that have not been tested lose relevance.
Confluence (max 40): Proximity to key institutional levels adds 10 points each. The indicator checks confluence with Prior Day High, Prior Day Low, Prior Week High, Prior Week Low, VWAP, Opening Range High, and Opening Range Low. A zone that aligns with multiple key levels is significantly more important.
Reaction Speed (max 22): The ratio of fast reactions (price bouncing within 2 bars of touching the zone) to total reactions. Zones that produce quick, sharp reactions are more likely to hold in the future.
Session Alignment: The ratio of RTH (Regular Trading Hours) touches to overnight touches modifies the score. Zones tested during high-liquidity sessions carry more weight.
Score modifiers are then applied:
Recently swept zones receive a 0.55x multiplier — their liquidity is partially consumed
Midday zones without confluence receive a 0.60x penalty — low-conviction levels
Open Drive zones with few touches receive a 0.75x penalty — too early to confirm
Power Hour zones with confluence receive a 1.10x boost — high-conviction late-session levels
Trend-aligned zones receive a 1.05x boost
Mean-reversion zones without confluence receive a 0.70x penalty
Regime Detection
The indicator includes its own regime detection engine based on VWAP slope analysis:
Trend Up: VWAP slope exceeds the threshold AND price is at or above VWAP — directional momentum is present
Trend Down: VWAP slope is below the negative threshold AND price is at or below VWAP
Mean Reversion: VWAP slope is flat (within threshold) AND price is within a configurable band of VWAP — range-bound conditions
Mixed: Conditions do not clearly fit any category
The regime state feeds into the zone scoring modifiers. In a trending regime, zones aligned with the trend direction receive a boost. In mean-reversion conditions, zones without confluence are penalized because they are less likely to produce clean reactions.
A confidence percentage is calculated for each regime classification, giving traders a sense of how clearly the market fits the detected state.
Sweep Detection and Classification
When price moves through a liquidity zone, the indicator records a sweep event:
The sweep bar and price are stored for each zone
A "SWEEP" label is placed on the chart with configurable display modes (Off, First Only, Recent Only)
Swept zones receive a significant score penalty (0.55x multiplier)
A cooldown prevents multiple sweep labels from stacking on adjacent bars
The sweep price is tracked separately from the zone price, allowing analysis of how far price extended beyond the zone
Sweeps are important because they represent liquidity being consumed. A zone that has been swept once still has some residual significance (remaining orders), but its primary liquidity pool has been tapped.
Trade Planning Overlays
The indicator identifies the nearest high-scoring zones above and below current price as potential targets:
Only zones with scores above a configurable minimum (default 60) qualify as targets
Target lines are drawn as dashed lines extending forward by a configurable number of bars
Each target line includes a label showing the zone's score percentage
This gives traders a clear view of where the nearest significant liquidity sits in each direction
Visual Design
The indicator uses a "Deep Ocean" color theme — bioluminescent aqua, deep ocean blue, coral orange, tidal cyan, kelp green, and pearl white on an abyssal dark background:
Zone Boxes: Color reflects directional expectation (continuation vs rejection blend). Opacity adapts to distance from price, age, and score — nearby fresh high-score zones are more visible, distant old low-score zones fade.
Border Width: Score-based — zones scoring 80+ get 3px borders, 50+ get 2px, others get 1px
Sweep Labels: Coral-colored "SWEEP" labels at the sweep location
Target Lines: Dashed lines in bioluminescent aqua (above) and coral (below) with score labels
Key Levels: PDH/PDL, PWH/PWL drawn as reference lines with theme-aware colors
Opening Range: ORH/ORL lines marking the first N minutes of the session
VWAP: Plotted as a reference line for regime context
HUD Dashboard
The real-time HUD displays:
Key level prices and distances: PDH, PDL, PDC, PWH, PWL, ORH, ORL
Nearest liquidity targets above and below with scores
Current regime state with confidence percentage
Time-of-day classification (Open Drive, Midday, Power Hour, RTH, Off)
Active zone count
Input Parameters
Zone Detection:
Pivot Left/Right Bars: Lookback for swing detection (default: 5/3)
Max Zones Stored: Maximum tracked zones (default: 20)
Zone Padding: Tick-based padding around pivot levels (default: 6)
Merge Distance: Tick distance for merging nearby zones (default: 10)
Volume Filter: Minimum normalized volume for zone creation (Low/Mid/High)
Zone Scoring:
Min Score to Draw: Minimum score for a zone to be visible (default: 25)
Max Visible Zones: Limit on simultaneously displayed zones (default: 10)
Reaction Window: Bars to check for reaction after touch (default: 6)
Reaction Move: Tick threshold for a valid reaction (default: 14)
Fast Reaction: Maximum bars for a "fast" reaction classification (default: 2)
Context:
VWAP Slope Length: Lookback for regime detection (default: 20)
Trend Slope Threshold: Minimum slope for trend classification
Mean-Reversion Band: Maximum distance from VWAP for MR classification
Time-of-Day periods: Open Drive, Midday, Power Hour boundaries
Trade Planning:
Min Score for Targets: Minimum zone score to qualify as a target (default: 60)
Extend Bars: How far forward target lines extend (default: 200)
How to Use This Indicator
Step 1: Identify High-Score Zones
Focus on zones with scores above 60. These have multiple touches, are relatively fresh, and have confluence with key levels. They represent the most significant liquidity pools.
Step 2: Check the Regime
In a trending regime, liquidity zones in the trend direction are more likely to be swept (taken out) as price reaches for stops. In mean-reversion conditions, zones are more likely to produce bounces.
Step 3: Use Targets for Trade Planning
The trade planning lines show you where the nearest significant liquidity sits. In a long trade, the target above is your potential take-profit area. The target below is where your stop might be hunted.
Step 4: Watch for Sweeps
When a zone is swept, its liquidity has been consumed. This often precedes a reversal as the institutional objective (filling orders) has been achieved. A sweep at a high-score zone with confluence is a particularly strong reversal signal.
Step 5: Monitor Zone Lifecycle
Zones are born, tested, and eventually swept or aged out. Fresh zones with rising touch counts are gaining significance. Old zones with no recent touches are losing relevance. The scoring system handles this automatically.
Best Practices
Liquidity analysis works best on instruments with reliable volume data and sufficient market depth
Higher-timeframe zones (1H, 4H) tend to be more significant than lower-timeframe zones
Zones with confluence (near PDH/PDL, PWH/PWL, VWAP) are significantly more reliable than isolated zones
Not all sweeps lead to reversals — sometimes price sweeps through and continues. Confirm with other analysis.
The regime detection helps contextualize zones but is not infallible. Use it as one input among many.
Adjust the volume filter based on your instrument. Highly liquid instruments may need "High" to filter noise. Less liquid instruments may need "Low" to detect zones at all.
The merge distance should be calibrated to your instrument's typical spread and tick size
Limitations
Pivot-based zone detection has an inherent delay equal to the right-bar lookback period
The scoring system uses heuristics, not a statistical model. Scores indicate relative importance, not probability.
Volume-based filtering requires reliable volume data. Forex volume from most brokers represents tick volume, not true exchange volume.
Zone merging can occasionally combine zones that a manual analyst would keep separate
The indicator tracks a maximum number of zones. In very active markets, older zones may be pruned before they are swept.
Sweep detection is based on price crossing through the zone boundary. It does not distinguish between genuine institutional sweeps and random price fluctuations through a level.
Time-of-day and session features are most relevant for instruments with clear session structures (equities, futures). 24-hour markets like crypto may benefit less from session-based scoring.
Technical Implementation
Built with Pine Script v6 using:
16 parallel arrays for comprehensive zone data tracking (price, type, touches, scores, reactions, etc.)
Zone merging algorithm that consolidates nearby pivots into single liquidity pools
Multi-factor scoring function with session, regime, and time-of-day modifiers
Distance-based and age-based visual fading for clean chart presentation
Score-based border width for visual hierarchy
Directional expectation coloring (continuation vs rejection blend)
VWAP slope-based regime detection with confidence calculation
Trade planning line management with score-filtered target identification
Sweep tracking with cooldown and configurable display modes
Alert conditions for sweeps, regime changes, and high-score zone creation
Originality Statement
This indicator is original in its comprehensive liquidity zone lifecycle management. While pivot-based zone detection exists in other scripts, this indicator is justified because:
The multi-factor scoring system (touches, freshness, confluence, reaction speed, session alignment, regime modifiers) provides a quantified assessment of zone significance not available in basic zone indicators
Zone merging prevents the visual clutter of overlapping zones at similar price levels
Sweep tracking with score penalties creates a dynamic zone lifecycle — zones are born, tested, scored, swept, and aged out
Regime-aware scoring modifiers adjust zone significance based on current market conditions
Time-of-day integration (Open Drive, Midday, Power Hour) reflects the reality that liquidity behavior changes throughout the trading session
Trade planning overlays with score-filtered targets provide actionable forward-looking information
The Deep Ocean theme provides intuitive visual hierarchy where zone importance is immediately apparent from color intensity and border width
Disclaimer
This indicator is provided for educational and informational purposes only. It is not financial advice or a recommendation to buy or sell any financial instrument. Liquidity zone analysis identifies areas of probable order concentration based on historical price behavior — it does not predict future price movement. Zones can be swept without reversing, and high-score zones can fail. Past liquidity patterns do not guarantee future behavior. Always use proper risk management and never risk more than you can afford to lose. The author is not responsible for any losses incurred from using this indicator.
-Made by officialjackofalltrades
Indicator

Precision Edge System [JOAT]Precision Edge System
Introduction
The Precision Edge System is an advanced open-source multi-timeframe trading strategy that combines Opening Range Breakout, Fair Value Gap detection, Break of Structure analysis, Order Block identification, Fibonacci confluence, volatility regime classification, multi-oscillator divergence, RSI-2 mean reversion, and adaptive risk management into a unified institutional-grade trading system. This strategy helps traders capture high-probability setups by requiring multiple independent confirmation signals before entering trades, significantly reducing false signals and improving win rates.
Unlike basic strategies that rely on single indicators, this system uses a confluence scoring approach where each component contributes points toward entry decisions. Opening Range provides context, Fair Value Gaps provide entry zones, Market Structure confirms direction, Order Blocks show institutional positioning, Fibonacci shows harmonic levels, Regime Detection filters conditions, Divergence warns of reversals, and RSI-2 catches pullbacks. The strategy is designed for traders who understand that the best setups occur when multiple institutional concepts align simultaneously.
Why This Strategy Exists
This strategy addresses the fundamental challenge of trading: most single-indicator strategies produce too many false signals or miss too many opportunities. By combining multiple institutional concepts with flexible confluence requirements, this strategy reveals:
Opening Range Breakout: First 30 minutes establish institutional positioning - breakouts signal directional commitment
Fair Value Gap Retests: Price imbalances that get filled - optimal entry zones with defined risk
Break of Structure: Swing high/low breaks confirm trend direction and momentum
Order Blocks: Last opposing candle before strong moves - institutional accumulation/distribution zones
Premium/Discount Arrays: Value context showing whether price is expensive or cheap
Fibonacci Confluence: Golden Pocket and multi-wave alignment for reversal zones
Volatility Regime Detection: Trending/Ranging/Choppy classification to avoid bad conditions
Multi-Oscillator Divergence: RSI/MACD/Stochastic divergence for reversal signals
RSI-2 Mean Reversion: Extreme oversold/overbought in trends for pullback entries
Session-Based Timing: London/New York kill zones for highest liquidity
Adaptive Risk Management: Dynamic stop loss, take profit, and trailing stops based on volatility
Each component provides independent confirmation. The strategy's power comes from requiring multiple components to align before entering trades, creating high-probability setups with favorable risk-reward ratios.
Core Strategy Components
1. Opening Range Breakout (ORB) System
The Opening Range is established during the first 30 minutes of the trading session (9:30-10:00 AM by default):
// Track high/low during OR session
if inOR:
orHigh = max(high, orHigh)
orLow = min(low, orLow)
// Detect breakouts after OR established
orBreakoutUp = close > orHigh and close <= orHigh
orBreakoutDown = close < orLow and close >= orLow
Opening Range logic:
First 30 minutes = institutions establish positions
OR High/Low define the day's initial range
Breakouts above OR High = bullish bias
Breakouts below OR Low = bearish bias
OR levels used as stop loss reference points
The strategy can operate in two modes:
Breakout Required: Only trades after OR breakout (more selective)
Flexible: Trades inside OR if other confluence is strong (more frequent)
ORB contributes 2 points to confluence score when breakout occurs.
2. Fair Value Gap (FVG) Entry System
Fair Value Gaps are three-candle price imbalances that often get filled:
// Bullish FVG: Current low > 2 candles ago high
bullishFVG = low > high
fvgBullTop = low
fvgBullBottom = high
// Entry on retest
fvgBullRetest = low <= fvgBullTop and close >= fvgBullBottom
FVG entry logic:
Identifies imbalance zones where price moved too fast
Waits for price to return to the gap (retest)
Enters at gap high (bullish) or gap low (bearish)
Provides precise entry with tight stop below/above gap
FVG retest contributes 2 points to confluence score. The strategy tracks active FVGs and removes them when filled.
3. Market Structure (BOS/CHoCH) Confirmation
Break of Structure confirms trend direction:
// Detect swing highs/lows
swingPivotHigh = ta.pivothigh(high, 5, 5)
swingPivotLow = ta.pivotlow(low, 5, 5)
// BOS: Price breaks swing in trend direction
if swingPivotHigh > lastSwingHigh and bullishStructure:
bosOccurred = true // Bullish BOS
Structure logic:
Tracks swing highs and lows using pivot detection
BOS = break in trend direction (continuation)
CHoCH = break against trend (potential reversal)
Internal structure shows nested patterns for timing
The strategy can operate in two modes:
BOS Required: Only trades after structure break (more selective)
Flexible: Trades without BOS if other confluence is strong (more frequent)
BOS contributes 2 points to confluence score when it occurs.
4. Order Block Detection and Mitigation
Order Blocks mark institutional positioning zones:
// Bullish OB: Last bearish candle before strong bullish move
bullishOB = close < open and close > open and
(high - low) > atr * 1.2 and
volume > avgVol * 1.1
Order Block logic:
Identifies last opposing candle before momentum shift
Requires volume and ATR confirmation
Strength classification (Strong = 4+ points, Normal = 2-3 points)
Tracks active blocks until mitigated (price closes through)
Active Order Blocks contribute 1 point to confluence score. Strong Order Blocks (high volume + high ATR) contribute an additional 1 point.
5. Premium/Discount Array Context
Premium/Discount Arrays show value context:
rangeHigh = ta.highest(high, 50)
rangeLow = ta.lowest(low, 50)
rangeEQ = (rangeHigh + rangeLow) / 2
inPremium = close > rangeEQ and close > (rangeEQ + (rangeHigh - rangeEQ) * 0.5)
inDiscount = close < rangeEQ and close < (rangeEQ - (rangeEQ - rangeLow) * 0.5)
Value Array logic:
Calculates 50-period range high/low
Equilibrium = 50% level (fair value)
Premium = upper 50% of range (expensive)
Discount = lower 50% of range (cheap)
Institutional bias: Buy discount, sell premium
Being in discount zone contributes 1 point to long confluence. Being in premium zone contributes 1 point to short confluence.
6. Fibonacci Confluence and Golden Pocket
Fibonacci analysis identifies harmonic reversal zones:
// Calculate Fibonacci levels from swing
fib618 = swingLow + (swingHigh - swingLow) * 0.618
fib650 = fib618 * 1.052
// Golden Pocket = 0.618 to 0.65 zone
inGoldenZone = close >= min(fib618, fib650) and close <= max(fib618, fib650)
Fibonacci logic:
Calculates Fibonacci retracements from multiple swing lengths
Golden Pocket (0.618-0.65) = highest probability reversal zone
Extensions (1.272, 1.414, 1.618) used for profit targets
Confluence zones where multiple Fib levels align
Being in Golden Pocket contributes 1 point to both long and short confluence (reversal zone).
7. Volatility Regime Filter
Regime detection classifies market conditions:
atr = ta.atr(14)
atrSma = ta.sma(atr, 50)
volRatio = atr / atrSma
// Trending: EMAs aligned + normal volatility
trendStrength = (ema9 > ema21 and ema21 > ema50) or
(ema9 < ema21 and ema21 < ema50)
regime = volRatio > 1.5 ? 0 : // Choppy
trendStrength ? 2 : // Trending
1 // Ranging
Regime logic:
Trending (2): Directional market, use breakout strategies
Ranging (1): Oscillating market, use mean reversion
Choppy (0): Erratic market, avoid trading
The strategy can operate in two modes:
Avoid Choppy: No trades in choppy regime (more selective)
Trade All: Trades in all regimes if confluence is strong (more frequent)
Regime filter prevents trading in unfavorable conditions.
8. Multi-Oscillator Divergence Detection
Divergence analysis identifies momentum exhaustion:
// Bullish divergence: Price LL, RSI HL
if pricePivotLow < lastPriceLow and rsiPivotLow > lastRsiLow:
bullish_divergence = true
Divergence logic:
Regular divergence = potential reversal signal
Hidden divergence = trend continuation signal
Requires extreme zones (RSI >70 or <30) for best setups
Multi-oscillator confluence increases reliability
Bullish divergence contributes 2 points to long confluence. Bearish divergence contributes 2 points to short confluence.
9. RSI-2 Mean Reversion System
RSI-2 catches extreme pullbacks in trends:
rsi2 = ta.rsi(close, 2)
ema200 = ta.ema(close, 200)
// Long: RSI-2 oversold in uptrend
rsi2_oversold = rsi2 < 10 and close > ema200
// Short: RSI-2 overbought in downtrend
rsi2_overbought = rsi2 > 90 and close < ema200
RSI-2 logic:
2-period RSI is extremely sensitive to pullbacks
Oversold (<10) in uptrend = buy the dip
Overbought (>90) in downtrend = sell the rally
Requires 200 EMA trend filter for context
RSI-2 signals contribute 2 points to confluence score.
10. Candlestick Pattern Recognition
The strategy detects reversal patterns:
Hammer: Long lower wick, small body, bullish reversal
Shooting Star: Long upper wick, small body, bearish reversal
Bullish Engulfing: Bullish candle engulfs previous bearish candle
Bearish Engulfing: Bearish candle engulfs previous bullish candle
Morning Star: Three-candle bullish reversal pattern
Evening Star: Three-candle bearish reversal pattern
Strong patterns (with volume confirmation) contribute 2 points to confluence score.
11. Session-Based Timing (Kill Zones)
The strategy focuses on high-liquidity sessions:
London Session: 2:00-5:00 AM EST (default)
New York Session: 8:30-11:00 AM EST (default)
Silver Bullet: 9:00-10:00 AM EST (default)
Session logic:
Highest volume and volatility during these periods
Institutional participation is strongest
Better follow-through on breakouts
Can be disabled for 24-hour trading
Confluence Scoring System
The strategy uses a point-based confluence system where each component contributes points:
Long Confluence Points:
OR Breakout Up: +2 points
BOS Bullish: +2 points
FVG Bull Retest: +2 points
Active Bullish OB: +1 point
Strong Bullish OB: +1 point (bonus)
In Discount Zone: +1 point
In Golden Pocket: +1 point
RSI-2 Oversold: +2 points
Bullish Divergence: +2 points
Liquidity Below: +1 point
Volume Spike: +1 point
Bullish Momentum: +1 point
Bullish Pattern: +2 points
Entry Modes (Configurable):
Strict Mode: Requires 8+ points (very selective, highest quality)
Moderate Mode: Requires 6+ points (balanced approach)
Flexible Mode: Requires 4+ points (more frequent trades)
Aggressive Mode: Requires 3+ points (highest frequency)
This flexible system allows traders to adjust trade frequency based on their preference and market conditions.
Risk Management System
1. Stop Loss Placement:
The strategy uses intelligent stop loss placement:
OR-Based Stops: If OR is active, stop = OR Low (long) or OR High (short)
ATR-Based Stops: If no OR, stop = Entry ± (2 × ATR)
Structure-Based Stops: Can use swing lows/highs for stops
2. Position Sizing:
Risk-based position sizing:
accountRisk = strategy.equity * (riskPercent / 100) // Default 1%
riskPerShare = entry - stopLoss
positionSize = accountRisk / riskPerShare
This ensures consistent risk per trade regardless of stop distance.
3. Take Profit Targets:
Adaptive take profit based on volatility:
// Base reward multiple (default 2R)
tpMultiplier = rewardMultiple
// Increase in high volatility
if volatility_high:
tpMultiplier = rewardMultiple * 1.5
takeProfit = entry + (riskPerShare * tpMultiplier)
Default 2R target (2x risk) provides favorable risk-reward. High volatility increases target to 3R.
4. Trailing Stop System:
Adaptive trailing stop activates after profit threshold:
Activates after 1R profit (default)
Trails at breakeven + 0.5R
Locks in profits while allowing trend to run
Adjusts trail distance based on ATR
5. Time-Based Exits:
End-of-day exit prevents overnight risk:
Closes all positions at 3:55 PM EST (default)
Prevents gap risk and overnight exposure
Can be disabled for swing trading
6. Daily Trade Limit:
Maximum trades per day prevents overtrading:
Default: 10 trades per day maximum
Resets at start of each trading day
Prevents revenge trading and overexposure
Strategy Performance Metrics
The strategy displays real-time performance in the dashboard:
Confluence Scores: Current long/short confluence (0-20 scale)
OR Status: Active/Forming
Structure: Bullish/Bearish
BOS Signal: Confirmed/Pending
Regime: Trending/Ranging/Choppy
Value Zone: Premium/Discount/Equilibrium
RSI State: Overbought/Oversold/Neutral
Volatility: High/Normal/Low
Volume: Spike/High/Dry/Normal
Position: Long/Short/Flat
Net P/L: Current profit/loss
Win Rate: Percentage of winning trades
Total Trades: Number of closed trades
Profit Factor: Gross profit / Gross loss
Input Parameters
Trade Frequency:
Entry Mode: Strict/Moderate/Flexible/Aggressive
Min Confluence Score: 1-10 (lower = more trades)
Allow Partial Setups: Trade with 2/3 conditions met
Opening Range:
OR Session: Time range for OR (default 9:30-10:00)
ORB Filter: Enable/disable OR requirement
Fibonacci Extensions: Show extension levels
Breakout Required: Must break OR to trade
Market Structure:
Fractal Period: Swing detection length (default 5)
Require BOS/CHoCH: Must have structure break
Multi-TF Confluence: Check higher timeframe
Internal Structure: Show nested patterns
Order Blocks:
OB Filter: Enable/disable OB requirement
Volatility Threshold: ATR multiplier (default 1.2)
Volume Threshold: Volume multiplier (default 1.1)
Block Quality: All/Strong/Extreme
Fair Value Gaps:
FVG Entry: Enable/disable FVG entries
Min Imbalance: Percentage threshold (default 0.2%)
Zone Quality: All/Strong/Extreme
Auto-Fill Detection: Remove filled gaps
Risk Management:
Risk Per Trade: Percentage of equity (default 1%)
Reward Multiple: R multiple for TP (default 2.0)
Adaptive Take Profit: Adjust TP for volatility
EOD Exit: Close positions at end of day
Adaptive Trailing Stop: Enable trailing stops
Trail Activation: R multiple to activate (default 1.0)
Max Daily Trades: Limit trades per day (default 10)
How to Use This Strategy
Step 1: Configure Entry Mode
Choose entry mode based on desired trade frequency. Strict = fewer high-quality trades. Flexible = more frequent trades. Start with Moderate.
Step 2: Set Risk Parameters
Configure risk per trade (1% recommended), reward multiple (2R recommended), and position sizing. Never risk more than you can afford to lose.
Step 3: Enable Desired Components
Turn on/off components based on your trading style. All components enabled = most selective. Fewer components = more frequent trades.
Step 4: Monitor Dashboard
Watch confluence scores in real-time. Long score >6 = potential long setup. Short score >6 = potential short setup. Higher scores = better setups.
Step 5: Review Entry Labels
When strategy enters, it displays label with entry price, stop loss, take profit, and confluence score. Review to understand why trade was taken.
Step 6: Let Strategy Manage Exits
Strategy handles stop loss, take profit, trailing stops, and EOD exits automatically. Don't interfere with exits unless necessary.
Step 7: Analyze Performance
Review dashboard metrics regularly. Win rate >50%, profit factor >1.5, and positive net P/L indicate good performance.
Best Practices
Start with Moderate mode and adjust based on results
Higher confluence scores = higher win rates but fewer trades
Backtest thoroughly before live trading
Use realistic commission (0.075%) and slippage
Respect regime filter - avoid choppy markets
Session filter improves quality - trade kill zones
EOD exit prevents overnight risk for day traders
Daily trade limit prevents overtrading
Monitor dashboard for real-time confluence
Adjust parameters for different instruments and timeframes
Strategy Limitations
Confluence system can miss trades when components don't align
Multiple filters reduce trade frequency significantly
Backtesting results may not reflect live performance
Slippage and commission impact profitability
News events can invalidate technical setups
Regime detection may lag at transitions
Opening Range less reliable on low-volume days
Fair Value Gaps may not fill immediately
Order Blocks can fail in strong trends
Divergences can persist before reversing
The strategy shows high-probability setups, not guaranteed winners
Technical Implementation
Built with Pine Script v6 using:
Opening Range tracking with session detection
Fair Value Gap detection and retest monitoring
Market structure analysis with BOS/CHoCH detection
Order Block identification with strength classification
Premium/Discount Array calculations
Fibonacci confluence and Golden Pocket detection
Volatility regime classification system
Multi-oscillator divergence detection
RSI-2 mean reversion signals
Candlestick pattern recognition
Session-based timing filters
Confluence scoring algorithm
Adaptive risk management system
Real-time performance dashboard
The code is fully open-source and can be modified to suit individual trading styles and preferences.
Originality Statement
This strategy is original in its comprehensive institutional integration approach. While individual components (ORB, FVG, BOS, OB, Fibonacci, RSI, MACD) are established concepts, this strategy is justified because:
It synthesizes 11 distinct institutional concepts into unified confluence scoring system
The flexible entry mode system allows traders to adjust selectivity vs frequency
Adaptive risk management adjusts stops and targets based on volatility
Multi-component confluence significantly reduces false signals vs single-indicator strategies
Session-based timing focuses on high-liquidity periods for better execution
Regime filter prevents trading in unfavorable market conditions
Candlestick pattern integration adds reversal confirmation layer
Real-time dashboard presents 15 metrics simultaneously for complete strategy visibility
The strategy combines trend-following (BOS, ORB) with mean-reversion (RSI-2, Divergence) for versatility
Each component contributes independent confirmation: ORB shows context, FVG shows entry, BOS shows direction, OB shows positioning, Arrays show value, Fibonacci shows harmonics, Regime shows conditions, Divergence shows exhaustion, RSI-2 shows pullbacks, Patterns show reversals, and Sessions show timing. The strategy's value lies in requiring multiple components to align before entering trades, creating high-probability setups with favorable risk-reward ratios.
Disclaimer
This strategy is provided for educational and informational purposes only. It is not financial advice or a recommendation to buy or sell any financial instrument. Trading involves substantial risk of loss and is not suitable for all investors.
Past performance does not guarantee future results. Backtesting results are hypothetical and may not reflect actual trading performance. Actual results will vary due to slippage, commission, market conditions, and execution differences. The strategy may experience periods of drawdown and losing trades.
High confluence scores do not guarantee profitable trades. Market conditions change, and strategies that worked historically may not work in the future. News events, market shocks, and fundamental factors can override technical setups.
Always use proper risk management, including stop losses and position sizing appropriate for your account size and risk tolerance. Never risk more than you can afford to lose. Consider consulting with a qualified financial advisor before making investment decisions.
The author is not responsible for any losses incurred from using this strategy. Users assume full responsibility for all trading decisions made using this tool.
Recommended Settings for Backtesting
Initial Capital: $10,000 (realistic for average trader)
Commission: 0.075% per trade (realistic for most brokers)
Slippage: 1-2 ticks (depends on instrument liquidity)
Risk Per Trade: 1% of equity
Reward Multiple: 2R (2:1 risk-reward)
Entry Mode: Moderate (6+ confluence)
Timeframe: 5-minute or 15-minute chart
Instruments: Liquid stocks, forex majors, or major crypto
Sample Size: Minimum 100 trades for statistical significance
-Made with passion by officialjackofalltrades Strategy

Oscillator Confluence Tracker [JOAT]Oscillator Confluence Tracker
Introduction
The Oscillator Confluence Tracker is an advanced open-source multi-oscillator divergence detection indicator that combines RSI divergence analysis, MACD momentum tracking, Stochastic extreme identification, volume divergence detection, and pattern recognition into a unified smart money divergence system. This indicator helps traders identify when price and momentum are moving in opposite directions - a powerful signal that the current trend is losing strength and a reversal may be imminent.
Unlike basic oscillator indicators that simply show overbought/oversold levels, this system detects divergences across multiple oscillators simultaneously and quantifies confluence. Regular divergences signal potential reversals, hidden divergences signal trend continuation, and multi-oscillator confluence provides the highest probability setups. The indicator is designed for traders who understand that divergences reveal institutional positioning changes before they're visible in price action.
Why This Indicator Exists
This indicator addresses a critical challenge in divergence trading: single oscillator divergences produce many false signals. By combining multiple oscillators and requiring confluence, this indicator reveals:
RSI Divergence Detection: Identifies when price makes new highs/lows but RSI doesn't - signals momentum exhaustion
MACD Momentum Analysis: Tracks MACD line and histogram for momentum shifts and crossovers
Stochastic Extreme Zones: Identifies overbought (>80) and oversold (<20) conditions for context
Hidden Divergence Patterns: Detects hidden divergences that signal trend continuation rather than reversal
Volume Divergence: Identifies when price makes new highs/lows on decreasing volume - warns of weak moves
Multi-Oscillator Confluence: Quantifies how many oscillators show divergence simultaneously
Momentum Divergence: Detects when price momentum and oscillator momentum conflict
Each component provides a different lens on momentum. RSI shows relative strength, MACD shows trend momentum, Stochastic shows extremes, volume shows participation, and confluence shows conviction. Together, they create a comprehensive view of smart money divergence.
Core Components Explained
1. Regular Bearish Divergence (Price HH, RSI LH)
Regular bearish divergence occurs when price makes a higher high but RSI makes a lower high - signals uptrend exhaustion:
// Detect pivot highs in both price and RSI
pricePivotHigh = ta.pivothigh(high, 5, 5)
rsiPivotHigh = ta.pivothigh(rsi, 5, 5)
// Compare current pivot to previous pivot
if pricePivotHigh > lastPriceHigh and rsiPivotHigh < lastRsiHigh:
// Bearish divergence detected
drawDivergenceLines()
createDivergenceLabel("BEAR DIV")
The indicator identifies bearish divergence by:
Tracking swing highs in both price and RSI using pivot detection
Comparing current swing high to previous swing high
Confirming price made higher high while RSI made lower high
Drawing solid line on price chart and dashed line on RSI
Creating "BEAR DIV" label at the divergence point
Bearish divergence is most powerful when:
RSI is in overbought zone (>70) - "BEAR DIV EXTREME" label
Multiple oscillators show divergence simultaneously
Volume is decreasing on the higher high
Occurs at resistance or Fibonacci level
2. Regular Bullish Divergence (Price LL, RSI HL)
Regular bullish divergence occurs when price makes a lower low but RSI makes a higher low - signals downtrend exhaustion:
// Detect pivot lows in both price and RSI
pricePivotLow = ta.pivotlow(low, 5, 5)
rsiPivotLow = ta.pivotlow(rsi, 5, 5)
// Compare current pivot to previous pivot
if pricePivotLow < lastPriceLow and rsiPivotLow > lastRsiLow:
// Bullish divergence detected
drawDivergenceLines()
createDivergenceLabel("BULL DIV")
The indicator identifies bullish divergence by:
Tracking swing lows in both price and RSI
Comparing current swing low to previous swing low
Confirming price made lower low while RSI made higher low
Drawing solid line on price chart and dashed line on RSI
Creating "BULL DIV" label at the divergence point
Bullish divergence is most powerful when:
RSI is in oversold zone (<30) - "BULL DIV EXTREME" label
Multiple oscillators show divergence simultaneously
Volume is decreasing on the lower low
Occurs at support or Fibonacci level
3. Hidden Bullish Divergence (Price HL, MACD LL)
Hidden bullish divergence occurs when price makes a higher low but MACD makes a lower low - signals uptrend continuation:
// Price makes higher low (bullish structure)
if pricePivotLow > lastPriceLow and macdPivotLow < lastMacdLow:
// Hidden bullish divergence - trend continuation signal
drawHiddenDivergence("H-BULL")
Hidden divergences are different from regular divergences:
Signal trend continuation, not reversal
Occur during pullbacks in established trends
Show that momentum is building despite price correction
Drawn with dotted lines to distinguish from regular divergence
Labeled "H-BULL" or "H-BEAR" for clarity
Hidden divergences are powerful for:
Entering pullbacks in strong trends
Adding to winning positions
Confirming trend strength
Identifying optimal re-entry points
4. Volume Divergence Detection
Volume divergence occurs when price makes new highs/lows but volume decreases - warns of weak moves:
// Track volume at pivot highs
volPivotHigh = ta.pivothigh(volume, 5, 5)
// Price makes higher high, volume makes lower high
if pricePivotHigh > lastPriceHigh and volPivotHigh < lastVolHigh:
label.new(bar_index, high, "VOL DIV", color=COLOR_VOL_DIV)
Volume divergence reveals:
Decreasing participation in the move
Lack of institutional conviction
Potential exhaustion or trap
Warning that trend may not continue
Volume divergence combined with RSI/MACD divergence creates extremely high-probability reversal setups.
5. Momentum Divergence Analysis
Momentum divergence occurs when price momentum and oscillator momentum move in opposite directions:
rsiMomentum = ta.change(rsi, 5)
macdMomentum = ta.change(macdLine, 5)
priceMomentum = ta.change(close, 5)
// Price momentum positive but RSI momentum negative
momentumDivergence = (priceMomentum > 0 and rsiMomentum < 0) or
(priceMomentum < 0 and rsiMomentum > 0)
Momentum divergence shows:
Acceleration/deceleration conflicts
Early warning of trend changes
Momentum exhaustion before price exhaustion
Institutional positioning shifts
The dashboard displays momentum divergence status (Active/Aligned) with color coding.
6. Multi-Oscillator Confluence Scoring
The indicator quantifies confluence by counting how many oscillators show divergence simultaneously:
confluenceScore = 0
if rsi_divergence:
confluenceScore += 1
if macd_divergence:
confluenceScore += 1
if stochastic_extreme:
confluenceScore += 1
if volume_divergence:
confluenceScore += 1
if momentum_divergence:
confluenceScore += 1
// Classify confluence
confluenceLevel = confluenceScore >= 4 ? "EXTREME BULL/BEAR" :
confluenceScore >= 3 ? "STRONG BULL/BEAR" :
confluenceScore >= 2 ? "MODERATE" : "NONE"
Confluence scoring reveals:
Setup quality (higher score = higher probability)
How many independent signals confirm the divergence
Whether to take the trade (3+ recommended)
Position sizing guidance (higher score = larger size)
The dashboard displays confluence score and classification with color intensity.
7. Enhanced Candlestick Coloring
The indicator colors candles based on trend strength and momentum:
// Determine trend
trendStrength = ta.ema(close, 20)
isBullTrend = close > trendStrength
isBearTrend = close < trendStrength
// Momentum strength
momentumStrong = abs(rsiMomentum) > 5 or abs(macdMomentum) > abs(macdHist) * 0.5
// Color candles
if isBullTrend:
candleColor = momentumStrong ? COLOR_BULL_STRONG : COLOR_BULL_WEAK
else if isBearTrend:
candleColor = momentumStrong ? COLOR_BEAR_STRONG : COLOR_BEAR_WEAK
Candlestick coloring shows:
Bright green: Strong bullish momentum
Light green: Weak bullish momentum
Bright red: Strong bearish momentum
Light red: Weak bearish momentum
This provides instant visual feedback on trend and momentum strength.
Visual Elements
Divergence Lines: Solid lines on price, dashed lines on oscillator connecting pivot points
Divergence Labels: "BULL DIV", "BEAR DIV", "H-BULL", "H-BEAR" at divergence points
Extreme Labels: "BULL DIV EXTREME" or "BEAR DIV EXTREME" in overbought/oversold zones
Volume Labels: "VOL DIV" markers when volume diverges
Divergence Zones: Semi-transparent boxes highlighting divergence areas
Enhanced Candles: Color-coded by trend and momentum strength
Volume Spike Boxes: Gold boxes around high-volume candles
Extreme Zone Backgrounds: Red tint when RSI >70 and Stochastic >80, green tint when RSI <30 and Stochastic <20
Dashboard: Real-time oscillator states and confluence metrics
The dashboard displays 9 key metrics:
1. RSI State (value and Overbought/Oversold/Neutral)
2. MACD Flow (Bullish/Bearish and Strong/Weak)
3. Stochastic (value and Extreme/Normal)
4. Momentum Div (Active/Aligned)
5. Volume Profile (ratio and Spike/Elevated/Low)
6. Trend Strength (Bullish/Bearish and Strong/Weak)
7. Confluence (Extreme/Strong/Moderate/None)
8. Signal Quality (Elite Setup/Strong Setup/Moderate/Weak)
Input Parameters
Oscillator Settings:
RSI Period: Length for RSI calculation (default: 14)
MACD Fast: Fast EMA for MACD (default: 12)
MACD Slow: Slow EMA for MACD (default: 26)
MACD Signal: Signal line period (default: 9)
Stochastic Period: Length for Stochastic calculation (default: 14)
Divergence Detection:
Pivot Detection: Lookback for swing detection (default: 5)
Regular Divergence: Enable/disable regular divergence detection
Hidden Divergence: Enable/disable hidden divergence detection
Multi-Oscillator Confluence: Require multiple oscillators
Extreme Zones Only: Only detect divergences in overbought/oversold
Volume Analysis:
Volume Analysis Period: Length for volume average (default: 20)
Volume Divergence: Enable/disable volume divergence detection
Volume Spike Threshold: Multiplier for spike detection (default: 1.5x)
How to Use This Indicator
Step 1: Monitor RSI State
Check dashboard for RSI level. Divergences in extreme zones (>70 or <30) are most powerful. Wait for extremes for best setups.
Step 2: Watch for Divergence Labels
When "BULL DIV" or "BEAR DIV" labels appear, divergence is detected. "EXTREME" suffix means it's in overbought/oversold - highest probability.
Step 3: Check Confluence Score
Dashboard shows confluence level. "EXTREME" or "STRONG" = multiple oscillators confirming. Only trade 3+ confluence setups.
Step 4: Confirm with Volume
Look for "VOL DIV" labels. Volume divergence + oscillator divergence = very high probability. Volume confirms the divergence.
Step 5: Assess Signal Quality [/b>
Dashboard shows "ELITE SETUP" when momentum divergence + extreme RSI/Stochastic + high confluence. "STRONG SETUP" for good setups. Only trade Elite and Strong.
Step 6: Use Hidden Divergence for Continuation
"H-BULL" or "H-BEAR" labels signal trend continuation. Enter pullbacks in strong trends when hidden divergence appears.
Step 7: Monitor Trend Strength Best Practices
Divergences in extreme zones (RSI >70 or <30) are most reliable
Multi-oscillator confluence (3+) significantly increases win rate
Volume divergence adds powerful confirmation
Hidden divergences are for trend continuation, not reversal
Regular divergences are for reversal, not continuation
Momentum divergence provides early warning before price divergence
Extreme zone backgrounds (red/green tint) show best divergence areas
Enhanced candle colors show when momentum is weakening
Confluence score guides position sizing (higher = larger)
Signal quality in dashboard filters low-probability setups
Indicator Limitations
Divergences can persist for extended periods before reversing
Not all divergences result in reversals - some fail
Strong trends can produce multiple divergences before reversing
Hidden divergences require established trend context
Volume divergence less reliable on low-volume instruments
Pivot detection requires sufficient volatility
Multiple divergences in short period may signal consolidation
The indicator shows momentum conflicts, not guaranteed reversals
Extreme zones can remain extreme longer than expected
Technical Implementation
Built with Pine Script v6 using:
RSI divergence detection with pivot comparison
MACD momentum analysis with histogram tracking
Stochastic extreme zone identification
Volume divergence detection with pivot tracking
Momentum divergence calculations (rate-of-change)
Multi-oscillator confluence scoring system
Enhanced candlestick coloring based on trend and momentum
Volume spike detection with box visualization
Extreme zone background gradients
Real-time dashboard with 9 divergence metrics
The code is fully open-source and can be modified to suit individual trading styles and preferences.
Originality Statement
This indicator is original in its comprehensive divergence integration approach. While individual components (RSI, MACD, Stochastic, volume) are established concepts, this indicator is justified because:
It synthesizes multiple oscillator divergence detection into unified confluence scoring
The multi-oscillator confluence system quantifies setup quality across independent signals
Hidden divergence detection distinguishes continuation from reversal patterns
Volume divergence integration adds participation confirmation layer
Momentum divergence analysis provides early warning system
Enhanced candlestick coloring shows trend and momentum strength visually
Signal quality classification (Elite/Strong/Moderate/Weak) filters setups
Extreme zone backgrounds highlight optimal divergence areas
Real-time dashboard presents 9 metrics simultaneously for holistic divergence analysis
Each component contributes unique information: RSI shows relative strength, MACD shows momentum, Stochastic shows extremes, volume shows participation, momentum shows acceleration, confluence shows conviction, and quality shows probability. The indicator's value lies in presenting these complementary perspectives simultaneously with unified classification and actionable trade signals.
Disclaimer
This indicator is provided for educational and informational purposes only. It is not financial advice or a recommendation to buy or sell any financial instrument. Trading involves substantial risk of loss and is not suitable for all investors.
Divergence analysis is a tool for identifying potential reversals and continuations, not a crystal ball for predicting future price movement. Divergences do not guarantee reversals. Confluence does not guarantee success. Past divergence patterns do not guarantee future divergence patterns. Market conditions change, and strategies that worked historically may not work in the future.
The divergences displayed are analytical constructs based on current market data, not predictions of future price movement. High confluence scores do not guarantee profitable trades. Users must conduct their own analysis and risk assessment before making trading decisions.
Always use proper risk management, including stop losses and position sizing appropriate for your account size and risk tolerance. Never risk more than you can afford to lose. Consider consulting with a qualified financial advisor before making investment decisions.
The author is not responsible for any losses incurred from using this indicator. Users assume full responsibility for all trading decisions made using this tool.
-Made with passion by officialjackofalltrades Indicator

Volume Bubbles [QuantAlgo]🟢 Overview
The Volume Bubbles indicator is a multi-layered volume cluster detection system that identifies statistically significant volume events directly on your price chart, classifying them by magnitude (Small, Medium, Big) and direction (Buy, Sell, Mixed). By combining adaptive percentile thresholds across multiple lookback windows with optional volume delta analysis, this indicator highlights moments of elevated trading activity that often signal institutional participation, trend acceleration, or potential reversals across every timeframe and market.
🟢 How It Works
The indicator begins by establishing a lower timeframe for volume delta calculation. When auto-select is enabled, it picks a granular timeframe based on your chart period, using 1-second bars for sub-minute charts, 1-minute bars for intraday charts, 5-minute bars for daily charts, and 60-minute bars for higher timeframes. This allows the indicator to estimate net buying and selling pressure within each chart bar:
= taLib.requestVolumeDelta(lowerTimeframe)
float netDelta = nz(lastDelta)
float absDelta = math.abs(netDelta)
The core detection engine then calculates percentile thresholds for both volume and absolute delta across three independent lookback windows (Short, Medium, Long). Each window computes its own threshold for each cluster tier using linear interpolation:
float vSmallShort = ta.percentile_linear_interpolation(volume, shortLen, smallPct)
float vSmallMid = ta.percentile_linear_interpolation(volume, midLen, smallPct)
float vSmallLong = ta.percentile_linear_interpolation(volume, longLen, smallPct)
This means a bar's volume is not compared against a single average but ranked against the full distribution of recent volume history from multiple perspectives. A Small cluster must exceed the 75th percentile (top 25%), a Medium cluster the 90th percentile (top 10%), and a Big cluster the 97th percentile (top 3%) by default.
To filter noise, a consensus system requires agreement across the lookback windows before confirming a cluster:
f_consensus(bool pS, bool pM, bool pL, string mode) =>
int hits = (pS ? 1 : 0) + (pM ? 1 : 0) + (pL ? 1 : 0)
switch mode
"Any Window" => hits >= 1
"Majority (2 of 3)" => hits >= 2
"All Windows (strictest)" => hits >= 3
In Majority mode, for example, at least two of the three windows must agree that volume exceeds the threshold before a cluster is plotted. This prevents false signals from temporary spikes that look significant in one context but not another.
Once a cluster is confirmed, it is classified as Buy, Sell, or Mixed based on the selected method. Candle Direction uses the bar's open/close relationship, Delta Direction uses the sign of net volume delta, and Both requires agreement between the two, labeling any conflict as Mixed.
🟢 Key Features
▶ The indicator offers four detection methods, each designed to balance sensitivity and precision depending on data availability and trading style.
1. Volume Only: Uses raw bar volume as the sole input for cluster detection. This is the simplest and most universal mode, working on any symbol that provides volume data. It identifies all statistically elevated volume events regardless of whether buying or selling dominated, making it useful for spotting general activity surges around key levels, news events, or session opens.
2. Delta Only: Uses the absolute value of net volume delta instead of total volume. This mode triggers only when directional pressure (not just raw activity) is statistically elevated. It filters out high-volume bars where buying and selling were roughly balanced, focusing instead on bars where one side clearly dominated. Requires lower timeframe data availability.
3. Volume + Delta: Both volume and delta must independently exceed their respective percentile thresholds. This is the strictest detection mode. A cluster only appears when there is both unusually high total activity and unusually strong directional flow, filtering out ambiguous bars where volume was high but evenly split between buyers and sellers.
4. Volume OR Delta: Either elevated volume or elevated directional delta triggers a cluster. This is the most inclusive mode, capturing both pure volume events (such as index rebalancing or option expiration activity) and strong directional surges that may occur on relatively normal total volume. Best suited for traders who prefer broader coverage and are comfortable filtering signals with additional context.
▶ Detailed Tooltip Overlay: Hovering over any bubble reveals a comprehensive diagnostic panel summarizing the full context behind that cluster. The tooltip displays the cluster tier and direction label (e.g., BIG BUY or MEDIUM SELL), the formatted volume value, net delta value (or "n/a" if delta data is unavailable), the volume-to-average ratio expressed as a multiple, the active detection method (with a fallback note if delta was unavailable and the method defaulted to Volume Only), the individual window confirmations for both volume and delta shown as a compact S M L grid indicating which of the short, medium, and long lookback windows passed their threshold, and the classification mode used to determine the buy/sell label. This gives full transparency into exactly why each cluster was detected and how it was classified, without cluttering the chart itself.
▶ Built-in Alert System: Pre-configured alert conditions for Big clusters, Medium-or-larger clusters, and any cluster detection, allowing you to receive notifications for the volume events that matter most to your strategy.
▶ Visual Customization: Choose from 5 color presets (Classic, Aqua, Cosmic, Cyber, Neon) or define your own custom color scheme. Optional in-bubble text displays volume, delta, ratio, or combinations, while the tooltip diagnostic panel remains accessible on hover regardless of whether bubble labels are enabled or disabled.
🟢 Important Notes
1. This indicator requires volume data to function. Make sure you are using a ticker from an exchange that provides volume data. Symbols that do not report volume (such as certain forex pairs on specific brokers or custom-built indices) will trigger a warning message on the chart and produce no signals. If you see the "No Volume Data" warning, switch to a symbol or exchange that supports volume reporting.
2. Whether you are scalping on lower timeframes or swing trading on daily and weekly charts, Volume Bubbles is designed to complement your existing setup rather than replace it. Use it as a confirmation layer alongside your preferred strategy to identify when statistically significant volume activity aligns with your trade thesis, adding a data-driven edge to entries, exits, and key level analysis across any timeframe and market. Indicator

Harmonic Resonance Detector [JOAT]Harmonic Resonance Detector
Introduction
The Harmonic Resonance Detector is an advanced open-source Fibonacci analysis indicator that combines multi-wave Fibonacci retracements, confluence zone detection, golden ratio harmonics, and density heatmapping into a unified harmonic analysis system. This indicator helps traders identify high-probability reversal and continuation zones by analyzing where multiple Fibonacci levels from different swing waves converge, creating magnetic price attraction zones.
Unlike basic Fibonacci tools that draw levels from a single swing, this system analyzes three simultaneous swing waves (primary, secondary, tertiary) and identifies where their Fibonacci levels cluster. These confluence zones represent areas where multiple timeframes and swing structures agree on key levels, significantly increasing the probability of price reaction. The indicator is designed for traders who understand that Fibonacci levels work best when multiple waves confirm the same price zone.
Why This Indicator Exists
This indicator addresses a fundamental limitation of traditional Fibonacci analysis: single-swing Fibonacci levels are subjective and often unreliable. Different traders draw different swings and get different levels. By combining multiple swing analyses and identifying confluence, this indicator reveals:
Triple Swing Analysis: Analyzes three different swing lengths simultaneously (20, 50, 100 periods) to capture short, medium, and long-term structure
Confluence Zone Detection: Identifies where multiple Fibonacci levels cluster within tolerance - these zones act as price magnets
Golden Pocket Highlighting: Marks the 0.618-0.65 retracement zone - the highest probability reversal area based on golden ratio
Fibonacci Extensions: Projects 1.272, 1.414, and 1.618 extension levels for profit targets beyond the swing range
Density Heatmap: Visual representation of Fibonacci level concentration - darker colors = more confluence
Liquidity Sweep Detection: Identifies when price breaks highs/lows but closes back inside - signals institutional traps
Each component provides a different lens on harmonic structure. Triple swing analysis shows multi-timeframe agreement, confluence zones show magnetic levels, golden pocket shows optimal entry, extensions show targets, heatmap shows density, and sweeps show manipulation. Together, they create a comprehensive view of harmonic resonance.
Core Components Explained
1. Triple Swing Fibonacci Analysis
The indicator calculates Fibonacci retracements from three different swing lengths simultaneously:
// Calculate swing high/low for each period
swingHigh1 = ta.highest(high, 20) // Primary wave
swingLow1 = ta.lowest(low, 20)
swingHigh2 = ta.highest(high, 50) // Secondary wave
swingLow2 = ta.lowest(low, 50)
swingHigh3 = ta.highest(high, 100) // Tertiary wave
swingLow3 = ta.lowest(low, 100)
// Calculate Fibonacci levels for each swing
fib1 = calculateFibs(swingHigh1, swingLow1)
fib2 = calculateFibs(swingHigh2, swingLow2)
fib3 = calculateFibs(swingHigh3, swingLow3)
For each swing, the indicator calculates standard Fibonacci retracement levels:
23.6% - Shallow retracement, weak pullback
38.2% - Moderate retracement, common in strong trends
50.0% - Equilibrium level, psychological significance
61.8% - Golden ratio, highest probability reversal zone
78.6% - Deep retracement, last chance before trend failure
By analyzing three different swing lengths, the indicator captures short-term, medium-term, and long-term structure simultaneously. When levels from all three swings align, it creates powerful confluence.
2. Confluence Zone Detection
The indicator identifies zones where multiple Fibonacci levels cluster within a tolerance percentage:
confluenceTolerance = 0.3 // Default 0.3%
// For each Fibonacci level, count how many other levels are nearby
for each level in allFibLevels:
confluenceCount = 0
for each otherLevel in allFibLevels:
if abs(level - otherLevel) / level * 100 <= confluenceTolerance:
confluenceCount += 1
if confluenceCount >= 3: // Minimum 3 levels clustering
createConfluenceZone(level, confluenceCount)
Confluence zones are displayed as:
Horizontal boxes spanning the tolerance range
Color intensity based on confluence count (4+ levels = red, 3 levels = orange, 2 levels = yellow)
Labels showing "3x CONFLUENCE", "4x CONFLUENCE", etc.
Thicker borders for higher confluence zones
The more Fibonacci levels that converge at a price zone, the stronger the magnetic effect. 4x or 5x confluence zones are extremely high-probability reaction areas.
3. Golden Pocket Visualization
The Golden Pocket is the zone between 0.618 and 0.65 Fibonacci retracement - the highest probability reversal area:
fib618 = swingLow + (swingHigh - swingLow) * 0.618
fib650 = swingLow + (swingHigh - swingLow) * 0.650
goldenTop = max(fib618, fib650)
goldenBottom = min(fib618, fib650)
The Golden Pocket is special because:
Based on the golden ratio (phi = 1.618), found throughout nature and markets
Represents optimal balance between retracement depth and trend continuation
Historically shows highest win rate for reversal trades
Often coincides with institutional order placement zones
The indicator highlights the Golden Pocket with:
Multi-layer gradient gold box
"GOLDEN POCKET" label at center
Enhanced candlestick coloring when price is inside (gold for bullish, brown for bearish)
Background gradient when price enters the zone
4. Fibonacci Extensions
Extensions project levels beyond the swing range for profit targets:
// Extension levels
ext1272 = swingLow + (swingHigh - swingLow) * 1.272
ext1414 = swingLow + (swingHigh - swingLow) * 1.414
ext1618 = swingLow + (swingHigh - swingLow) * 1.618
Extension levels represent:
127.2% - First extension target, common profit-taking zone
141.4% - Square root of 2, geometric harmony level
161.8% - Golden ratio extension, major target zone
Extensions are drawn as dashed lines with purple gradient colors. They show where price is likely to find resistance after breaking through the swing high (or support after breaking swing low).
5. Confluence Density Heatmap
The heatmap visualizes Fibonacci level concentration across the price range:
The indicator:
Divides the recent price range into 20 grid cells
Counts how many Fibonacci levels fall into each cell
Colors cells based on density (blue = low, red = high)
Displays as vertical bars on the left side of the chart
The heatmap reveals:
Zones with highest Fibonacci concentration (darkest red)
Gaps where few Fibonacci levels exist (blue or empty)
Vertical distribution of harmonic structure
Quick visual reference for key zones
Traders can quickly identify the most important price levels by looking for the darkest red cells in the heatmap.
6. Liquidity Sweep Detection
Liquidity sweeps occur when price breaks a swing high/low but closes back inside the range - a classic institutional trap:
// Detect sweep: high breaks previous swing high but close is below it
liquiditySweepHigh = high > prevSwingHigh and close < prevSwingHigh
// Detect sweep: low breaks previous swing low but close is above it
liquiditySweepLow = low < prevSwingLow and close > prevSwingLow
When sweeps occur:
Dashed horizontal line marks the swept level
"LIQ SWEEP" label appears
Often precedes reversal as institutions trapped retail traders
Combines with Fibonacci confluence for high-probability setups
Liquidity sweeps at Fibonacci confluence zones are especially powerful - they signal institutional positioning complete and reversal imminent.
7. Equilibrium Boxes (EQH/EQL)
Equilibrium boxes mark 50% retracement zones throughout the chart:
The indicator:
Identifies significant ranges throughout lookback period
Calculates 50% level (equilibrium) for each range
Draws grey boxes around equilibrium with dashed center line
Labels with "EQH" (Equal Highs) marker
Equilibrium zones represent fair value and often act as support/resistance. Price tends to gravitate toward equilibrium before continuing or reversing.
Visual Elements
Fibonacci Lines: Dotted lines at 23.6%, 38.2%, 50%, 61.8%, 78.6% with color coding
Extension Lines: Dashed purple lines at 127.2%, 141.4%, 161.8%
Confluence Zones: Horizontal boxes with intensity-based coloring and count labels
Golden Pocket: Multi-layer gradient gold box with center label
Density Heatmap: Vertical gradient bars showing Fibonacci concentration
Liquidity Sweeps: Dashed lines with "LIQ SWEEP" labels
Equilibrium Boxes: Grey boxes with dashed center lines and "EQH" labels
Enhanced Candles: Gold/orange coloring in Golden Pocket, red/green at confluence zones
Background Gradients: Premium zone (red), Discount zone (green), Golden Pocket (gold)
Dashboard: Real-time confluence metrics and trade signals
The dashboard displays 8 key metrics:
1. Active Zones (count of confluence zones)
2. Peak Confluence (highest confluence count)
3. Nearest Zone (distance to closest confluence)
4. Magnetic Pull (Extreme/Strong/Moderate/Weak)
5. Golden Zone (Active/Inactive)
6. Heatmap Density (total Fibonacci levels)
7. Trade Signal (Sniper Entry/Valid Setup/Wait)
Input Parameters
Harmonic Waves:
Primary Wave: First swing length (default: 20)
Secondary Wave: Second swing length (default: 50)
Tertiary Wave: Third swing length (default: 100)
Golden Pocket: Enable 0.618-0.65 zone highlighting
Confluence Engine:
Resonance Tolerance: Percentage range for confluence (default: 0.3%)
Min Harmonic Count: Minimum levels required for confluence (default: 3)
Magnetic Zones: Enable/disable confluence zone boxes
Visualization:
Fibonacci Levels: Show/hide retracement lines
Confluence Zones: Show/hide confluence boxes
Density Heatmap: Show/hide vertical heatmap
Extensions: Show/hide 1.272, 1.414, 1.618 levels
Equilibrium Boxes: Show/hide EQH zones
Liquidity Sweeps: Show/hide sweep markers
Gradient Backgrounds: Show/hide value zone colors
Enhanced Candlesticks: Enable special candle coloring
How to Use This Indicator
Step 1: Identify Confluence Zones
Look for horizontal boxes with "3x CONFLUENCE" or higher labels. These are magnetic zones where price is likely to react. 4x+ confluence = highest probability.
Step 2: Check Golden Pocket Status
Dashboard shows if Golden Pocket is active. When price enters the golden zone (0.618-0.65), it's optimal reversal area. Candles turn gold.
Step 3: Monitor Nearest Zone Distance
Dashboard shows distance to nearest confluence. <0.5% = price is at the zone. <1.0% = approaching. >2.0% = far away.
Step 4: Assess Magnetic Pull Strength
Dashboard shows pull strength. "EXTREME" = 4+ confluence within 0.5%. "STRONG" = 3+ confluence within 1.0%. Trade extreme and strong only.
Step 5: Watch for Liquidity Sweeps
When price sweeps a high/low at a confluence zone and reverses, it's a sniper entry. Institutions trapped retail and are now reversing.
Step 6: Use Extensions for Targets
After entry at confluence zone, use extension levels (127.2%, 141.4%, 161.8%) as profit targets. These are natural resistance/support zones.
Step 7: Check Trade Signal
Dashboard shows "SNIPER ENTRY" when price is within 0.5% of 4+ confluence. "VALID SETUP" for 3+ confluence within 1.0%. "WAIT" otherwise.
Best Practices
Higher confluence = higher probability - prioritize 4x+ zones
Golden Pocket + confluence = best reversal setups
Liquidity sweeps at confluence zones = institutional positioning
Use heatmap for quick visual reference of key zones
Extensions work best after confluence zone holds
Equilibrium boxes show fair value - expect gravitational pull
Premium/discount background shows context - buy discount, sell premium
Enhanced candles signal when price is at key zones
Multiple timeframe confluence (all three swings) = strongest setups
Confluence zones can act as support after breaking resistance (and vice versa)
Indicator Limitations
Fibonacci analysis is subjective - different swing selections produce different levels
Confluence zones show where levels cluster, not guaranteed reversals
Golden Pocket doesn't always hold - strong trends can blow through it
Liquidity sweeps can extend further than expected (double sweeps)
Heatmap density doesn't account for level importance (all levels weighted equally)
Extensions may not be reached in weak trends
Tolerance setting affects confluence detection - too tight misses zones, too wide creates false zones
The indicator shows harmonic structure, not fundamental drivers
Confluence zones can fail during news events or market shocks
Technical Implementation
Built with Pine Script v6 using:
Triple swing Fibonacci calculations with automatic trend detection
Confluence detection algorithm with tolerance-based clustering
Golden Pocket identification and highlighting system
Fibonacci extension projections (1.272, 1.414, 1.618)
Density heatmap with grid-based level counting
Liquidity sweep detection with close confirmation
Equilibrium box generation throughout chart history
Enhanced candlestick coloring based on zone proximity
Multi-gradient background system for value zones
Real-time dashboard with 8 harmonic metrics
The code is fully open-source and can be modified to suit individual trading styles and preferences.
Originality Statement
This indicator is original in its comprehensive harmonic integration approach. While individual components (Fibonacci retracements, golden ratio, extensions) are established concepts, this indicator is justified because:
It synthesizes three simultaneous swing analyses into unified confluence detection
The confluence algorithm identifies clustering zones with configurable tolerance
Golden Pocket highlighting with enhanced visualization and candlestick coloring
Density heatmap provides visual representation of Fibonacci concentration
Liquidity sweep detection combines with Fibonacci zones for trap identification
Equilibrium box system marks fair value zones throughout chart history
Multi-gradient background system shows premium/discount context
Magnetic pull strength quantification based on confluence and proximity
Real-time dashboard presents 8 metrics simultaneously for holistic harmonic analysis
Each component contributes unique information: Triple swings show multi-timeframe structure, confluence shows magnetic zones, golden pocket shows optimal entry, extensions show targets, heatmap shows density, sweeps show manipulation, and equilibrium shows fair value. The indicator's value lies in presenting these complementary perspectives simultaneously with unified classification and actionable trade signals.
Disclaimer
This indicator is provided for educational and informational purposes only. It is not financial advice or a recommendation to buy or sell any financial instrument. Trading involves substantial risk of loss and is not suitable for all investors.
Fibonacci analysis is a tool for identifying potential support and resistance zones, not a crystal ball for predicting future price movement. Confluence zones do not guarantee reversals. Golden Pocket does not guarantee entries. Extensions may not be reached. Past harmonic patterns do not guarantee future harmonic patterns. Market conditions change, and strategies that worked historically may not work in the future.
The zones displayed are analytical constructs based on current market data, not predictions of future price movement. High confluence scores do not guarantee profitable trades. Users must conduct their own analysis and risk assessment before making trading decisions.
Always use proper risk management, including stop losses and position sizing appropriate for your account size and risk tolerance. Never risk more than you can afford to lose. Consider consulting with a qualified financial advisor before making investment decisions.
The author is not responsible for any losses incurred from using this indicator. Users assume full responsibility for all trading decisions made using this tool.
-Made with passion by officialjackofalltrades Indicator

Adaptive Flow Analyzer [JOAT]Adaptive Flow Analyzer
Introduction
The Adaptive Flow Analyzer is an advanced open-source volatility regime classification indicator that combines dynamic regime detection, entropy analysis, adaptive bands, and momentum waves into a unified flow state system. This indicator helps traders identify whether the market is trending, ranging, or choppy by analyzing volatility patterns, price distribution entropy, and momentum characteristics in real-time.
Unlike basic volatility indicators that simply show ATR or Bollinger Bands, this system classifies market conditions into actionable regimes and recommends appropriate trading strategies. Trending regimes favor breakout and trend-following approaches, ranging regimes favor mean-reversion strategies, and choppy regimes signal to avoid trading. The indicator is designed for traders who understand that different market conditions require different strategies and that regime identification is critical for consistent profitability.
Why This Indicator Exists
This indicator addresses a fundamental challenge in trading: applying the right strategy to the right market condition. Most traders lose money because they use trend-following strategies in ranging markets or mean-reversion strategies in trending markets. By combining multiple regime analysis methodologies, this indicator reveals:
Volatility Regime Detection: Classifies markets as Trending, Ranging, or Choppy based on volatility ratio and directional alignment
Entropy Analysis: Measures price distribution chaos using information theory - high entropy = uncertainty, low entropy = order
Adaptive Bands: Dynamic upper/lower bands that adjust to volatility - shows price position relative to extremes
Momentum Waves: RSI rate-of-change visualization showing momentum acceleration and deceleration
Chaos Zones: Identifies extreme uncertainty periods when trading should be avoided
Strategy Recommendations: Suggests Trend Follow, Mean Revert, or Avoid based on current regime
Each component provides a different lens on market flow. Regime classification shows condition, entropy shows uncertainty, bands show extremes, momentum shows acceleration, and chaos zones show danger. Together, they create a comprehensive view of market state.
Core Components Explained
1. Volatility Regime Detection
The indicator classifies markets into three regimes using volatility ratio and trend alignment:
atr = ta.atr(14)
atrSma = ta.sma(atr, 50)
volRatio = atr / atrSma
// Trending: Aligned EMAs + normal volatility
trendStrength = (ema9 > ema21 and ema21 > ema50) or
(ema9 < ema21 and ema21 < ema50)
regime = volRatio > 1.5 ? 0 : // Choppy
trendStrength ? 2 : // Trending
1 // Ranging
Regime classification:
Trending (2): EMAs aligned + volatility ratio < 1.5 - directional market with follow-through
Ranging (1): EMAs not aligned + volatility ratio < 1.5 - oscillating market with mean reversion
Choppy (0): Volatility ratio > 1.5 - erratic market with no clear pattern
The indicator displays regime with color-coded background and text in dashboard. Trending = green, Ranging = orange, Choppy = red.
2. Entropy Calculation
Entropy measures the randomness or uncertainty in price distribution using information theory:
The indicator:
Collects price changes over lookback period (default 50 bars)
Creates histogram by dividing changes into bins (default 10 bins)
Calculates Shannon entropy: -Σ(p * log(p)) where p = probability
Normalizes to 0-100 scale for easy interpretation
Entropy interpretation:
High entropy (>70): Price changes are random and unpredictable - high uncertainty
Medium entropy (40-70): Moderate predictability - mixed conditions
Low entropy (<40): Price changes are ordered and predictable - low uncertainty
High entropy warns of chaotic conditions where patterns break down. Low entropy confirms regime reliability. The indicator plots entropy as a gradient area chart (green to red).
3. Adaptive Bands System
Adaptive bands adjust to volatility and show price position relative to extremes:
ma = ta.sma(close, 50)
upperBand = ma + (atr * 2.0)
lowerBand = ma - (atr * 2.0)
// Normalize price position to 0-100
pricePosition = (close - lowerBand) / (upperBand - lowerBand) * 100
The indicator displays:
Price position oscillator (0-100 scale)
Reference lines at 0 (lower band), 50 (middle), 100 (upper band)
Multi-layer glow effect on position line for visibility
Color changes based on regime (green for trending, orange for ranging, red for choppy)
Price position interpretation:
Above 75: Overbought - expect mean reversion in ranging regime
Below 25: Oversold - expect mean reversion in ranging regime
Sustained above 50: Bullish in trending regime
Sustained below 50: Bearish in trending regime
4. Momentum Waves
Momentum waves visualize RSI rate-of-change to show acceleration and deceleration:
rsi = ta.rsi(close, 14)
rsiMomentum = ta.change(rsi, 3)
momentumStrength = math.abs(rsiMomentum) / 10 * 100
The indicator plots momentum as gradient area chart:
Green gradient: Positive momentum (RSI rising)
Red gradient: Negative momentum (RSI falling)
Intensity: Stronger color = faster momentum change
Height: Taller wave = larger momentum shift
Momentum waves reveal:
Acceleration into trends (expanding waves)
Deceleration at reversals (contracting waves)
Momentum divergence from price (warning signal)
Momentum exhaustion (extreme waves followed by collapse)
5. Chaos Zone Detection
Chaos zones occur when entropy exceeds threshold (75) AND volatility ratio exceeds 1.5:
inChaosZone = entropyNormalized > 75 and volRatio > 1.5
When chaos zone is active:
Pulsing red background appears
"CHAOS ZONE" label displays
Dashboard shows "CHAOS" flow state
Strategy recommendation changes to "AVOID"
Chaos zones represent extreme uncertainty where technical patterns break down. Trading during chaos zones typically results in whipsaws and losses. The indicator warns to stay flat.
6. Strategy Recommendations
Based on regime classification, the indicator recommends trading approach:
Trending Regime: "TREND FOLLOW" - Use breakout strategies, ride momentum, trail stops
Ranging Regime: "MEAN REVERT" - Fade extremes, buy support, sell resistance
Choppy Regime: "AVOID" - Stay flat, wait for regime clarity
The dashboard displays current recommendation with color coding. This prevents applying wrong strategy to wrong condition.
Visual Elements
Price Position Oscillator: Multi-layer glow line showing position in bands (0-100)
Reference Lines: Horizontal lines at 0, 50, 100 with gradient colors
Regime Background: Color-coded background (green/orange/red) based on regime
Entropy Area Chart: Gradient fill (green to red) showing uncertainty level
Momentum Waves: Gradient area chart showing RSI momentum
Chaos Zone Background: Pulsing red background during extreme uncertainty
Dashboard: Real-time regime state and strategy recommendations
The dashboard displays 9 key metrics:
1. Flow Regime (Trending/Ranging/Choppy)
2. Flow Ratio (volatility multiple)
3. Chaos Index (entropy percentage)
4. Strategy Mode (Trend Follow/Mean Revert/Avoid)
5. Momentum (Strong Up/Strong Down/Neutral)
6. Confidence (High/Medium/Low)
7. Flow State (Directional/Oscillating/Erratic/Chaos)
8. Position (Overbought/Oversold/Neutral)
Input Parameters
Flow Dynamics:
Flow Period: ATR calculation length (default: 14)
Band Multiplier: ATR multiple for bands (default: 2.0)
Equilibrium Period: Moving average length (default: 50)
Adaptive Bands: Enable dynamic band adjustment
Entropy Analysis:
Chaos Measurement: Lookback for entropy calculation (default: 50)
Distribution Bins: Number of histogram bins (default: 10)
Chaos Zones: Enable/disable chaos zone detection
Visualization:
Flow Bands: Show/hide adaptive bands
Regime Coloring: Enable/disable background colors
Entropy Overlay: Show/hide entropy chart
Momentum Waves: Show/hide RSI momentum
How to Use This Indicator
Step 1: Identify Current Regime
Check the dashboard for Flow Regime. This determines your trading approach. Trending = breakouts, Ranging = reversals, Choppy = avoid.
Step 2: Assess Chaos Index
Check entropy level. High chaos (>70) = unreliable patterns. Low chaos (<40) = reliable patterns. Only trade when chaos is low to medium.
Step 3: Check Strategy Recommendation
Dashboard shows recommended approach. Follow it. Don't use trend strategies in ranging markets or mean reversion in trending markets.
Step 4: Monitor Price Position
In ranging regime: Buy near 0-25 (oversold), sell near 75-100 (overbought). In trending regime: Stay with trend when above/below 50.
Step 5: Watch Momentum Waves
Expanding waves = acceleration (enter trends). Contracting waves = deceleration (prepare for reversal). Divergence = warning.
Step 6: Avoid Chaos Zones
When chaos zone activates (pulsing red background), close positions and wait. Don't trade during extreme uncertainty.
Best Practices
Regime determines strategy - always check before trading
High entropy + choppy regime = stay flat
Low entropy + trending regime = best trend-following conditions
Low entropy + ranging regime = best mean-reversion conditions
Momentum waves lead price - watch for acceleration
Chaos zones are dangerous - respect them
Confidence level in dashboard shows setup quality
Flow ratio > 1.5 = elevated risk regardless of regime
Position oscillator works differently in each regime
Regime changes take time to confirm - don't trade transitions
Indicator Limitations
Regime classification is retrospective - may lag at transitions
Entropy calculation requires sufficient data - unreliable on new instruments
Choppy regime can persist longer than expected
Adaptive bands can whipsaw during regime transitions
Momentum waves show acceleration, not direction
Chaos zones can have false positives during news events
The indicator shows current state, not future regime
Strategy recommendations are general - not specific entry signals
Regime classification may differ across timeframes
Technical Implementation
Built with Pine Script v6 using:
ATR-based volatility ratio calculations
EMA alignment for trend strength detection
Shannon entropy calculations with histogram binning
Adaptive band system with dynamic adjustment
RSI momentum rate-of-change analysis
Chaos zone detection with dual criteria
Multi-gradient visualization with pulsing effects
Real-time dashboard with 9 regime metrics
The code is fully open-source and can be modified to suit individual trading styles and preferences.
Originality Statement
This indicator is original in its comprehensive regime integration approach. While individual components (ATR, entropy, bands, RSI) are established concepts, this indicator is justified because:
It synthesizes volatility analysis, entropy theory, and momentum detection into unified regime classification
The entropy calculation applies information theory to price distribution for uncertainty measurement
Chaos zone detection combines entropy and volatility for extreme condition identification
Strategy recommendations adapt to regime in real-time
Momentum wave visualization shows RSI acceleration, not just level
The confidence scoring system quantifies regime reliability
Multi-gradient visualization with pulsing effects enhances regime awareness
Real-time dashboard presents 9 metrics simultaneously for holistic regime analysis
Each component contributes unique information: Regime shows condition, entropy shows uncertainty, bands show extremes, momentum shows acceleration, chaos shows danger, and strategy shows approach. The indicator's value lies in presenting these complementary perspectives simultaneously with unified classification and actionable recommendations.
Disclaimer
This indicator is provided for educational and informational purposes only. It is not financial advice or a recommendation to buy or sell any financial instrument. Trading involves substantial risk of loss and is not suitable for all investors.
Regime analysis is a tool for understanding market conditions, not a crystal ball for predicting future behavior. Trending regimes can become ranging. Ranging regimes can become choppy. Past regime patterns do not guarantee future regime patterns. Market conditions change, and strategies that worked historically may not work in the future.
The regime classifications displayed are analytical constructs based on current market data, not predictions of future market state. High confidence scores do not guarantee profitable trades. Users must conduct their own analysis and risk assessment before making trading decisions.
Always use proper risk management, including stop losses and position sizing appropriate for your account size and risk tolerance. Never risk more than you can afford to lose. Consider consulting with a qualified financial advisor before making investment decisions.
The author is not responsible for any losses incurred from using this indicator. Users assume full responsibility for all trading decisions made using this tool.
-Made with passion by officialjackofalltrades Indicator

Structural Flow Decoder [JOAT]Structural Flow Decoder
Introduction
The Structural Flow Decoder is an advanced open-source market structure analysis indicator that combines Break of Structure (BOS) detection, Change of Character (CHoCH) identification, nested pattern recognition, and multi-timeframe confluence into a unified structural analysis system. This indicator helps traders identify trend direction, structural shifts, and momentum changes by analyzing how price breaks through swing highs and lows across multiple timeframes.
Unlike basic trend indicators that use moving averages, this system analyzes actual market structure - the sequence of higher highs, higher lows, lower highs, and lower lows that define trends. Break of Structure signals trend continuation, Change of Character signals potential reversals, nested patterns reveal internal structure, and multi-timeframe alignment confirms institutional conviction. The indicator is designed for traders who understand that market structure precedes price and that structural breaks reveal directional intent.
Why This Indicator Exists
This indicator addresses a critical need in technical analysis: the ability to identify trend changes before they're obvious. Market structure analysis reveals when institutions are shifting positioning. By combining multiple structural methodologies, this indicator reveals:
Break of Structure (BOS): Price breaks swing high/low in trend direction - confirms continuation and momentum
Change of Character (CHoCH): Price breaks swing high/low against trend - signals potential reversal or consolidation
Nested Structure: Internal patterns within larger structure - reveals micro-trends and entry timing
Multi-Timeframe Confluence: Higher timeframe structure alignment - confirms institutional participation
Momentum Shifts: RSI and MACD crossovers at structure breaks - adds confirmation layer
Trend Strength Analysis: Quantifies structural conviction - distinguishes strong from weak trends
Each component provides a different lens on market structure. BOS shows continuation, CHoCH shows reversals, nested structure shows timing, MTF alignment shows conviction, and momentum shows acceleration. Together, they create a comprehensive view of structural flow.
Core Components Explained
1. Break of Structure (BOS) Detection
Break of Structure occurs when price breaks a swing high in an uptrend or swing low in a downtrend. It confirms trend continuation:
// Bullish BOS: Price breaks above previous swing high
if pivotHigh > lastSwingHigh and bullishStructure:
line.new(lastSwingHighBar, lastSwingHigh, bar_index, pivotHigh,
color=COLOR_BULL_STRUCTURE, width=3, style=line.style_solid)
label.new(bar_index, pivotHigh, "BOS ↑")
The indicator identifies BOS using swing detection:
Detects swing highs and lows using pivot lookback (default 5 periods)
Compares current swing to previous swing in same direction
Draws solid lines connecting swings when BOS occurs
Labels breaks with "BOS ↑" or "BOS ↓" for clarity
BOS signals that the trend is intact and institutions are pushing price in the established direction. Multiple consecutive BOS indicate strong trending conditions.
2. Change of Character (CHoCH) Detection
Change of Character occurs when price breaks a swing high in a downtrend or swing low in an uptrend. It signals potential trend reversal:
// Bullish CHoCH: Price breaks above swing high while in downtrend
if pivotHigh > lastSwingHigh and not bullishStructure:
line.new(lastSwingHighBar, lastSwingHigh, bar_index, pivotHigh,
color=COLOR_CHOCH_BULL, width=3, style=line.style_dashed)
label.new(bar_index, pivotHigh, "CHoCH ↑")
bullishStructure := true
CHoCH is more significant than BOS because it represents structural shift:
Breaks counter-trend swing points
Signals potential trend reversal or major consolidation
Drawn with dashed lines to distinguish from BOS
Flips internal trend state when detected
CHoCH doesn't guarantee reversal, but it warns that the previous trend is weakening. Confirmation from other factors (volume, momentum, higher timeframe) increases reliability.
3. Nested Structure Analysis
Nested structure reveals internal patterns within the larger trend. It uses shorter lookback periods to detect micro-structure:
The indicator tracks internal swings using a separate period (default 3 bars vs 5 for main structure). This reveals:
Internal BOS within larger trends - shows momentum acceleration
Internal CHoCH before main CHoCH - early warning of reversals
Pullback structure in trends - identifies entry opportunities
Consolidation patterns - shows when to wait
Nested structure is drawn with thinner dashed lines to distinguish from main structure. It provides entry timing within the larger trend context.
4. Multi-Timeframe Confluence
The indicator requests structure data from a higher timeframe (default 60-minute) and compares it to current timeframe:
= request.security(syminfo.tickerid, "60",
)
Multi-timeframe analysis reveals:
Whether current timeframe structure aligns with higher timeframe
Institutional conviction (HTF structure = larger positions)
Confluence zones where both timeframes show same direction
Divergence warnings when timeframes conflict
The dashboard displays HTF alignment status (Bullish/Bearish) and confluence state (Synced/Divergent). Trading in direction of HTF structure with current timeframe confirmation produces highest win rates.
5. Momentum Shift Detection
The indicator integrates RSI and MACD to detect momentum shifts at structural breaks:
rsi = ta.rsi(close, 14)
= ta.macd(close, 12, 26, 9)
momentum_bull = ta.crossover(rsi, 50) and macdHist > 0
momentum_bear = ta.crossunder(rsi, 50) and macdHist < 0
Momentum shifts are marked with "M+" (bullish) or "M-" (bearish) labels. When momentum shifts align with structural breaks, it confirms the move. Momentum divergence from structure warns of potential failures.
6. Trend Strength Classification
The indicator quantifies trend strength based on consecutive structural breaks:
Explosive: 3+ consecutive BOS in same direction
Active: 1-2 consecutive BOS
Weak: No recent BOS or mixed signals
Strength classification appears in the dashboard and influences background gradient intensity. Strong trends show vibrant colors, weak trends show muted colors.
Visual Elements
BOS Lines: Solid thick lines (cyan for bullish, magenta for bearish)
CHoCH Lines: Dashed thick lines (cyan for bullish, magenta for bearish)
Internal Structure: Thin dashed lines showing nested patterns
Swing Point Labels: "H" and "L" markers at pivot highs/lows
Momentum Labels: "M+" and "M-" at momentum shifts
Gradient Background: Color intensity based on trend strength
Gradient Candles: Strong moves in bright colors, weak moves in muted colors
Dashboard: Real-time structure state and confluence metrics
The dashboard displays 8 key metrics:
1. Structure Flow (Bullish/Bearish)
2. Flow Strength (Explosive/Active/Weak)
3. HTF Alignment (Bullish/Bearish/Off)
4. Confluence (Synced/Divergent)
5. Momentum (Strong/Neutral/Weak)
6. MACD Signal (Bullish/Bearish)
7. Last Pivot price level
Input Parameters
Structure Analysis:
Detection Period: Swing lookback for main structure (default: 5)
Break of Structure: Enable/disable BOS detection
Change of Character: Enable/disable CHoCH detection
Nested Patterns: Enable/disable internal structure
Nested Period: Swing lookback for internal structure (default: 3)
Momentum Shifts: Enable/disable RSI/MACD labels
Higher Timeframe:
Multi-Timeframe Sync: Enable/disable HTF analysis
HTF Period: Higher timeframe to analyze (default: 60 minutes)
Confluence Filter: Require HTF alignment for signals
Visualization:
Directional Zones: Show gradient backgrounds
Pivot Markers: Show H/L labels at swings
Strength Histogram: Show trend strength bars
How to Use This Indicator
Step 1: Identify Current Structure
Check the dashboard for Structure Flow. Bullish structure = look for longs, Bearish structure = look for shorts. This is your directional bias.
Step 2: Wait for Structural Confirmation
In bullish structure, wait for BOS (break above swing high) to confirm continuation. In bearish structure, wait for BOS (break below swing low). Don't trade against structure.
Step 3: Watch for Change of Character
CHoCH signals potential reversal. When CHoCH occurs, structure flips. Wait for confirmation BOS in new direction before entering. Don't trade immediately on CHoCH.
Step 4: Use Nested Structure for Timing
Internal structure shows pullback completion. Enter when internal BOS occurs in direction of main structure. This provides precise entry timing.
Step 5: Confirm with Higher Timeframe
Check HTF Alignment in dashboard. "Synced" = both timeframes agree (best setups). "Divergent" = conflict (avoid or reduce size).
Step 6: Add Momentum Confirmation
Look for M+ labels in bullish structure or M- labels in bearish structure. Momentum + Structure = highest probability setups.
Best Practices
Trade in direction of structure - don't fight it
BOS confirms trend, CHoCH warns of change - respect both
Multiple BOS in same direction = strong trend, ride it
CHoCH requires confirmation - don't reverse immediately
Nested structure provides entries within larger trend
HTF alignment is critical - always check confluence
Momentum divergence from structure = warning sign
Explosive strength = trending conditions, use breakout strategies
Weak strength = ranging conditions, use mean reversion
Structure works on all timeframes - scale appropriately
Indicator Limitations
Structure analysis works best on trending markets with clear swings
Choppy, sideways markets produce frequent false CHoCH signals
Swing detection requires sufficient volatility - low volatility reduces reliability
CHoCH doesn't guarantee reversal - it signals potential change
Multiple CHoCH in short period indicates consolidation, not trend
HTF data may repaint on lower timeframes - use confirmed bars
Nested structure can be noisy in ranging markets
The indicator shows structure state, not future direction
Momentum shifts can occur without structural confirmation
Technical Implementation
Built with Pine Script v6 using:
Pivot-based swing detection with configurable lookback
State machine tracking for bullish/bearish structure
Nested structure analysis with separate period
Multi-timeframe security requests with proper gap handling
RSI and MACD momentum calculations
Trend strength quantification system
Dynamic gradient backgrounds based on strength
Real-time dashboard with 8 structural metrics
The code is fully open-source and can be modified to suit individual trading styles and preferences.
Originality Statement
This indicator is original in its comprehensive structural integration approach. While individual components (BOS, CHoCH, swing detection) are established concepts, this indicator is justified because:
It synthesizes BOS and CHoCH detection with nested pattern analysis in a unified system
The multi-timeframe confluence detection provides institutional conviction measurement
Momentum shift integration (RSI + MACD) adds confirmation layer to structural breaks
Trend strength quantification distinguishes explosive from weak structural flows
Nested structure analysis reveals micro-patterns within macro-trends for entry timing
The gradient visualization system shows structural conviction through color intensity
Real-time dashboard presents 8 metrics simultaneously for holistic structural analysis
Each component contributes unique information: BOS shows continuation, CHoCH shows reversals, nested structure shows timing, HTF shows conviction, momentum shows acceleration, and strength shows quality. The indicator's value lies in presenting these complementary perspectives simultaneously with unified classification and visual hierarchy.
Disclaimer
This indicator is provided for educational and informational purposes only. It is not financial advice or a recommendation to buy or sell any financial instrument. Trading involves substantial risk of loss and is not suitable for all investors.
Market structure analysis is a tool for understanding price behavior, not a crystal ball for predicting future movement. BOS does not guarantee continuation. CHoCH does not guarantee reversal. Past structural patterns do not guarantee future structural patterns. Market conditions change, and strategies that worked historically may not work in the future.
The structural states displayed are analytical constructs based on current market data, not predictions of future price movement. Structure alignment does not guarantee profitable trades. Users must conduct their own analysis and risk assessment before making trading decisions.
Always use proper risk management, including stop losses and position sizing appropriate for your account size and risk tolerance. Never risk more than you can afford to lose. Consider consulting with a qualified financial advisor before making investment decisions.
The author is not responsible for any losses incurred from using this indicator. Users assume full responsibility for all trading decisions made using this tool.
-Made with passion by officialjackofalltrades Indicator

Orderflow Synthesis Pro [JOAT]Orderflow Synthesis Pro
Introduction
The Orderflow Synthesis Pro is an advanced open-source institutional orderflow analysis indicator that combines Order Block detection, Fair Value Gap identification, Liquidity Pool mapping, and Premium/Discount Array analysis into a unified multi-dimensional flow system. This indicator helps traders identify where institutional money is positioning by analyzing price imbalances, supply/demand zones, and value arrays across the market structure.
Unlike basic support/resistance indicators that simply mark levels, this system dissects orderflow into actionable intelligence: Order Blocks reveal where institutions accumulated or distributed positions, Fair Value Gaps expose price inefficiencies that often get filled, Liquidity Pools identify where stop hunts occur, and Premium/Discount Arrays show whether price is trading at value or extremes. The indicator is designed for traders who understand that institutional footprints can be detected through systematic orderflow analysis.
Why This Indicator Exists
This indicator addresses a critical gap in retail trading: the ability to see institutional orderflow in real-time. Institutional traders leave detectable footprints through their large orders that create specific price patterns. By combining multiple orderflow methodologies, this indicator reveals:
Order Blocks: Last opposing candle before strong directional moves - marks institutional accumulation/distribution zones
Fair Value Gaps: Three-candle price imbalances where price moved too fast, leaving inefficiencies that often get filled
Liquidity Pools: Equal highs and lows where retail stops cluster - prime targets for institutional sweeps
Premium/Discount Arrays: Value zones showing whether price is expensive (premium) or cheap (discount) relative to range
Breaker Blocks: Failed Order Blocks that reverse - signal institutional trap or change in sentiment
Mitigation Blocks: Price returning to Order Blocks for retests - optimal entry opportunities
Each component provides a different lens on institutional behavior. Order Blocks show positioning, Fair Value Gaps show inefficiencies, Liquidity Pools show manipulation targets, and Value Arrays show context. Together, they create a comprehensive view of smart money activity.
Core Components Explained
1. Order Block Detection
Order Blocks represent the last opposing candle before a strong directional move. They mark zones where institutions placed large orders:
// Bullish Order Block: Last bearish candle before strong bullish move
bullishOB = close < open and close > open and
(high - low) > atr * 1.5 and
volume > avgVol * 1.3
The indicator identifies Order Blocks using three criteria:
Candle direction reversal (bearish to bullish or vice versa)
Strong momentum (candle range exceeds ATR threshold)
Volume confirmation (volume exceeds average by multiplier)
Each Order Block displays with a dark box, glowing border, and equilibrium line through the middle (50% level). Strength classification labels blocks as "STRONG" when volume exceeds 1.8x average. Order Blocks remain active until price closes through them (mitigation), at which point they're removed.
2. Fair Value Gap Analysis
Fair Value Gaps (FVGs) occur when price moves so fast that it leaves an imbalance - a gap between three consecutive candles:
// Bullish FVG: Current low > 2 candles ago high
bullishFVG = low > high
fvgSize = (low - high ) / high * 100
FVGs represent price inefficiencies where one side overwhelmed the other. The indicator:
Detects gaps with minimum size threshold (default 0.3%)
Draws semi-transparent boxes marking the imbalance zone
Tracks up to 15 active gaps simultaneously
Auto-removes gaps when price fills them (closes within the zone)
Institutions often return to fill these gaps, making them high-probability reversal or continuation zones depending on context.
3. Liquidity Pool Mapping
Liquidity Pools form at equal highs and lows where retail traders cluster their stop losses. Institutions target these zones to trigger stops before reversing:
The indicator identifies equal highs/lows using pivot detection with tolerance:
Detects swing highs and lows using configurable lookback
Compares pivots to find equal levels within tolerance percentage
Marks zones with thick horizontal lines and labels
Displays "SELL LIQ" above equal highs, "BUY LIQ" below equal lows
When price sweeps these levels and reverses, it signals institutional liquidity grab - often preceding significant moves in the opposite direction.
4. Premium/Discount Arrays
Premium/Discount Arrays classify price position relative to recent range, showing whether price is expensive or cheap:
rangeHigh = ta.highest(high, 50)
rangeLow = ta.lowest(low, 50)
rangeEQ = (rangeHigh + rangeLow) / 2
inPremium = close > rangeEQ and close > (rangeEQ + (rangeHigh - rangeEQ) * 0.5)
inDiscount = close < rangeEQ and close < (rangeEQ - (rangeEQ - rangeLow) * 0.5)
The indicator displays:
Multi-gradient background (red/orange in premium, cyan/green in discount)
Glowing iridescent equilibrium line with pulsing effect
Fibonacci-style levels at 75%, 50%, 25% of range
Dynamic adjustment as range evolves
Institutional traders typically buy in discount zones and sell in premium zones. This provides directional bias for entries.
5. Breaker Blocks
Breaker Blocks occur when an Order Block gets broken and price reverses. They signal failed institutional positioning or traps:
When a bullish Order Block breaks to the downside, it becomes a bearish Breaker Block. When a bearish Order Block breaks to the upside, it becomes a bullish Breaker Block. The indicator marks these with dotted boxes and "BREAKER" labels, showing zones where sentiment shifted.
6. Mitigation Blocks
Mitigation occurs when price returns to an Order Block for a retest. These provide optimal entry opportunities with defined risk:
The indicator marks mitigation with small "MIT" labels when price touches an active Order Block and shows rejection (bullish candle at bullish OB, bearish candle at bearish OB). This confirms the zone is holding and institutions are defending it.
Visual Elements
Order Block Boxes: Dark fill with glowing neon borders (cyan for bullish, magenta for bearish)
Equilibrium Lines: Dashed lines through Order Block midpoints
Fair Value Gap Boxes: Semi-transparent fills (green for bullish, red for bearish)
Liquidity Lines: Thick horizontal lines at equal highs/lows
Premium/Discount Background: Multi-color gradient showing value zones
Equilibrium Glow: Multi-layer iridescent line with pulsing effect
Gradient Candles: Optional candle coloring based on strength and context
Dashboard: Real-time metrics showing active zones and confluence
The dashboard displays 8 key metrics:
1. Confluence Level (Extreme/Strong/Moderate/Weak)
2. Active Order Blocks count
3. Open Imbalance Zones (FVGs)
4. Liquidity Pool count
5. Value Array position (Premium/Discount/Equilibrium)
6. Flow State (Explosive/Active/Dormant)
7. Signal Quality score (0-100)
Input Parameters
Order Block Detection:
Lookback Period: Bars to analyze for OB formation (default: 20)
Volume Multiplier: Threshold for volume confirmation (default: 1.3)
ATR Multiplier: Threshold for momentum confirmation (default: 1.5)
Maximum Active Blocks: Limit displayed OBs (default: 8)
Strength Classification: Enable/disable strength labels
Fair Value Gaps:
Minimum Gap Size: Percentage threshold for FVG detection (default: 0.3%)
Maximum Active Gaps: Limit displayed FVGs (default: 15)
Auto-Fill Detection: Remove gaps when filled
Quality Filter: All/Strong Only/Extreme Only
Liquidity Analysis:
Swing Detection Length: Pivot lookback for equal highs/lows (default: 5)
Level Tolerance: Percentage range for "equal" levels (default: 0.15%)
Show Sweep Markers: Display liquidity grab boxes
Volume Confirmation: Require volume spike for liquidity zones
Premium/Discount Arrays:
Array Lookback Period: Range calculation period (default: 50)
Fibonacci Levels: Show 75%/50%/25% levels
Dynamic Equilibrium: Adjust EQ line in real-time
Advanced Orderflow:
Volume Imbalance: Mark high-volume candles
Breaker Blocks: Show failed Order Blocks
Mitigation Blocks: Mark OB retests
Gradient Candles: Color candles by strength
How to Use This Indicator
Step 1: Identify Value Context
Check the Premium/Discount Array background. Look for entries in discount zones for longs, premium zones for shorts. The equilibrium line shows fair value.
Step 2: Locate Order Blocks
Find active Order Blocks in your direction. Bullish OBs in discount = high-probability long zones. Bearish OBs in premium = high-probability short zones.
Step 3: Watch for Fair Value Gaps
FVGs often get filled. When price approaches an FVG in your direction, prepare for potential retest entry. FVG + Order Block confluence = strongest setups.
Step 4: Monitor Liquidity Pools
Equal highs/lows are magnets for price. Expect sweeps before reversals. When price takes liquidity and shows rejection, it signals institutional positioning complete.
Step 5: Confirm with Mitigation
Wait for price to return to Order Blocks (mitigation). Enter on rejection candles at OB equilibrium lines with stops below/above the block.
Step 6: Check Confluence Score
Dashboard shows confluence level. Extreme/Strong = high-probability setups. Multiple components aligning (OB + FVG + Liquidity + Value Zone) = best entries.
Best Practices
Use on liquid instruments (major forex, large-cap stocks, major crypto) for reliable signals
Combine with higher timeframe bias - trade in direction of HTF structure
Order Blocks work best at key levels - look for OBs near support/resistance
FVG fills don't always happen immediately - be patient
Liquidity sweeps often happen at session opens (London/New York)
Premium/Discount context is critical - don't buy premium or sell discount
Breaker Blocks signal trend changes - respect them
Volume imbalance + Order Block = strongest zones
Multiple mitigation attempts weaken Order Blocks
Indicator Limitations
Orderflow analysis works best on trending markets with clear structure
Choppy, low-volume conditions produce unreliable signals
Order Blocks can fail - always use stop losses
Fair Value Gaps may not fill immediately or at all in strong trends
Liquidity sweeps can extend further than expected (stop hunts)
Premium/Discount zones are relative - not absolute support/resistance
The indicator shows where institutions likely positioned, not guaranteed future direction
Multiple Order Blocks can create conflicting signals - use confluence
Breaker Blocks require confirmation - don't trade the break alone
Technical Implementation
Built with Pine Script v6 using:
Custom Order Block detection with volume and ATR filters
Three-candle Fair Value Gap calculations
Pivot-based liquidity pool identification with tolerance
Dynamic Premium/Discount Array with gradient visualization
Breaker Block detection through OB invalidation tracking
Mitigation Block confirmation with candle pattern recognition
Real-time confluence scoring system
Advanced gradient color schemes with iridescent effects
Comprehensive dashboard with 8 real-time metrics
The code is fully open-source and can be modified to suit individual trading styles and preferences.
Originality Statement
This indicator is original in its comprehensive integration approach. While individual components (Order Blocks, Fair Value Gaps, Liquidity Pools, Premium/Discount) are established ICT concepts, this indicator is justified because:
It synthesizes four distinct orderflow methodologies into a unified system with confluence scoring
The Breaker Block detection provides failed Order Block analysis not available in standard OB indicators
Mitigation Block tracking combines OB retests with candle pattern confirmation for entry precision
The Premium/Discount Array uses multi-gradient visualization with iridescent equilibrium lines
Volume imbalance integration adds confirmation layer to all components
The confluence scoring system quantifies setup quality across all orderflow elements
Real-time dashboard presents 8 metrics simultaneously for holistic orderflow analysis
Each component contributes unique information: Order Blocks show positioning, Fair Value Gaps show inefficiencies, Liquidity Pools show manipulation, Premium/Discount shows context, Breakers show failures, and Mitigation shows retests. The indicator's value lies in presenting these complementary perspectives simultaneously with unified classification and visual hierarchy.
Disclaimer
This indicator is provided for educational and informational purposes only. It is not financial advice or a recommendation to buy or sell any financial instrument. Trading involves substantial risk of loss and is not suitable for all investors.
Orderflow analysis is a tool for understanding market dynamics, not a crystal ball for predicting future price movement. Order Blocks do not guarantee reversals. Fair Value Gaps may not fill. Liquidity sweeps can fail. Past orderflow patterns do not guarantee future orderflow patterns. Market conditions change, and strategies that worked historically may not work in the future.
The zones displayed are analytical constructs based on current market data, not predictions of future price movement. High confluence scores do not guarantee profitable trades. Users must conduct their own analysis and risk assessment before making trading decisions.
Always use proper risk management, including stop losses and position sizing appropriate for your account size and risk tolerance. Never risk more than you can afford to lose. Consider consulting with a qualified financial advisor before making investment decisions.
The author is not responsible for any losses incurred from using this indicator. Users assume full responsibility for all trading decisions made using this tool.
-Made with passion by officialjackofalltrades Indicator
