Verdance Regime Cipher [JOAT]Verdance Regime Cipher
Introduction
The Verdance Regime Cipher is an open-source market regime classification overlay that identifies and tracks four distinct market states in real-time: Bullish Trend, Bearish Trend, Volatile Disruption, and Equilibrium Range. Rather than relying on a single indicator to determine market conditions, VRC fuses ATR percentile ranking, custom directional movement scoring, volume regime analysis, EMA trend alignment, and optional Chaikin volatility blending into a unified regime detection engine. A two-bar confirmation filter prevents single-bar flicker, and an optional higher-timeframe alignment check adds macro confluence before confirming any regime.
This indicator exists because most traders use trend indicators that only answer "up or down" — they fail to distinguish between a strong directional move, a choppy range, and a volatile transition that could trap both sides. VRC answers a more nuanced question: what type of market environment are we in right now, how fresh is it, and does the macro timeframe agree?
Core Engine: How Regime Classification Works
The regime engine combines four independent measurements into a single classification:
Dispersion Gauge (ATR Percentile): The indicator computes ATR over a configurable period, then ranks it against its own history using percentile ranking. This tells you whether current volatility is high, low, or average relative to recent behavior — not just the raw ATR value.
Polarity Scanner (Directional Movement): A custom directional movement score is calculated by comparing smoothed positive and negative directional movement. The result is normalized to a -1 to +1 range, where positive values indicate bullish directional pressure and negative values indicate bearish pressure.
Flux Ratio (Volume Regime): Short-term volume (3-bar SMA) is divided by longer-term volume (configurable period SMA), then percentile-ranked. This identifies whether volume is elevated relative to its own history, which helps distinguish genuine trending moves from low-conviction drifts.
Prism Alignment (EMA Spread): The spread between a fast and slow EMA is normalized by ATR. This provides a volatility-adjusted measure of trend strength — a large spread in a low-volatility environment means something different than the same spread during high volatility.
These four measurements feed into the classification logic:
bool isVolatile = atrPct > volGate and volPct > 60 and thermalHot
bool isTrending = atrPct > trendGate and not isVolatile
bool isBullDir = dirScore > 0.1 and emaDelta > 0.5
bool isBearDir = dirScore < -0.1 and emaDelta < -0.5
Volatile Disruption requires both high ATR percentile AND elevated volume percentile — this prevents misclassifying a quiet drift as volatile just because ATR is slightly elevated. Trending states require the ATR percentile to exceed the drift threshold while NOT being volatile, combined with directional confirmation from both the polarity scanner and prism alignment.
Two-Bar Confirmation and Regime Stability
Raw regime changes are not applied immediately. A pending regime must persist for two consecutive bars before it becomes the confirmed regime. This eliminates the single-bar flicker that plagues most regime indicators, where the classification bounces back and forth on noisy bars.
Thermal Pressure (Chaikin Volatility Blend)
When enabled, the indicator blends Chaikin volatility — which measures the rate of change of the high-low range — into the volatile regime detection. This adds a "thermal" dimension: the market must show not just high ATR, but accelerating range expansion, before being classified as volatile. The Chaikin volatility is percentile-ranked against its own history, and only when it exceeds the 65th percentile does it confirm the volatile state.
Horizon Lock (Higher-Timeframe Confluence)
The Horizon Lock feature fetches EMA bias from a configurable higher timeframe (default: 60-minute) and checks whether the macro trend direction agrees with the local regime. When the local regime says "bullish" but the higher timeframe EMAs are bearish, the Horizon Lock reports "DIVERGENT" — a warning that the local trend may lack macro support. This uses non-repainting security calls with lookahead disabled.
Momentum Decay Index
Every regime ages. VRC tracks how many bars the current regime has persisted and computes an exponential decay score from 100% (just started) toward 0%. Regimes are classified as FRESH (above 70%), MATURE (35-70%), or STALE (below 35%). Stale regimes have elevated reversal probability. The decay rate is calibrated so that regimes naturally transition through these phases over time, giving traders a sense of how "tired" the current move is.
Signal Architecture
VRC generates five distinct signal types, all edge-triggered and confirmed-bar only:
Regime Shift Signals: Labels appear when the confirmed regime transitions — ASCENT LOCK, DESCENT LOCK, ERUPTION, or EQUILIBRIUM — each with a tooltip showing polarity score and decay percentage.
Thermal Spike Markers: Fire when Chaikin volatility surges above the 85th percentile, marking bars of extreme range expansion.
Polarity Fracture: Detects divergence between price action and directional momentum — price making new highs while the polarity score is declining, or vice versa. This is an early warning of trend exhaustion.
Decay Warnings: Alert when the regime freshness drops below 20%, signaling that the current regime is aging and reversal probability is elevated.
Horizon Lock/Break Signals: Mark the moment when higher-timeframe alignment is gained or lost.
Visual Elements
Regime Aura: Subtle background tint reflecting the current regime state (green for bullish, red for bearish, orange for volatile, purple for range). A secondary wash appears when the Horizon Lock is divergent.
Prism Lines: Fast and slow EMAs plotted with opacity driven by regime decay — fresher regimes produce more vivid lines, stale regimes fade them.
Regime Pulse Band: An ATR-based envelope around the fast EMA whose width scales with regime intensity. Wider bands during volatile regimes, tighter during ranges.
Regime Candle Tinting: Candles colored by current regime state for instant visual recognition.
Command Panel: An 11-row monospace dashboard displaying: regime substate, polarity score, dispersion rank, flux ratio, prism bias, kinetic phase, flux percentile, thermal pressure, horizon lock status, decay index, and regime age.
Dashboard Metrics Explained
The Command Panel provides real-time regime intelligence:
POLARITY: Directional movement score (-1 to +1). Positive = bullish pressure, negative = bearish pressure.
DISP %R: ATR percentile rank. Above the eruption threshold = volatile, above drift threshold = trending, below = ranging.
FLUX: Volume ratio (short/long SMA). Values above 1.2 indicate elevated volume activity.
PRISM: ATR-normalized EMA spread. Positive = fast EMA above slow, negative = below.
PHASE: Combined kinetic classification — KINETIC (strong directional move), INERTIAL (moderate), or DORMANT (weak).
THERMAL: Chaikin volatility percentile. Above 75% = extreme range expansion.
HORIZON: LOCKED (macro aligned), DIVERGENT (macro conflicting), or OFF (disabled).
DECAY: Regime freshness — FRESH, MATURE, or STALE with percentage.
Input Parameters
Regime Nucleus:
Dispersion Gauge: ATR lookback (default 14)
Polarity Scanner: Directional movement window (default 20)
Flux Depth: Volume analysis period (default 14)
Epoch Window: Percentile ranking lookback (default 50)
Drift Threshold: ATR percentile for trending classification (default 55)
Eruption Threshold: ATR percentile for volatile classification (default 70)
Chaikin Volatility Blend:
Enable Thermal Pressure: Toggle Chaikin blend (default on)
Thermal Period / Rate: Chaikin EMA and ROC parameters
Macro Confluence:
Enable Horizon Lock: Toggle HTF alignment check (default on)
Horizon Timeframe: Selectable from 30m to Weekly
How to Use This Indicator
Use the regime classification to filter your existing strategy — only take trend-following setups during ASCENT or DESCENT regimes, and avoid them during EQUILIBRIUM or ERUPTION.
Watch the Decay Index — when a regime becomes STALE, be cautious about entering new positions in that direction.
Pay attention to Polarity Fracture signals — they often precede regime transitions by several bars.
Use Horizon Lock to confirm that your local timeframe trend has macro support. DIVERGENT status is a warning flag.
Thermal Spike markers highlight bars of extreme range expansion — these often mark the beginning or climax of volatile moves.
Limitations
Regime classification is inherently lagging — the two-bar confirmation filter adds stability but delays transitions.
The indicator classifies the current environment but does not predict the next one. A FRESH bullish regime can still reverse.
Higher-timeframe alignment depends on the selected timeframe — different HTF choices may produce different Horizon Lock readings.
Volume-based measurements (Flux Ratio) are less reliable on instruments with inconsistent volume data.
The Decay Index is a heuristic, not a statistical probability — it provides intuition about regime age, not a precise reversal forecast.
This indicator does not generate buy/sell signals — it provides context for your own decision-making.
Originality Statement
This indicator is original in its multi-dimensional regime classification approach. While ATR, directional movement, and volume analysis are established concepts individually, VRC is justified because:
It fuses four independent measurements (ATR percentile, directional movement, volume regime, EMA spread) into a unified four-state classification that goes beyond simple "trending vs ranging."
The two-bar confirmation filter with exponential decay tracking provides regime lifecycle awareness not found in standard regime indicators.
Chaikin volatility blending adds a thermal dimension that distinguishes genuine volatile disruptions from merely elevated ATR.
The Horizon Lock feature integrates macro-timeframe confluence directly into the regime engine rather than requiring a separate indicator.
Polarity Fracture detection identifies directional divergence as an early warning system for regime transitions.
The comprehensive dashboard presents regime intelligence across 11 metrics simultaneously.
Disclaimer
This indicator is provided for educational and informational purposes only. It is not financial advice. Regime classification helps contextualize market conditions but does not predict future price movement. Past regime patterns do not guarantee future behavior. Always use proper risk management and conduct your own analysis before making trading decisions. The author is not responsible for any losses incurred from using this tool.
-Made with passion by officialjackofalltrades
Indicator

Helion Trend Weave [JOAT]Helion Trend Weave
Introduction
The Helion Trend Weave is an open-source volatility-adaptive multi-MA ribbon overlay that self-adjusts its period lengths based on real-time ATR regime. In high-volatility environments, periods shorten for faster response; in calm markets, they lengthen for noise reduction. The ribbon consists of up to 12 moving average filaments with four-state color logic that provides instant trend phase recognition: dominant rise, fading rise, dominant fall, and fading fall. Beyond simple trend direction, HTW measures ribbon spread as a trend strength gauge, detects compression squeezes, identifies ribbon inversions (twists), and generates six distinct signal types — all with cooldown-based anti-overlap to keep the chart clean.
This indicator addresses a fundamental limitation of static moving average systems: fixed periods that work well in one volatility environment fail in another. A 20-period EMA that provides clean signals in a trending market produces whipsaws in a choppy one. HTW solves this by dynamically morphing all ribbon periods through a volatility ratio, while providing a comprehensive suite of trend diagnostics through its dashboard and signal architecture.
Core Engine: Volatility Morphing
The adaptive period system works by computing a volatility ratio between a fast ATR and a slow ATR:
float volReg = atrL != 0 ? atrS / atrL : 1.0
float adaptMult = adaptive ? math.max(adaptMin, math.min(adaptMax, 1.5 / volReg)) : 1.0
When short-term volatility exceeds long-term volatility (ratio > 1), the multiplier decreases below 1.0, shortening all periods for faster reaction. When volatility contracts (ratio < 1), the multiplier increases above 1.0, lengthening periods for noise filtering. The morph floor and ceiling are configurable to prevent extreme period distortion. Every filament in the ribbon is calculated as:
Period = max(2, round((basePeriod + index * spacing) * adaptMult))
This means the entire ribbon breathes with the market — expanding its lookback during calm periods and contracting it during volatile ones.
Multi-MA Ribbon Architecture
The ribbon supports up to 12 filaments using EMA, SMA, or SMMA calculation types. Each filament is computed with inline EMA/RMA logic at global scope to handle the series-int periods that result from adaptive morphing. The filaments are plotted with progressive transparency — the lead filament is vivid and thick, while trailing filaments fade gradually, creating a visual depth effect.
Four-State Color Logic
Rather than simple bullish/bearish coloring, HTW uses four states based on two conditions — trend direction (lead above/below anchor) and momentum (lead rising/falling):
Dominant Rise: Lead filament above anchor AND rising — strong bullish momentum
Fading Rise: Lead filament above anchor but NOT rising — bullish trend losing steam
Dominant Fall: Lead filament below anchor AND falling — strong bearish momentum
Fading Fall: Lead filament below anchor but NOT falling — bearish trend losing steam
The "fading" states are early warnings that a trend may be approaching exhaustion before an actual crossover occurs.
Trend Diagnostics
Ribbon Spread: The absolute distance between the fastest and slowest filaments, normalized by ATR. This serves as a volatility-adjusted trend strength gauge. The spread is percentile-ranked against its own history and classified as DOMINANT (>70th), DEVELOPING (30-70th), or DORMANT (<30th).
Alignment Score: Measures what percentage of filament segments are in correct sequential order (ascending for bull, descending for bear). LOCKED = 100% alignment, PARTIAL = 50%+, SCATTERED = below 50%. Full alignment is a powerful trend confirmation.
Spread Momentum: Rate of change of the normalized spread — EXPANDING, CONTRACTING, or FLAT. Expanding spread after compression often signals the beginning of a significant move.
Compression Chamber (Squeeze Detection)
The indicator percentile-ranks the raw ribbon spread against a configurable lookback. When the spread falls below the compression percentile threshold (default: 10th percentile), the ribbon is considered "squeezed" — a state that often precedes explosive directional moves. A subtle background aura highlights compression periods.
Signal Architecture
HTW generates six signal types, each with independent cooldown timers and a global anti-overlap system that ensures only one label appears per bar (priority: Cross > Surge > Twist > Fan > Snap > Drift):
IGNITE / QUENCH (Weave Cross): Lead filament crosses above or below the anchor filament — the core directional signal.
SURGE (Momentum Surge): Compression releases into rapid expansion — the ribbon was squeezed and is now expanding with directional conviction. This is a structural breakout signal.
TWIST LOCK: Ribbon inversion confirmed after a configurable number of bars of sustained new alignment. More conservative than a simple crossover.
FAN (Filament Fan): All filaments achieve perfect sequential order — a powerful trend confirmation that indicates full ribbon alignment.
SNAP (Snap Recoil): Price crosses the ribbon midpoint against the current trend direction while the ribbon has meaningful width. This is a mean-reversion signal.
DRIFT (Drift Fade): Trend force decays to dormant level — an exhaustion warning when the spread percentile drops below 15%.
// Global anti-overlap: only one label per bar (priority order)
bool doCross = (bullCross or bearCross) and not barUsed
bool doSurge = (surgeUp or surgeDn) and not barUsed and not doCross
bool doTwist = (twistBullEdge or twistBearEdge) and not barUsed and not doCross and not doSurge
Command Panel (Dashboard)
A 12-row monospace dashboard displays real-time trend intelligence:
PHASE: Current four-state classification (Dominant Rise, Fading Rise, Dominant Fall, Fading Fall)
FORCE: Trend strength classification with percentile (DOMINANT / DEVELOPING / DORMANT)
APERTURE: Normalized ribbon spread with expansion/contraction direction
ALIGNMENT: Filament sequential order score (LOCKED / PARTIAL / SCATTERED)
MORPH: Current adaptive period multiplier (e.g., 0.75x in high vol, 1.8x in low vol)
COMPRESS: Whether the ribbon is currently in a squeeze state
WEAVE: Current MA type and filament count configuration
VOL REG: Raw volatility ratio (fast ATR / slow ATR)
MIDPOINT: Whether price is above or below the ribbon midpoint, with the midpoint price
LEAD PER / ANCHOR PER: Current effective periods after morphing
Input Parameters
Helix Parameters:
Filament Type: EMA, SMA, or SMMA (default EMA)
Origin Period: Fastest MA period (default 5)
Weave Depth: Number of filaments, 3-12 (default 8)
Filament Spacing: Period increment between filaments (default 5)
Volatility Morphing: Enable/disable adaptive periods (default on)
Morphic Tuning:
Impulse ATR / Anchor ATR: Fast and slow ATR periods for volatility ratio
Morph Floor / Ceiling: Minimum and maximum period multiplier bounds
Compression Chamber:
Compression Aura: Toggle squeeze background highlight
Chamber Lookback / Compression Percentile: Squeeze detection parameters
Signal Architecture:
Individual toggles for all six signal types
Twist Confirmation: Bars of sustained inversion required (default 2)
How to Use This Indicator
Watch for SURGE signals after compression periods — these often mark the beginning of significant directional moves.
Use the four-state color system to identify trend exhaustion early. "Fading" states warn that momentum is weakening before a crossover occurs.
FAN signals (full filament alignment) are powerful trend confirmations — they indicate that all timeframe layers of the ribbon agree on direction.
SNAP signals provide counter-trend opportunities when price crosses the ribbon midpoint against a wide ribbon — but use them with caution and additional confirmation.
Monitor the MORPH multiplier in the dashboard — extreme values (very low or very high) indicate unusual volatility conditions.
The ALIGNMENT metric helps distinguish between clean trends (LOCKED) and choppy conditions (SCATTERED).
Limitations
Moving average ribbons are inherently lagging — the adaptive morphing reduces but does not eliminate this lag.
Compression detection identifies potential breakout setups but does not predict breakout direction.
The adaptive period system can produce rapid period changes during volatile transitions, which may cause visual noise in the ribbon.
SNAP (mean reversion) signals are counter-trend and carry higher risk than trend-following signals.
The indicator works best on liquid instruments with consistent price action. Thin markets may produce unreliable morphing behavior.
Signal cooldowns prevent spam but may also suppress valid signals that occur in rapid succession.
Originality Statement
This indicator is original in its integration of volatility-adaptive period morphing with comprehensive ribbon diagnostics. While moving average ribbons are a known concept, HTW is justified because:
The ATR-ratio-based period morphing dynamically adjusts all filament periods simultaneously, creating a ribbon that breathes with market volatility — unlike static ribbon indicators.
Four-state color logic (rising/falling crossed with above/below) provides phase recognition beyond simple bullish/bearish classification.
The alignment scoring system quantifies ribbon sequential order as a percentage, providing a measurable trend quality metric.
Six distinct signal types with priority-based anti-overlap and independent cooldowns create a clean, non-cluttered signal architecture.
Compression detection integrated directly into the ribbon spread provides squeeze identification without requiring a separate indicator.
The comprehensive 12-row dashboard presents trend diagnostics including effective morphed periods, spread momentum, and alignment state.
Disclaimer
This indicator is provided for educational and informational purposes only. It is not financial advice. Moving average systems identify trends after they begin and cannot predict future price direction. Past trend patterns do not guarantee future behavior. Always use proper risk management and conduct your own analysis before making trading decisions. The author is not responsible for any losses incurred from using this tool.
-Made with passion by officialjackofalltrades
Indicator

Ferrum Pressure Gauge [JOAT]Ferrum Pressure Gauge
Introduction
The Ferrum Pressure Gauge is an open-source composite momentum-volume oscillator that fuses three independent pressure measurements — volume-weighted momentum, price velocity with acceleration, and RSI-derived trend pressure — into a single index displayed in a separate pane. The index is paired with a signal (resonance) line, and the space between them is filled with an 8-layer gradient that visually communicates momentum intensity at a glance. Dynamic non-repainting zones adapt to recent range, divergence detection identifies price-vs-index fractures, and a precursor engine spots early reversal conditions before the main index confirms them.
Most momentum oscillators measure a single dimension — either price momentum or volume momentum, but rarely both in a unified way. FPG addresses this by weighting price changes by volume activity through a logarithmic volume impact function, then combining that with velocity, acceleration, and RSI into a composite reading. The result is an oscillator that responds to both the speed and the conviction behind price moves.
Core Engine: Fusion Reactor
The composite index is built from three sub-components:
1. Volume-Weighted Momentum (Net Flow)
Price changes are scaled by a logarithmic volume impact function that amplifies moves occurring on above-average volume while dampening moves on thin volume:
float vRatio = ta.sma(volume, 3) / ta.sma(volume, volPeriod)
float vwMom = pChange * math.log(1 + vRatio * volSens)
The logarithmic scaling prevents extreme volume spikes from producing absurdly large momentum readings while still giving meaningful weight to elevated volume. Fast and slow EMAs of this volume-weighted momentum produce a dual-speed flow, and their difference (smoothed) becomes the Net Flow component.
2. Price Velocity and Acceleration
Velocity measures the average price change per bar over the fast period. Acceleration is the change in velocity — it detects whether momentum is building or fading. These are combined with the volume ratio and scaled to produce the Flow Strength component.
3. RSI Trend Pressure
RSI is centered around zero (RSI - 50) and smoothed, providing a bounded measure of trend pressure that complements the unbounded volume-weighted components.
The three components are averaged and passed through a final WMA smoothing pass to produce the Pressure Index. A separate EMA of the index produces the Resonance (signal) line.
8-Layer Gradient Fill
The space between the Pressure Index and the Resonance Line is divided into 8 equal segments, each filled with progressively increasing transparency. This creates a smooth gradient that is dense and vivid when momentum is strong (large gap between index and signal) and thin and faded when momentum is weak. The gradient direction and color shift based on whether the index is positive or negative and whether it is in the upper or lower crucible zone.
Dynamic Crucible Boundaries (Non-Repainting Zones)
Rather than using fixed overbought/oversold levels, FPG calculates dynamic zones based on the recent range of the index:
float rHi = ta.highest(idx, zoneLen)
float rLo = ta.lowest(idx, zoneLen)
float volF = (rHi - rLo) / 2
float upperZ = math.min(60, 30 + volF * 0.3)
float lowerZ = math.max(-60, -30 - volF * 0.3)
The offset on highest/lowest ensures these zones never repaint. They widen during volatile periods and tighten during calm ones, adapting the overbought/oversold thresholds to current market conditions rather than using arbitrary fixed levels.
Volume Climax (Surge Detection)
The indicator percentile-ranks current volume against a configurable lookback (default 100 bars). When volume exceeds the 90th percentile, a surge is detected. The edge-triggered SURGE label fires only on the first bar of the spike, marking potential climax events where institutional-scale volume enters the market.
Exhaustion Index (Fatigue Meter)
When the Pressure Index dwells in an extreme zone (above upper or below lower boundary), a fatigue counter increments each bar. The fatigue percentage rises linearly toward 100% over a configurable horizon (default 20 bars). Fatigue is classified as NONE, MILD, BUILDING, or CRITICAL. Critical fatigue warns that momentum has been stretched for an extended period and reversal probability is elevated.
Fracture Detection (Divergence)
The indicator detects classic divergences between price and the Pressure Index:
Bullish Fracture: Price is falling (making lower lows) while the Pressure Index is rising — hidden buying pressure beneath falling prices.
Bearish Fracture: Price is rising (making higher highs) while the Pressure Index is falling — hidden selling pressure beneath rising prices.
Fracture signals are confirmed-bar only and placed outside the crucible boundaries to avoid overlapping with the main index plot.
Precursor Engine (Early Reversal Detection)
The precursor engine identifies conditions where the fast and slow flow lines cross while the main index is on the opposite side of zero:
IGNITION (Bullish Precursor): Fast flow crosses above slow flow while the Pressure Index is still negative — early bullish momentum building before the index turns positive.
QUENCH (Bearish Precursor): Fast flow crosses below slow flow while the Pressure Index is still positive — early bearish momentum building before the index turns negative.
These signals often lead the main index crossover by several bars, providing an early warning system.
Command Panel (Dashboard)
A 9-row monospace dashboard displays:
PRESSURE: Current Pressure Index value with color reflecting zone position
RESONANCE: Current signal line value
FLOW: Net flow delta (fast minus slow) — the raw momentum differential
FLUX: Volume ratio (short/long SMA) — values above 1.2 indicate elevated activity
CRUCIBLE: Current dynamic upper and lower zone boundaries
SURGE: Whether volume is currently in a climax state (ACTIVE / QUIET)
FATIGUE: Exhaustion classification with percentage (NONE / MILD / BUILDING / CRITICAL)
DELTA: Histogram value (index minus signal) — positive = bullish momentum, negative = bearish
Input Parameters
Fusion Reactor:
Ignition Cycle: Fast EMA period (default 8)
Sustain Cycle: Slow EMA period (default 21)
Flux Epoch: Volume SMA lookback (default 14)
Flux Amplifier: Volume impact scaling (default 1.5)
Forge Smoothing / Temper Pass: Composite and final smoothing
Resonance Layer:
Resonance Period: Signal line EMA (default 12)
Crucible Boundaries: Toggle dynamic zones
Boundary Lookback: Zone calculation window (default 50)
Volume Climax:
Enable Surge Detection / Surge Percentile / Surge Lookback
Exhaustion Index:
Enable Fatigue Meter / Fatigue Horizon: Bars in extreme zone before max fatigue
Fracture Detection:
Show Fractures / Fracture Lookback: Divergence detection parameters
Precursor Engine:
Show Precursors: Toggle early reversal signals
How to Use This Indicator
Use the Pressure Index crossing above/below the Resonance Line as a momentum confirmation signal — similar to MACD crossovers but volume-weighted.
Watch for IGNITION/QUENCH precursor signals — they often lead the main crossover by several bars and can provide earlier entries.
FRACTURE (divergence) signals are among the most reliable warnings of trend exhaustion. A bullish fracture during a downtrend suggests hidden accumulation.
Monitor the Fatigue meter when the index is in an extreme zone. CRITICAL fatigue combined with a fracture signal is a high-probability reversal setup.
SURGE markers highlight institutional-scale volume events. A surge occurring at a crucible boundary often marks a climax reversal point.
The 8-layer gradient provides instant visual feedback — dense, vivid fills indicate strong momentum conviction; thin, faded fills indicate weakening momentum.
Limitations
Like all momentum oscillators, FPG is lagging — it confirms momentum after it has begun, not before.
Divergence (fracture) signals can persist for extended periods before price reverses. They indicate weakening momentum, not guaranteed reversals.
Precursor signals are early by design and therefore have a higher false-positive rate than confirmed crossover signals.
Volume-weighted calculations are less reliable on instruments with inconsistent or unreported volume data.
The Fatigue meter is a heuristic based on time-in-zone, not a statistical probability. Extended trends can maintain extreme readings longer than expected.
Dynamic zones adapt to recent range but may lag during sudden regime changes.
Originality Statement
This indicator is original in its composite fusion approach. While MACD, RSI, and volume analysis are established concepts individually, FPG is justified because:
The logarithmic volume-weighted momentum calculation provides a unique fusion of price change and volume conviction that differs from standard MACD or OBV approaches.
Three independent sub-components (volume-weighted flow, velocity/acceleration, RSI pressure) are composited into a single index, providing multi-dimensional momentum measurement.
The 8-layer gradient fill between index and signal line creates a visual momentum density map not found in standard oscillators.
Dynamic non-repainting crucible boundaries adapt overbought/oversold levels to current conditions rather than using fixed thresholds.
The Exhaustion Index tracks time-in-extreme-zone as a fatigue metric, adding a temporal dimension to momentum analysis.
The Precursor Engine identifies early flow crossovers while the main index is on the opposite side, providing leading signals ahead of the main crossover.
Volume Climax detection via percentile ranking integrates institutional-scale volume event identification directly into the oscillator.
Disclaimer
This indicator is provided for educational and informational purposes only. It is not financial advice. Momentum oscillators describe the current state of price momentum but do not predict future price direction. Overbought conditions can persist in strong trends, and oversold conditions can deepen in bear markets. Always use proper risk management and conduct your own analysis before making trading decisions. The author is not responsible for any losses incurred from using this tool.
-Made with passion by officialjackofalltrades
Indicator

XAUUSD Quant SMC (10Min)Estrategia XAUUSD: Convergencia de Estructura y Optimización de Descuento (SMC)
Esta estrategia automatizada para Pine Script v5 implementa un modelo de ejecución basado en Smart Money Concepts (SMC), priorizando la preservación de capital mediante un control de riesgo algorítmico y filtros de tendencia de alta jerarquía.
Fundamentos Teóricos
El sistema opera bajo la premisa de que el precio se mueve de forma fractal, buscando liquidez tras quiebres de estructura confirmados. Se enfoca exclusivamente en el mercado del Oro (XAUUSD) debido a su alta volatilidad y profundidad de mercado, factores necesarios para la validación de zonas de oferta y demanda.
1. Filtros de Direccionalidad de Alta Jerarquía
La estrategia no busca reversiones. Utiliza un motor de análisis multi-timeframe (MTF) para asegurar que la ejecución en micro-tendencias (10Min) esté alineada con el flujo de órdenes institucional de marcos temporales mayores:
Contexto Diario (1 Semana): Define el sesgo direccional a largo plazo.
Estructura de 4 Horas (4H): Actúa como filtro de impulso para evitar periodos de distribución o acumulación lateral.
2. Confirmación de Estructura (BOS)
La validación de la entrada requiere un Break of Structure (BOS) en la temporalidad de 15 minutos. Este evento técnico confirma que el mercado ha superado un punto de pivot relevante, validando la continuación del movimiento previo y estableciendo un nuevo rango de negociación.
3. Ejecución en Zona de Descuento
Una vez detectado el BOS, el algoritmo proyecta niveles de retroceso de Fibonacci. La entrada se programa en el nivel 0.618, buscando optimizar la relación Riesgo/Beneficio (RR). Este nivel representa la "zona de descuento" (en compras) o "zona premium" (en ventas), donde la probabilidad de continuación es estadísticamente superior tras la toma de liquidez interna.
Protocolo de Gestión de Riesgo Cuantitativo
El núcleo de la estrategia es su gestión de riesgo inflexible, diseñada para mitigar el impacto de las rachas de pérdidas y evitar el sobre-apalancamiento.
Riesgo Fijo: 1% del valor actual del capital por cada operación. El lotaje se recalcula dinámicamente en cada señal en función de la distancia al Stop Loss.
Ventana Operativa: Limitada de 07:00 a 13:00 (GMT+1). Este rango captura la volatilidad de apertura de Londres y el solapamiento inicial con Nueva York, periodos donde los BOS tienen mayor validez.
Límites de Pérdida (Circuit Breakers):
Diario: -1% (Límite de un trade por día).
Semanal: -3% acumulado.
Mensual: -6% acumulado.
Objetivo Semanal (Safe Exit): Alcanzado un beneficio del +3% en la semana, el script cesa la actividad operativa para asegurar el rendimiento y evitar el riesgo de mercado innecesario.
Especificaciones Técnicas y Configuración
Activo: XAUUSD.
Temporalidad de ejecución: 10Min (Análisis en 1 Semana, 4H, 15M).
Versión de Script: Pine Script v5 (Sin Lookahead Bias).
Nivel de Entrada: 0.618 Fibonacci.
Stop Loss: Colocado en el origen del impulso (inicio del rango de Fibonacci).
Notas de Implementación
Para obtener resultados de backtesting realistas, se recomienda configurar un deslizamiento (Slippage) de 3 a 5 ticks y aplicar comisiones equivalentes a las de una cuenta ECN (Raw Spread). El script utiliza funciones de seguridad para solicitar datos de otras temporalidades solo al cierre de cada vela, eliminando cualquier sesgo de anticipación de datos futuros. Strategy

Crucible Convergence Engine [JOAT]Crucible Convergence Engine
Introduction
The Crucible Convergence Engine is an open-source multi-module convergence strategy that requires alignment across five independent analytical engines before entering a trade. It fuses a Regime Arbiter (market state classification), Directional Helix (trend direction), Pressure Reactor (volume-weighted momentum), Deviation Lattice (statistical band filter), and Fortress Grid (dynamic S/R levels) into a unified convergence scoring system. Entries only fire when all required modules agree — regime confirms a trending state, trend direction aligns, momentum confirms, price is not at a statistical extreme, and volume exceeds its gate threshold. Exits are managed through ATR-based stops and targets, an optional trailing shield, regime flip detection, lattice extreme reversal, and rail interaction exits.
This strategy exists because most trading systems rely on one or two confirmation layers. A moving average crossover with an RSI filter, for example, still enters trades in ranging markets, against macro trends, or at statistical extremes. CCE addresses this by requiring convergence across five fundamentally different analytical dimensions before committing capital. The trade-off is fewer trades — but each trade has multi-dimensional confirmation behind it.
Module Architecture
Module 1: Regime Arbiter
The Regime Arbiter classifies the market into four states using ATR percentile ranking, custom directional movement scoring, and EMA trend alignment:
Kinetic Ascent: ATR percentile above the kinetic threshold, positive directional bias, fast EMA above slow EMA
Kinetic Descent: Same volatility conditions but with negative directional bias
Turbulence: ATR percentile above the turbulence threshold — high volatility without clear direction
Equilibrium: Low volatility, no strong directional bias — ranging market
A two-bar confirmation filter prevents single-bar regime flicker. When the Regime Gate is active (default), the strategy only enters trades during Kinetic Ascent or Kinetic Descent — it sits out during Turbulence and Equilibrium, avoiding the choppy conditions that destroy most trend-following systems.
Module 2: Directional Helix
A fast and slow moving average (EMA or SMA, configurable) determine trend direction. The strategy requires the helix to agree with the regime — a long entry needs both the regime in Kinetic Ascent AND the fast MA above the slow MA.
Module 3: Pressure Reactor
Volume-weighted momentum is calculated using the same logarithmic volume impact function found in the Ferrum Pressure Gauge indicator:
float vwM = pChg * math.log(1 + vR * momVolSens)
float mF = ta.ema(vwM, momFast)
float mS = ta.ema(vwM, momSlow)
float mIdx = ta.ema(mF - mS, 5)
The Pressure Reactor must confirm the trade direction — bullish momentum for longs, bearish momentum for shorts. This ensures that volume-weighted price action supports the entry, not just trend direction.
Module 4: Deviation Lattice
A statistical band system (mean +/- standard deviation * multiplier) acts as an extreme filter. The strategy will NOT enter a long if price is already at or above the upper band (overbought), and will NOT enter a short if price is at or below the lower band (oversold). This prevents chasing extended moves that are statistically likely to revert.
Module 5: Volume Gate
A simple but effective filter requiring short-term volume to exceed a configurable multiple of average volume (default 1.1x). This ensures entries occur during periods of meaningful market participation, not during thin, unreliable conditions.
Convergence Scoring
Each module contributes a weighted score to the overall convergence percentage:
Regime Arbiter: 25 points (trending state confirmed)
Directional Helix: 25 points (trend direction aligned)
Pressure Reactor: 25 points (momentum confirmed)
Deviation Lattice: 15 points (not at statistical extreme)
Volume Gate: 10 points (sufficient market participation)
The convergence score is classified as FULL LOCK (90%+), STRONG (70%+), PARTIAL (50%+), or WEAK (below 50%). The dashboard displays this score in real-time so you can see how close the market is to triggering an entry even before it fires.
Entry conditions require ALL modules to align simultaneously. Entries are edge-triggered — they fire only on the transition from non-convergent to convergent, preventing re-entry on the same signal.
Risk Architecture
ATR Shield (Stop Loss): Initial stop placed at entry price minus ATR * Shield Multiple (default 2.0x ATR). This adapts stop distance to current volatility.
ATR Objective (Take Profit): Target placed at entry price plus ATR * Objective Multiple (default 3.0x ATR). The default 1:1.5 risk-reward ratio (2.0 stop vs 3.0 target) provides positive expectancy even with moderate win rates.
Trailing Shield: When enabled, an ATR-based trailing stop ratchets in the direction of the trade. For longs, the trail is set at close minus ATR * Trail Multiple, and it only moves up, never down. This locks in profits during extended moves.
Regime Flip Exit: If the Regime Arbiter flips to the opposite state (e.g., from Kinetic Ascent to Kinetic Descent while in a long), the position is closed immediately. This is a structural exit — the market environment that justified the entry no longer exists.
Lattice Extreme Exit: If price reaches the opposite statistical extreme (upper band for longs, lower band for shorts), the position is closed. This captures profits at statistically extended levels.
Rail Interaction Exit: If price enters the proximity zone of the opposing Fortress Grid rail (ceiling for longs, floor for shorts), the position is closed. This respects dynamic support/resistance levels.
Strategy Default Properties
These are the default settings used in the strategy's Properties dialog:
Initial Capital: PulseWire default
Order Size: 10% of equity per trade (percent_of_equity)
Pyramiding: 0 (no stacking — one position at a time)
Commission: Not set by default — users should configure realistic commission for their instrument
Slippage: Not set by default — users should add realistic slippage for their instrument
Margin: margin_long=0, margin_short=0 (v5-equivalent behavior)
Calc on Every Tick: false (confirmed bars only)
Process Orders on Close: true
Important: Users should set realistic commission AND slippage values in the strategy Properties before evaluating backtest results. The default results without commission/slippage will overstate performance. A commission of 0.04-0.1% per side and 1-3 ticks of slippage is reasonable for most liquid instruments.
Command Panel (Dashboard)
A 13-row monospace dashboard displays the complete strategy state:
SCORE: Convergence classification with percentage (FULL LOCK / STRONG / PARTIAL / WEAK)
REGIME: Current market state (Kinetic Ascent, Kinetic Descent, Turbulence, Equilibrium)
HELIX: Trend direction (Ascent / Descent)
PRESSURE: Momentum direction (Ascent / Descent)
LATTICE: Band filter state (Clear / Ceiling Hit / Floor Hit)
Z-SCORE: Current statistical deviation from mean
VOL GATE: Volume gate status with current ratio (Open / Closed)
POSITION: Current trade status (Long / Short / Flat)
AGE: Bars since entry
SHIELD: Current ATR-based stop distance
TRAIL: Current trailing stop price (if active)
DIR BIAS: Raw directional movement bias score
Input Parameters
Regime Arbiter:
Dispersion Epoch / Rank Horizon / Kinetic Threshold / Turbulence Threshold / Regime Gate Active
Directional Helix:
Lead Filament / Anchor Filament / Filament Type (EMA or SMA)
Pressure Reactor:
Ignition Cycle / Sustain Cycle / Flux Epoch / Flux Amplifier
Deviation Lattice:
Lattice Depth / Sigma Aperture / Lattice Extreme Exit toggle
Fortress Grid:
Grid Anchor / Grid Increment / Proximity Radius / Rail Interaction Exit toggle
Risk Architecture:
Shield Multiple (stop) / Objective Multiple (target) / Risk Epoch (ATR period) / Trailing Shield toggle / Trail Multiple
Volume Gate:
Require Volume Confirmation / Volume Gate Threshold
How to Use This Strategy
Start by setting realistic commission and slippage in the strategy Properties before evaluating any backtest results.
Adjust the Grid Increment in the Fortress Grid module to match your instrument (500-1000 for BTC, 50-100 for stocks, etc.).
Monitor the Convergence Score in the dashboard — it shows how close the market is to triggering an entry. STRONG readings (70%+) that haven't yet reached FULL LOCK often precede entries by a few bars.
The Regime Gate is the most impactful filter. Disabling it will produce more trades but in lower-quality market conditions. Keep it enabled unless you have a specific reason to trade ranging/volatile markets.
Experiment with the Shield and Objective multiples to find the risk-reward ratio that matches your trading style. Higher Objective multiples produce fewer but larger winners; lower multiples produce more frequent but smaller wins.
The Trailing Shield is most valuable in trending markets where moves extend beyond the initial target. In choppy markets, it may give back profits. Consider disabling it if the instrument tends to mean-revert quickly.
Limitations and Honest Assessment
Multi-module convergence produces fewer trades. On some instruments and timeframes, the strategy may go extended periods without a signal. This is by design — it prioritizes quality over quantity.
Backtest results are hypothetical and do not account for real-world execution challenges including partial fills, requotes, and market impact.
The strategy uses process_orders_on_close=true, which means orders execute at the close of the signal bar. In live trading, you would need to enter at the open of the next bar, which introduces slippage.
Past performance shown in backtests does not guarantee future results. Market conditions change, and strategies that worked historically may underperform in different regimes.
The default settings are not optimized for any specific instrument or timeframe. Users should test across multiple datasets and adjust parameters to their specific use case.
The Regime Arbiter and all other modules use lagging indicators. Entries will always occur after a trend has begun, not at the exact bottom or top.
No strategy works in all market conditions. CCE is designed for trending markets and will underperform during extended ranging or highly volatile periods.
Originality Statement
This strategy is original in its five-module convergence architecture. While individual components (ATR regime classification, MA crossovers, volume-weighted momentum, statistical bands, EMA-derived levels) are established concepts, CCE is justified because:
The five-module convergence scoring system requires alignment across fundamentally different analytical dimensions (volatility regime, trend, momentum, statistics, structure) before entering — a more rigorous entry filter than typical dual-confirmation systems.
The weighted convergence score provides a quantified readiness metric that communicates how close the market is to a valid entry, even when not all conditions are met.
Four distinct exit mechanisms (ATR stop/target, trailing shield, regime flip, lattice extreme, rail interaction) provide layered risk management that adapts to different exit scenarios.
The Regime Arbiter gate prevents trading during Turbulence and Equilibrium states, addressing the primary failure mode of trend-following strategies.
Edge-triggered entries with two-bar regime confirmation prevent re-entry on the same signal and eliminate single-bar flicker.
The comprehensive 13-row dashboard provides full transparency into every module's state, the convergence score, and the current risk parameters.
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. Backtest results are hypothetical, do not represent actual trading, and do not guarantee future performance. Past results in no way guarantee future results. Commission, slippage, and other real-world costs will reduce actual performance below what backtests show. Always use proper risk management, including position sizing appropriate for your account and risk tolerance. Never risk more than you can afford to lose. The author is not responsible for any losses incurred from using this strategy.
-Made with passion by officialjackofalltrades
Strategy

Caldera Deviation Cloud [JOAT]Caldera Deviation Cloud
Introduction
The Caldera Deviation Cloud is an open-source statistical deviation band system that fuses anchored VWAP with Z-score adaptive band widths, Keltner ATR blending, and higher-timeframe volatility expansion into a unified probability envelope overlay. Instead of using a single method to calculate band width, CDC triple-blends VWAP standard deviation, statistical standard deviation, and ATR-based Keltner width — whichever produces the widest reading dominates, ensuring the bands never underestimate true market dispersion. The result is a layered cloud with inner (1-sigma, ~68% probability) and outer (2-sigma, ~95% probability) envelopes that adapt to both local and macro volatility conditions.
What makes this indicator distinct from standard Bollinger Bands or VWAP bands is the fusion approach: it does not rely on a single deviation method. It also reverse-engineers historical Z-score reversal points into dynamic "fossil" support and resistance levels — price zones where statistical extremes have historically triggered reversals.
Core Engine: Adaptive Deviation Fusion
The band width calculation blends three independent deviation measurements:
float baseAdapt = na(vwapStdev) or vwapStdev <= 0 ? statDev : math.max(vwapStdev, statDev * 0.5)
float keltBlend = useKelt ? math.max(baseAdapt, keltW * 0.6) : baseAdapt
float adaptDev = keltBlend * macroMult
VWAP Standard Deviation: Derived from the anchored VWAP calculation (session, weekly, monthly, or quarterly reset). This captures volume-weighted price dispersion around the institutional fair value line.
Statistical Standard Deviation: Classic standard deviation of closing prices over a configurable lookback (default 100 bars). This provides a pure statistical measure of price dispersion.
Keltner Thermal Envelope: ATR-based width (EMA of close with ATR multiplier) that captures range-based volatility. When enabled, this prevents the bands from being too narrow during periods where price moves are large but close-to-close deviation is small.
The wider of these three measurements is used as the base deviation, then multiplied by a macro volatility factor derived from the higher timeframe.
Probability Lattice (Z-Score Engine)
The Z-score engine computes how many standard deviations price is from its statistical mean, then smooths the result with VWMA for visual clarity:
Z-Score: (close - SMA) / StdDev, smoothed with VWMA
Mean Reversion Velocity: The rate of change of the Z-score, classified as EXPANDING (moving away from mean), CONTRACTING (returning toward mean), or STALLED
Dynamic State: SHELL BREACH OB/OS (beyond historical reversal averages), ELEVATED/DEPRESSED (beyond 1 sigma), or EQUILIBRIUM (near mean)
Reversal Archaeology (Fossil Levels)
This is one of CDC's most distinctive features. The indicator detects Z-score pivot highs and pivot lows, filters them by a minimum threshold (default 1.5 sigma), and accumulates them into rolling arrays. The average of these historical reversal Z-scores is then reverse-engineered back into price levels:
Fossil Resistance = VWMA(Mean + AvgTopReversalZ * StdDev)
Fossil Support = VWMA(Mean + AvgBotReversalZ * StdDev)
These "fossil levels" represent the price zones where, on average, the market has historically found statistical extremes significant enough to trigger reversals. They shift dynamically as new reversal data accumulates and old data rolls off.
Macro Volatility Lens (HTF Expansion)
When enabled, the indicator fetches standard deviation data from a higher timeframe (default 60-minute) and compares it to its own EMA. When macro volatility exceeds its average, the bands widen proportionally:
macroMult = 1 + htfFactor * max(0, (htfStdev - htfAvgDev) / htfAvgDev)
This prevents the bands from being too tight during periods of elevated macro uncertainty, even if the local timeframe appears calm. The security calls use lookahead=off to prevent repainting.
Visual Elements
Equilibrium Spine: The VWMA-smoothed center line (VWAP or statistical mean), plotted as a prominent purple line representing fair value.
Core Envelope (Inner Bands): 1-sigma bands representing the ~68% probability zone. Color shifts dynamically based on price position within the cloud using color.from_gradient.
Shell Envelope (Outer Bands): 2-sigma bands representing the ~95% probability zone. Price beyond these levels is statistically extreme.
Nebula Gradient: A 10-layer gradient fill system creates a smooth visual transition from the spine outward through the core and shell envelopes. Upper layers use distribution (bearish) tones, lower layers use accumulation (bullish) tones.
Fossil Levels: Cross-style plots marking the reverse-engineered support and resistance from Z-score reversal history.
Signal Architecture
CDC generates four signal types, all confirmed-bar only:
SHELL BREACH: Price exceeds the outer (2-sigma) envelope — a statistically extreme event. Upper breach suggests distribution extreme, lower breach suggests accumulation extreme. Tooltip includes the sigma multiplier and current Z-score.
CORE DRIFT: Price enters the zone between the inner and outer envelopes — elevated deviation but not yet extreme. This serves as an early warning before a potential shell breach.
Command Panel (Dashboard)
A 10-row monospace dashboard displays:
LATTICE: Current smoothed Z-score value
STATE: Statistical classification (Shell Breach OB/OS, Elevated, Depressed, Equilibrium)
REV VEL: Mean reversion velocity direction (Expanding, Contracting, Stalled)
SPINE: Current center line (VWAP/mean) price
APERTURE: Current adaptive deviation width
MACRO: HTF volatility multiplier (1.0x = normal, >1.1x = elevated macro vol)
POSITION: Price location within the cloud (Upper Shell, Upper Core, Neutral, Lower Core, Lower Shell)
FOSSIL R / FOSSIL S: Average Z-score at which historical reversals have occurred (resistance and support)
Input Parameters
Probability Lattice:
Lattice Depth: Z-score lookback window (default 100)
Lattice Damper: VWMA smoothing on raw Z-score (default 14)
Sigma Core: Inner band multiplier, ~68% probability (default 1.0)
Sigma Shell: Outer band multiplier, ~95% probability (default 2.0)
Anchor Nexus:
Volume Epoch: VWAP reset period — Session, Weekly, Monthly, or Quarterly
Keltner Fusion:
Enable Thermal Envelope: Toggle ATR-based width blending (default on)
Thermal EMA / ATR Scale: Keltner channel parameters
Macro Volatility Lens:
Enable Horizon Expansion: Toggle HTF volatility widening (default on)
Horizon Timeframe / Blend Factor: HTF parameters
Reversal Archaeology:
Fossil Depth: Rolling array size for reversal history (default 25)
Fossil Threshold: Minimum Z-score magnitude for valid reversal (default 1.5)
How to Use This Indicator
Use the cloud as a probability envelope — price spending time near the outer shell is statistically unusual and often precedes mean reversion.
Watch SHELL BREACH signals at the outer bands for potential reversal setups, especially when the Reversion Velocity shows CONTRACTING (Z-score returning toward mean).
Fossil levels provide dynamic support/resistance derived from statistical history — they shift as new reversal data accumulates, making them adaptive rather than static.
The MACRO multiplier in the dashboard warns when higher-timeframe volatility is elevated — wider bands during these periods reflect genuine uncertainty, not just noise.
CORE DRIFT signals serve as early warnings — price entering the core-to-shell zone may continue to the shell or reverse. Use them as alerts to pay attention, not as standalone trade signals.
The Equilibrium Spine (center line) acts as a dynamic fair value reference — extended moves away from it tend to revert over time.
Limitations
Statistical bands assume roughly normal price distributions, which markets frequently violate. Fat tails and gap events can exceed even the outer shell without warning.
Z-score mean reversion is a tendency, not a guarantee — price can remain at statistical extremes for extended periods, especially during strong trends.
Fossil levels are based on historical reversal averages and may not predict future reversal points accurately. They provide context, not certainty.
The VWAP anchor resets at each period boundary (session, week, etc.), which can cause discontinuities in the center line and bands.
Higher-timeframe volatility expansion depends on the selected HTF — different choices produce different macro multipliers.
The indicator does not generate directional buy/sell signals — it provides statistical context for your own decision-making.
Originality Statement
This indicator is original in its triple-blend adaptive deviation approach. While VWAP bands, Bollinger Bands, and Keltner Channels are established concepts individually, CDC is justified because:
The triple-blend deviation fusion (VWAP stdev + statistical stdev + Keltner ATR) ensures bands never underestimate dispersion regardless of which volatility measure is dominant.
Reversal Archaeology reverse-engineers Z-score pivot history into dynamic price levels — a technique not found in standard deviation band indicators.
The Macro Volatility Lens integrates higher-timeframe volatility directly into band width calculation, providing macro-aware probability envelopes.
The 10-layer nebula gradient fill creates a visual probability density that communicates statistical significance through color intensity.
Mean Reversion Velocity tracking provides directional context for Z-score movement, helping distinguish between expanding extremes and contracting reversals.
The comprehensive dashboard presents statistical state, reversion dynamics, and fossil levels simultaneously.
Disclaimer
This indicator is provided for educational and informational purposes only. It is not financial advice. Statistical deviation bands describe historical price distribution patterns but do not predict future price movement. Extreme Z-scores do not guarantee reversals. Always use proper risk management and conduct your own analysis before making trading decisions. The author is not responsible for any losses incurred from using this tool.
-Made with passion by officialjackofalltrades
Indicator

Hurst Exponent Adaptive Supertrend [QuantAlgo]🟢 Overview
The Hurst Exponent Adaptive Supertrend identifies trending and mean-reverting market conditions by dynamically adjusting its sensitivity and band width based on the real-time persistence of price movement. It estimates the Hurst exponent through variance scaling to classify the current market regime, applies a Kalman smoother with a Hurst-scaled tracking gain to follow price with regime-appropriate responsiveness, and constructs a supertrend band whose width expands in choppy conditions and contracts in strongly trending ones. This allows traders to stay positioned through genuine trends while filtering out noise-driven whipsaws across any timeframe or instrument.
🟢 How It Works
The indicator's core methodology centres on a three-layer pipeline: regime classification via the Hurst exponent, adaptive price smoothing via a Kalman filter, and dynamic band construction that responds to the estimated market state.
First, the Hurst exponent is estimated by comparing short-run and long-run return variance over the configured lookback window. A lag-q variance is scaled against a lag-1 variance, and the ratio is log-transformed to produce a raw H value that is then clamped between 0 and 1:
var1 = ta.variance(close - close , active_h_period)
varq = ta.variance(close - close , active_h_period)
H_raw = math.log(varq / math.max(var1, 1e-10)) / (2.0 * math.log(active_h_lag))
H = math.max(0.0, math.min(H_raw, 1.0))
H values above 0.5 indicate persistent, trending behaviour. Values below 0.5 indicate mean-reversion or choppiness. This reading then drives every downstream calculation.
Next, a Kalman smoother tracks price using a gain that is amplified in trending regimes and suppressed in choppy ones, keeping the smoothed price line tight to momentum when it matters and sluggish when it does not:
adaptive_gain = math.max(math.min(active_kf_gain * (0.5 + safeH), 0.99), 0.01)
kf := na(kf ) ? close : kf + adaptive_gain * (close - kf )
Finally, the ATR-based band width is computed using a Hurst-scaled multiplier. When H is low (choppy market), the multiplier is large, widening the band to avoid false flips. When H is high (strong trend), the multiplier approaches the base value, keeping the band tight to price:
h_mult = active_atr_base + active_atr_hscale * (1.0 - safeH)
band = ta.atr(active_atr_len) * h_mult
The supertrend logic then ratchets the upper and lower bands in the direction of the prevailing trend, flipping state only when the Kalman-smoothed price crosses the opposing band. This prevents band drift from causing premature reversals during normal consolidation:
upBand := prevT == 1 ? math.max(kf - band, prevUp) : kf - band
dnBand := prevT == -1 ? math.min(kf + band, prevDn) : kf + band
trend := kf > prevDn ? 1 : kf < prevUp ? -1 : prevT
🟢 Signal Interpretation
▶ Bullish Trend (Supertrend Line Below Price with Bullish Color): When the Kalman-smoothed price crosses above the upper band, the indicator flips to a bullish state and the trailing line plots below price as a dynamic support level - the floor that price must decisively break before the uptrend is considered invalidated. The support level ratchets higher with each new bar, never pulling back, locking in the floor as the trend develops. In choppy regimes the band width is deliberately wide, meaning price can pull back significantly without breaching support, keeping traders positioned through noise-driven corrections that lack genuine bearish conviction.
▶ Bearish Trend (Supertrend Line Above Price with Bearish Color): When the Kalman-smoothed price crosses below the lower band, the indicator flips to a bearish state and the trailing line plots above price as a dynamic resistance level - the ceiling price must reclaim before a bullish reversal is confirmed. The resistance level ratchets lower with each new bar, tightening the ceiling as the downtrend develops. As with the bullish state, a wide band in low-H environments requires a substantial recovery move before the indicator reverses, allowing traders to hold directional bias through corrective bounces that stay within the noise threshold.
🟢 Features
▶ Preconfigured Presets: Three optimised parameter sets tailored to different trading styles and timeframes. "Default" delivers balanced trend detection for swing trading on 4-hour and daily charts, with moderate Kalman gain and band scaling suited to typical momentum cycles. "Fast Response" uses a higher tracking gain, shorter ATR window, and tighter base multiplier for intraday trading on 5-minute to 1-hour charts, producing earlier trend flips better suited to active traders. "Smooth Trend" applies a lower Kalman gain, longer ATR period, and wider band scaling for position trading on daily and weekly charts, confirming only major directional shifts with minimal false positives.
▶ Built-in Alerts: Two alert conditions enable automated monitoring of trend transitions without constant chart observation. "Bullish Trend Signal" triggers on the bar the indicator first flips to a bullish state, alerting for potential long entries. "Bearish Trend Signal" fires on the bar the indicator first confirms a bearish state, signalling potential short entries or long exits. Both alerts include the exchange, ticker, and timeframe in the alert message for immediate context.
▶ Visual Customisation: Six color presets (Classic, Aqua, Cosmic, Cyber, Neon, and Custom) accommodate different chart themes and personal preferences, with coordinated bullish and bearish color schemes applied consistently to the trend line. When the Custom preset is selected, independent color pickers for bullish and bearish states allow full manual control over the indicator's appearance.
Indicator

Bastion Level Sentinel [JOAT]Bastion Level Sentinel
Introduction
The Bastion Level Sentinel is an open-source dynamic support and resistance overlay that derives price levels from EMA rounding, then builds conviction scores through touch-based strength analysis with optional volume confirmation. Rather than drawing static horizontal lines at arbitrary prices, BLS rounds an EMA to a configurable price increment (e.g., 500, 1000) to identify the institutional-grade price rails that the market naturally gravitates toward. Each time price interacts with a rail, the indicator counts and classifies the touch — validated (with above-average volume) or unconfirmed (low volume) — and uses these counts to build a conviction score that drives the visual intensity of the level through color gradients.
Most support/resistance indicators either use fixed pivot points that become stale, or they require manual drawing. BLS automates the process by anchoring levels to a moving EMA foundation, resetting touch counts when levels shift, and providing a complete lifecycle view of each level — from nascent (newly formed) through seasoned to ancient. The conviction engine ensures that levels with more validated touches appear visually stronger, giving traders an immediate sense of which levels carry the most institutional weight.
Core Engine: Level Derivation
The level calculation is straightforward but effective:
float emaVal = ta.ema(close, emaLen)
float topLvl = roundVal * math.ceil(emaVal / roundVal)
float botLvl = roundVal * math.floor(emaVal / roundVal)
The EMA provides a smoothed price anchor. Rounding up to the nearest increment gives the ceiling rail (resistance), and rounding down gives the floor rail (support). The grid increment is fully configurable — use 500 for crypto, 50 for stocks, 10 for forex — allowing the indicator to adapt to any instrument's natural price structure.
A stability check ensures that levels are only considered active when they remain unchanged from the previous bar. This prevents false touch counts during level transitions.
Conviction Engine (Touch-Based Strength Scoring)
The conviction engine is the heart of BLS. Every time price enters a rail's proximity zone (defined by a configurable tolerance fraction of the level gap), a touch is registered. Touches are edge-triggered — only the first bar of each interaction counts, preventing a single extended visit from inflating the score.
When volume confirmation is enabled, touches are classified into two categories:
Validated Touches: Price interacts with the rail while short-term volume exceeds the configurable threshold (default 1.2x average). These carry 70% weight in the conviction score.
Unconfirmed Touches: Price interacts with the rail on below-average volume. These carry 30% weight — they still count, but with reduced conviction.
The conviction score scales from 0% to 100% based on the number of touches relative to the saturation threshold (default 5 touches for 100%). When levels shift (the EMA moves enough to change the rounded level), all touch counts reset to zero, and the lifecycle begins fresh.
Level Lifecycle and Maturity
Each rail tracks its age in bars since the last level shift:
NASCENT: Fewer than 50 bars old — newly formed level, conviction still building
SEASONED: 50-200 bars old — established level with meaningful touch history
ANCIENT: Over 200 bars old — long-standing level that has persisted through extended price action
Ancient levels with high conviction scores represent the strongest support/resistance zones — they have been tested repeatedly over a long period and have held.
Visual Architecture
Primary Rails: Ceiling and floor levels plotted with conviction-driven color gradients. Low conviction = neutral purple, high conviction = vivid red (resistance) or green (support). The color intensity directly communicates level strength.
Proximity Halos: Tolerance zone boundaries around each rail, filled with transparency that scales with conviction. Stronger levels have more visible halos.
Equator Line: The midpoint between ceiling and floor — a natural equilibrium reference.
Tertiary Gridlines: 25% and 75% sub-levels between the rails, providing additional structure within the grid.
Proximity Aura: Subtle background tint when price enters a rail's tolerance zone — immediate visual alert that price is near a significant level.
Grid Tint Candles: Candles colored by their position within the grid — red tones near the ceiling, green tones near the floor, purple at the equator.
Signal Architecture
BLS generates five distinct signal types, all confirmed-bar and edge-triggered:
RAIL LOCK (Validated Touch): Price interacts with a rail on confirmed volume. The label includes the running touch count. These are the highest-confidence interaction signals.
ECHO (Unconfirmed Touch): Price interacts with a rail but volume is below the confirmation threshold. The interaction is noted but flagged as lower confidence.
BREACH: Price closes beyond a rail — a potential breakout (ceiling) or breakdown (floor). These are edge-triggered crossover/crossunder signals.
APPROACH: Price enters a rail's proximity zone for the first time — an early warning that an interaction is imminent.
Conviction Pulse: Periodic labels on the rails (every 20 bars) showing the current conviction percentage, providing at-a-glance strength information without cluttering the chart.
// Edge-triggered touch detection
bool topTouchEdge = topTouch and not topTouch
bool botTouchEdge = botTouch and not botTouch
Command Panel (Dashboard)
An 11-row monospace dashboard displays:
CEILING: Current resistance rail price
C CONV: Ceiling conviction — validated/total touches with percentage (e.g., "3v/4t (85%)")
FLOOR: Current support rail price
F CONV: Floor conviction — validated/total touches with percentage
EQUATOR: Midpoint price between ceiling and floor
NEAREST: Which rail price is closest to, with distance as a percentage
GRID POS: Price position classification (Ceiling Zone, Upper Grid, Equator, Lower Grid, Floor Zone)
MATURITY: Lifecycle stage of each rail (Nascent, Seasoned, Ancient)
LOCKED: Whether each rail is currently stable (unchanged from previous bar)
FLUX: Current volume confirmation ratio — values above the threshold indicate "hot" volume
Input Parameters
Fortress Grid:
Lattice Anchor: EMA period for level derivation (default 21)
Grid Increment: Price rounding value (default 500) — adjust for your instrument
Proximity Radius: Fraction of level gap used as tolerance zone (default 0.15)
Tertiary Gridlines: Toggle 25%/75% sub-levels
Conviction Engine:
Conviction Saturation: Touches needed for 100% conviction (default 5)
Flux Validation: Require above-average volume for validated touches (default on)
Flux Threshold: Volume ratio required for validation (default 1.2x)
Optics Layer:
Individual toggles for: Primary Rails, Proximity Halos, Equator Line, Command Panel, Proximity Aura, Breach Flash, Conviction Pulse, Approach Beacon, Grid Tint Candles
How to Use This Indicator
Adjust the Grid Increment to match your instrument — 500 or 1000 for BTC, 50 or 100 for stocks, 10 or 25 for forex pairs. The goal is to identify the round-number levels that institutional orders cluster around.
Pay attention to conviction scores — rails with 80%+ conviction and SEASONED or ANCIENT maturity are the strongest levels. Expect significant reactions when price approaches them.
RAIL LOCK signals with high touch counts indicate levels that have been tested and held multiple times. These are prime candidates for bounce trades.
BREACH signals mark potential breakouts. A breach of a high-conviction rail is more significant than a breach of a low-conviction one.
Use APPROACH signals as early warnings to prepare for potential level interactions. They give you time to assess the setup before the actual touch occurs.
The Grid Position metric in the dashboard tells you where price sits within the current structure — useful for bias determination and risk assessment.
Limitations
EMA-derived levels are inherently lagging — they reflect where the market has been, not where it is going. Levels shift when the EMA moves enough to change the rounded value.
The rounding approach works best on instruments with natural round-number psychology (crypto, indices, large-cap stocks). It may be less effective on instruments without clear round-number clustering.
Touch counts reset when levels shift, which means conviction history is lost during transitions. This is by design (stale counts on new levels would be misleading) but means newly formed levels always start at zero conviction.
Volume confirmation depends on reliable volume data. Instruments with inconsistent volume reporting may produce unreliable validation classifications.
The indicator identifies levels and measures their strength but does not predict whether price will bounce or break through. That decision requires additional context.
Originality Statement
This indicator is original in its conviction-based level strength scoring approach. While EMA-derived support/resistance and touch counting are known concepts individually, BLS is justified because:
The conviction engine differentiates between volume-validated and unconfirmed touches, weighting them differently to produce a more meaningful strength score than simple touch counting.
Level lifecycle tracking (Nascent/Seasoned/Ancient) provides temporal context that static level indicators lack.
Conviction-driven color gradients using color.from_gradient create an immediate visual hierarchy where stronger levels are visually more prominent.
The proximity halo system with conviction-scaled transparency provides zone-based level visualization rather than single-line levels.
Edge-triggered touch detection with stability checks prevents false counts during level transitions and extended visits.
The comprehensive dashboard presents level prices, conviction breakdowns, maturity, grid position, and volume state simultaneously.
Five distinct signal types (Rail Lock, Echo, Breach, Approach, Conviction Pulse) provide a complete interaction vocabulary for level-based analysis.
Disclaimer
This indicator is provided for educational and informational purposes only. It is not financial advice. Support and resistance levels describe historical price interaction zones but do not guarantee future reactions. Levels can and do break. Always use proper risk management and conduct your own analysis before making trading decisions. The author is not responsible for any losses incurred from using this tool.
-Made with passion by officialjackofalltrades
Indicator

Vortex Nexus Alpha [JOAT]Vortex Nexus Alpha Strategy
Introduction
The Vortex Nexus Alpha Strategy is an advanced open-source algorithmic trading system that combines multi-dimensional signal generation, adaptive regime detection, and institutional-grade risk management into a unified execution framework. This strategy represents a complete trading system built from the ground up using proprietary mathematical models, fractal analysis, momentum tracking, and market microstructure intelligence.
Unlike simple crossover strategies or single-indicator systems, Vortex Nexus Alpha synthesizes intelligence from five independent signal layers, each containing five distinct detection mechanisms, creating a 25-factor confluence scoring system that validates every trade entry. The strategy is designed for traders who understand that consistent profitability requires multi-dimensional analysis, adaptive positioning, and systematic risk management rather than relying on any single indicator or pattern.
Why This Strategy Exists
This strategy addresses the fundamental challenge of algorithmic trading: most systems over-optimize to historical data or rely on simplistic logic that fails in real market conditions. Vortex Nexus Alpha solves this through a knowledge-based architecture that doesn't depend on indicator mashups but instead builds intelligence from first principles:
Volatility Expansion Engine: Measures market volatility through ATR percentile ranking and adapts position sizing and stop distances dynamically
Price Efficiency Calculator: Quantifies how efficiently price moves using path length analysis, filtering choppy conditions
Chaos Measurement System: Identifies market regime (directional, equilibrium, chaotic) using logarithmic range analysis
Directional Conviction Tracker: Measures trend strength through ADX and directional movement indicators
Adaptive Ribbon System: Multi-layer EMA ribbon that expands/contracts based on volatility and provides dynamic support/resistance
Volume Pressure Analysis: Estimates buying/selling pressure through candle structure and wick analysis
Gauss Smoothing Engine: 4th-order Gaussian filter that eliminates noise while preserving genuine price movements
Fractal Efficiency Measurement: Logarithmic efficiency calculation that adapts Laguerre filtering for optimal lag reduction
Laguerre Momentum Transform: Adaptive momentum oscillator that responds faster during efficient moves
Temporal Flow Dynamics: Analyzes price flow direction, magnitude, and acceleration across multiple dimensions
Pivot Structure Analysis: Detects market structure breaks and shifts using swing high/low analysis
Order Block Detection: Identifies institutional positioning zones through volume-confirmed reversal patterns
Imbalance Zone Mapping: Marks price gaps and inefficiencies that often get filled
Each component contributes unique intelligence that validates or invalidates potential trade setups. The strategy requires minimum confluence scores before entering positions, ensuring that multiple independent systems agree on directional bias.
Core Strategy Architecture
1. Volatility Expansion Engine
The strategy begins with comprehensive volatility analysis:
volatility = ta.atr(volatilityPeriod)
volatilityPercent = (volatility / close) * 100
volatilityRank = ta.percentrank(volatilityPercent, 100)
Volatility percentile ranking provides context for current volatility relative to recent history. This measurement drives multiple strategy decisions:
- Position sizing: Higher volatility = smaller positions
- Stop distance: Higher volatility = wider stops
- Signal filtering: Extreme volatility (>80 percentile) triggers defensive mode
The strategy adapts to volatility rather than using fixed parameters, ensuring it remains relevant across different market regimes.
2. Price Efficiency and Chaos Measurement
The strategy calculates price efficiency to distinguish trending from ranging markets:
priceMovement = math.abs(close - close )
pathLength = math.sum(math.abs(close - close ), efficiencyPeriod)
efficiency = pathLength > 0 ? priceMovement / pathLength : 0
High efficiency (>0.6) indicates clean, directional movement suitable for trend-following. Low efficiency (<0.4) suggests choppy conditions where the strategy reduces activity or switches to mean-reversion logic.
Chaos level is measured using logarithmic range analysis:
rangeHigh = ta.highest(high, volatilityPeriod)
rangeLow = ta.lowest(low, volatilityPeriod)
atrSum = math.sum(ta.atr(1), volatilityPeriod)
chaosLevel = 100 * math.log10(atrSum / (rangeHigh - rangeLow)) / math.log10(volatilityPeriod)
High chaos (>60) triggers defensive positioning. Low chaos (<40) enables aggressive trend-following.
3. Directional Conviction System
The strategy implements complete ADX analysis with directional indicators:
= adx(14, 14)
ADX above 25 indicates emerging directional conviction. Above 40 indicates dominant conviction. The strategy uses conviction strength to:
- Filter entries: Minimum conviction threshold prevents trading in directionless markets
- Size positions: Higher conviction = larger positions (within risk limits)
- Set targets: Strong conviction enables wider profit targets
The difference between bullForce and bearForce determines directional bias and validates signal direction.
4. Adaptive Ribbon System
The strategy calculates 8 EMA layers with adaptive spacing:
stepSize = (slowPeriod - fastPeriod) / (ribbonLayers - 1)
ribbonLevel0 = ta.ema(close, fastPeriod)
ribbonLevel7 = ta.ema(close, slowPeriod)
Ribbon analysis provides:
- Trend direction: Fast > slow = bullish, fast < slow = bearish
- Trend strength: Wider ribbon = stronger trend
- Dynamic support/resistance: Ribbon layers act as price magnets
- Compression detection: Tight ribbon = energy buildup before breakout
The strategy only takes long trades when price is above the ribbon and short trades when below, ensuring alignment with trend structure.
5. Volume Pressure Analysis
The strategy estimates buying and selling pressure using candle structure:
buyPressure = close > open ? volume * ((close - open + upperWick * 0.5) / barSpan) :
close < open ? volume * ((upperWick + bodyMass * 0.3) / barSpan) : volume * 0.5
sellPressure = volume - buyPressure
pressureDelta = buyPressure - sellPressure
Pressure analysis validates signal direction:
- Long signals require positive pressure delta
- Short signals require negative pressure delta
- Extreme pressure (>70% of volume) suggests potential exhaustion
The strategy tracks cumulative pressure to identify accumulation and distribution phases.
6. Gauss Smoothing and Fractal Efficiency
The strategy applies 4th-order Gaussian filtering to eliminate noise:
gaussClose := math.pow(alpha, 4) * close +
4 * (1.0 - alpha) * nz(gaussClose ) -
6 * math.pow(1 - alpha, 2) * nz(gaussClose ) +
4 * math.pow(1 - alpha, 3) * nz(gaussClose ) -
math.pow(1 - alpha, 4) * nz(gaussClose )
Fractal efficiency is calculated using logarithmic path measurement:
fractalRatio = totalSpan > 0 ? math.log(rangeSum / totalSpan) / math.log(fractalSpan) : 0.0
fractalEfficiency = math.max(0, math.min(1, (fractalRatio + 1) / 2))
High fractal efficiency (>0.7) validates that momentum signals are backed by clean price action.
7. Laguerre Momentum Transform
The strategy uses adaptive Laguerre filtering for momentum measurement:
gamma = 0.7 * (1 - fractalEfficiency) + 0.1 * fractalEfficiency
L0 := (1 - gamma) * gaussClose + gamma * nz(L0 )
L1 := -gamma * L0 + nz(L0 ) + gamma * nz(L1 )
L2 := -gamma * L1 + nz(L1 ) + gamma * nz(L2 )
L3 := -gamma * L2 + nz(L2 ) + gamma * nz(L3 )
cu = (L0 > L1 ? L0 - L1 : 0) + (L1 > L2 ? L1 - L2 : 0) + (L2 > L3 ? L2 - L3 : 0)
cd = (L0 < L1 ? L1 - L0 : 0) + (L1 < L2 ? L2 - L1 : 0) + (L2 < L3 ? L3 - L2 : 0)
laguerreValue = cu + cd != 0 ? 100 * (cu / (cu + cd)) : 50
fractalMomentum = (laguerreValue - 50) * (1 + fractalEfficiency)
The adaptive gamma adjustment reduces lag during efficient moves and adds smoothing during choppy conditions. Fractal momentum above 20 validates bullish signals, below -20 validates bearish signals.
8. Temporal Flow Dynamics
The strategy analyzes price flow across multiple dimensions:
priceFlow = ta.ema(close, flowPeriod) - ta.ema(close, flowPeriod * 2)
flowDir = priceFlow > 0 ? 1 : -1
flowMagnitude = math.abs(priceFlow) / volatility
flowAccel = ta.change(priceFlow, 3)
Flow analysis provides:
- Flow direction: Confirms trend direction
- Flow magnitude: Measures flow strength relative to volatility
- Flow acceleration: Identifies momentum shifts
The strategy requires flow alignment with signal direction for entry validation.
9. Market Structure Analysis
The strategy tracks pivot highs and lows to identify structure breaks:
pivotTop = ta.pivothigh(high, pivotSpan, pivotSpan)
pivotBottom = ta.pivotlow(low, pivotSpan, pivotSpan)
Structure breaks occur when:
- Bullish: Price breaks above previous pivot high
- Bearish: Price breaks below previous pivot low
Structure shifts (change of character) occur when:
- Bullish: Downtrend breaks above previous pivot high
- Bearish: Uptrend breaks below previous pivot low
The strategy gives bonus confluence points to signals that align with structure breaks or shifts.
10. Order Block and Imbalance Detection
The strategy identifies institutional positioning zones:
orderBlockBull = close < open and close > open and volume > avgVol * 1.2
orderBlockBear = close > open and close < open and volume > avgVol * 1.2
gapUp = low > high and (low - high ) > volatility * 0.3
gapDown = high < low and (low - high) > volatility * 0.3
Order blocks mark zones where institutions placed large orders. The strategy uses these as:
- Entry zones: Look for entries near order blocks in trend direction
- Stop placement: Place stops beyond order blocks for protection
- Target zones: Opposite-direction order blocks become profit targets
Imbalance zones (gaps) often get filled, providing mean-reversion opportunities.
Multi-Dimensional Signal Generation
The strategy generates signals through five independent layers, each containing five detection mechanisms:
Layer 1: Rapid Scalp Signals (5 mechanisms)
- Laguerre oversold + flow bullish + price above fast ribbon
- Pressure index positive + flow reversal bullish
- Momentum bullish + volume surge + price above mid ribbon
- Strong bullish candle + ribbon bullish + pressure positive
- Fractal momentum positive + flow acceleration positive + ribbon aligned
Layer 2: Swing Position Signals (5 mechanisms)
- Ribbon bullish + price above slow ribbon + bullish regime
- Structure break bullish + momentum bullish
- Order block bullish + flow bullish + conviction strong
- Gap up + pressure extreme + ribbon aligned
- Range breakout up + cumulative pressure positive + flow strong
Layer 3: Momentum Continuation (5 mechanisms)
- Fractal momentum extreme + ribbon bullish + conviction strong
- Laguerre oversold + flow bullish + volume surge
- Momentum extreme + fractal momentum positive + ribbon expanding
- Extreme buy pressure + flow acceleration positive + bullish regime
- Bull force > bear force + conviction strong + ribbon aligned
Layer 4: Structure Confirmation (5 mechanisms)
- Structure shift bullish + volume surge
- Order block bullish + price above last pivot low + momentum bullish
- Gap up + flow bullish + ribbon bullish
- Structure break bullish + pressure extreme positive
- Volume absorption + pressure positive + price above mid ribbon
Layer 5: Confluence Boosters (5 mechanisms)
- Ribbon tight + ribbon expanding + ribbon bullish + volume surge
- Net flow positive + temporal force positive + bullish regime
- Fractal efficiency high + Laguerre oversold + flow magnitude strong
- Strong bullish candle + price above previous high + volume extreme
- Velocity positive + flow bullish + ribbon power strong
Each layer contributes 0 or 1 to the bull strength score. The strategy requires minimum confluence (default 2) before entering long positions. This multi-layer approach ensures that signals are validated across multiple independent dimensions.
Risk Management System
The strategy implements institutional-grade risk management:
Position Sizing:
- Risk percentage per trade (default 1% of equity)
- Dynamic adjustment based on volatility percentile
- Reduced sizing during high chaos or low efficiency
Stop Loss Placement:
stopLoss = close - (volatility * slMultiplier)
- ATR-based stops that adapt to current volatility
- Multiplier (default 1.5) provides breathing room
- Stops placed beyond order blocks when possible
Take Profit Targets:
takeProfit = close + (volatility * slMultiplier * tpMultiplier)
- Risk-reward ratio (default 2.5:1)
- Adjusted based on conviction strength
- Wider targets during strong conviction, tighter during weak
Trailing Stop System:
trailStop = close - (volatility * trailOffset)
- Optional trailing stop (default enabled)
- Offset (default 1.2x ATR) balances protection and breathing room
- Activates after position moves into profit
Visual Elements
Adaptive Ribbon: Multi-layer EMA ribbon with gradient coloring showing trend direction and strength
Entry Signals: Triangle shapes sized by signal strength (large for 5+ confluence, small for 2-3 confluence)
Structure Markers: Lines and labels marking structure breaks, shifts, and order blocks
Imbalance Boxes: Boxes marking price gaps and inefficiency zones
Regime Background: Subtle background coloring showing current market regime
Flow Background: Additional background layer showing flow direction
Comprehensive Dashboard: 18-row intelligence panel showing position status, signal strength, regime, ribbon state, pressure, momentum, structure, flow, conviction, Laguerre, volume, volatility, trade statistics, and win rate
The dashboard provides complete strategy intelligence with real-time metrics and performance tracking.
Strategy Parameters
Core Settings:
Ultra-Aggressive Mode: Maximum trade frequency (default enabled)
Min Signal Strength: Minimum confluence required (1-6, default 2)
Risk %: Risk per trade as percentage of equity (0.5-5.0%, default 1.0%)
TP Multiplier: Take profit as multiple of stop distance (1.0-10.0, default 2.5)
SL Multiplier: Stop loss as multiple of ATR (0.5-5.0, default 1.5)
Trailing Stop: Enable/disable trailing stop (default enabled)
Trail Offset: Trailing stop distance as multiple of ATR (0.5-3.0, default 1.2)
Advanced Parameters:
Volatility Period: ATR calculation length (5-50, default 14)
Efficiency Period: Price efficiency calculation period (5-100, default 20)
Flow Period: Temporal flow analysis period (10-50, default 20)
Ribbon Layers: Number of EMA layers (3-15, default 8)
Fast Period: Fastest EMA period (2-20, default 5)
Slow Period: Slowest EMA period (10-100, default 34)
Visualization:
Dashboard: Toggle metrics panel (default enabled)
Entry Signals: Toggle signal shapes (default enabled)
Regime Zones: Toggle background coloring (default enabled)
Adaptive Ribbon: Toggle ribbon display (default enabled)
How to Use This Strategy
Step 1: Configure Risk Parameters
Set risk percentage appropriate for your account size. 1% is conservative, 2% is moderate, 3%+ is aggressive. Never risk more than you can afford to lose on any single trade.
Step 2: Select Minimum Signal Strength
Default 2 provides balanced trade frequency and quality. Increase to 3-4 for higher quality but fewer trades. Decrease to 1 only in ultra-aggressive mode on highly liquid instruments.
Step 3: Adjust Risk-Reward Ratio
Default 2.5:1 provides good balance. Increase to 3-5:1 for swing trading. Decrease to 1.5-2:1 for scalping. Higher ratios require higher win rates to be profitable.
Step 4: Enable/Disable Trailing Stops
Trailing stops protect profits but can exit prematurely. Enable for trend-following, disable for mean-reversion. Adjust trail offset based on instrument volatility.
Step 5: Monitor Dashboard Metrics
Watch "POSITION" status, "BULL STR" and "BEAR STR" scores, "REGIME" classification, and "WIN RATE" percentage. These provide real-time strategy health assessment.
Step 6: Backtest Thoroughly
Test on at least 100 trades across different market conditions. Verify that win rate, profit factor, and drawdown meet your requirements. Adjust parameters if needed.
Step 7: Forward Test on Demo
Run strategy on demo account for at least 1 month before live trading. Verify that live performance matches backtest expectations. Monitor slippage and execution quality.
Step 8: Start Small on Live
Begin with minimum position sizes on live account. Gradually increase as confidence builds. Never risk more than 1-2% of account on any single trade initially.
Best Practices
Use on liquid instruments with tight spreads and reliable execution
Backtest with realistic commission (0.1%) and slippage (2 ticks minimum)
Test across multiple market conditions (trending, ranging, volatile, calm)
Verify minimum 100 trades in backtest for statistical significance
Monitor win rate - should be 45-60% for 2.5:1 risk-reward ratio
Check profit factor - should be >1.5 for robust strategy
Analyze maximum drawdown - should be <20% of account
Review trade distribution - avoid over-concentration in specific periods
Monitor signal strength distribution - most trades should be 3+ confluence
Check regime alignment - strategy should perform in directional regimes
Verify that losses are controlled - no single loss should exceed 2% of account
Ensure adequate trade frequency - at least 2-3 trades per week on daily timeframe
Combine with manual oversight - review signals before execution in early stages
Use appropriate timeframe - 15m-1H for day trading, 4H-1D for swing trading
Avoid trading during major news events unless specifically tested for that
Keep detailed trade journal to identify patterns in wins and losses
Strategy Limitations
Algorithmic strategies cannot predict black swan events or unprecedented market conditions
Backtested performance does not guarantee future results
Slippage and commission in live trading may differ from backtest assumptions
The strategy requires sufficient volatility - may underperform in extremely low volatility
Signal generation depends on multiple calculations - computational lag possible on slow systems
The strategy works best on trending instruments - may struggle in perpetual ranges
Confluence scoring requires all components to be relevant - some may be less meaningful on certain instruments
The strategy cannot account for fundamental catalysts or news events
Trailing stops can exit prematurely during volatile but ultimately profitable moves
The strategy requires adequate liquidity for execution at desired prices
Parameter optimization can lead to overfitting - use walk-forward analysis
The strategy shows what signals exist, not why - market context still matters
Technical Implementation
Built with Pine Script v6 using:
Complete volatility expansion engine with ATR percentile ranking
Price efficiency calculator using path length analysis
Chaos measurement using logarithmic range calculations
Full ADX implementation with directional indicators
8-layer adaptive EMA ribbon with volatility-based spacing
Volume pressure estimation using candle structure analysis
4th-order Gaussian filter for noise elimination
Fractal efficiency measurement using logarithmic path complexity
Adaptive Laguerre transform with 4 cascading filter levels
Temporal flow analysis with direction, magnitude, and acceleration
Pivot-based market structure tracking
Order block and imbalance zone detection
25-factor confluence scoring system across 5 signal layers
Dynamic position sizing based on volatility and regime
ATR-based stop loss and take profit calculations
Optional trailing stop system with volatility adjustment
Comprehensive dashboard with 18 metrics and performance tracking
Alert system for all entry and exit signals
The code is fully open-source with extensive comments explaining each component and signal generation logic.
Originality Statement
This strategy is original and represents a complete trading system built from proprietary knowledge rather than indicator mashups. The strategy is justified because:
It synthesizes 13 independent analytical systems into a unified execution framework
The 25-factor confluence scoring across 5 signal layers provides multi-dimensional validation
Each component is built from first principles using mathematical models and market microstructure concepts
The adaptive nature of the system (volatility, efficiency, regime) ensures relevance across market conditions
Risk management is integrated at the core rather than added as an afterthought
The strategy doesn't rely on any single indicator or pattern - it builds intelligence from multiple independent sources
Fractal efficiency and Laguerre adaptation provide unique momentum measurement not found in standard systems
Temporal flow analysis adds a dimension of price dynamics beyond simple trend following
Market structure tracking provides context that pure indicator-based systems lack
The comprehensive dashboard provides complete strategy intelligence and performance tracking
The system is designed for real trading with realistic risk management, not just backtest optimization
Each component contributes unique intelligence: volatility drives adaptation, efficiency filters conditions, chaos identifies regimes, conviction measures strength, ribbon provides structure, pressure shows order flow, Gauss filtering eliminates noise, fractal efficiency validates momentum, Laguerre provides adaptive momentum, flow tracks dynamics, structure provides context, order blocks mark zones, and confluence validates signals. The strategy's value lies in combining these complementary perspectives into a cohesive, adaptive trading system with institutional-grade risk management.
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.
Algorithmic trading strategies are tools for systematic execution, not guarantees of profit. Backtested performance does not guarantee future results. Past strategy performance does not predict future performance. Market conditions change, and strategies that worked historically may not work in the future.
The signals generated are mathematical calculations based on current market data, not predictions of future price movement. High confluence scores, regime alignment, and structure breaks 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 strategy. Users assume full responsibility for all trading decisions made using this tool. Thoroughly backtest and forward test any strategy before live trading.
-Made with passion by officialjackofalltrades Strategy

Temporal Flow Analyzer [JOAT]Temporal Flow Analyzer
Introduction
The Temporal Flow Analyzer is an advanced open-source time-based analysis indicator that examines price flow across temporal dimensions, session dynamics, and time-weighted patterns to identify institutional activity timing and flow shifts. This indicator transforms time-based market data into actionable flow intelligence, helping traders identify when price flow is accelerating, decelerating, reversing, or experiencing temporal pressure changes.
Unlike basic trend indicators that ignore time dynamics, this system analyzes flow direction, flow strength, flow acceleration, session-based patterns, temporal pressure, and time zone positioning. The indicator is designed for traders who understand that institutional activity follows temporal patterns and that time-based analysis reveals flow dynamics invisible to price-only indicators.
Why This Indicator Exists
This indicator addresses a fundamental aspect of market analysis often overlooked: the temporal dimension of price flow. Markets don't just move in price - they move through time, and the relationship between price movement and time reveals institutional flow dynamics. The core innovation lies in analyzing multiple temporal dimensions:
Price Flow Analysis: Measures directional flow using dual-EMA comparison with strength and acceleration tracking
Session Analysis: Identifies Asian, London, and NY sessions with session high/low tracking and breakout detection
Temporal Momentum: RSI-based momentum with flow-weighted calculations and divergence detection
Volume Flow: Analyzes volume flow patterns, net pressure, and buying/selling flow dynamics
Time Zone Positioning: Determines if price is in premium, discount, or equilibrium zones within session range
Flow Shift Detection: Identifies when flow direction changes, signaling potential trend reversals
Flow Exhaustion: Detects when flow strength is high but acceleration is low, warning of exhaustion
Temporal Pressure: Combines price flow, volume flow, and flow strength into unified pressure metric
Each component reveals different aspects of temporal flow. Price flow shows direction, session analysis provides timing context, momentum shows strength, volume flow confirms participation, time zones show value, flow shifts warn of reversals, exhaustion signals caution, and temporal pressure quantifies intensity.
Core Components Explained
1. Price Flow Calculation
Price flow measures directional movement using dual exponential moving averages:
Price Flow = EMA(Close, Flow Period) - EMA(Close, Flow Period * 2)
This calculation creates a zero-centered oscillator:
- Positive values indicate bullish flow (faster EMA above slower EMA)
- Negative values indicate bearish flow (faster EMA below slower EMA)
- Magnitude shows flow strength
Flow Direction = Price Flow > 0 ? Bullish : Bearish
Flow Strength = Absolute(Price Flow) / ATR(14)
Flow strength normalization using ATR ensures cross-instrument comparison and removes price-level bias. Values above 1.5 indicate strong flow, 0.8-1.5 moderate flow, below 0.8 weak flow.
Flow Acceleration = Change in Price Flow over 3 bars
Positive acceleration indicates flow is building, negative acceleration indicates flow is fading. This provides early warning of flow changes before they become obvious in the main flow metric.
2. Session Detection and Analysis
The indicator identifies three major trading sessions using UTC hour detection:
Asian Session: Customizable start hour (default 0 UTC) to London start
London Session: Customizable start hour (default 7 UTC) to NY start
NY Session: Customizable start hour (default 12 UTC) to Asian start
Session tracking maintains:
- Session High: Highest price since session start
- Session Low: Lowest price since session start
- Session Start Bar: Bar index when session began
- New Session Flag: Triggers on session transitions
Session boxes are drawn showing the high/low range for each session, providing visual context for session-based support/resistance and breakout analysis.
3. Session Breakout Detection
Session breakouts mark when price exceeds previous session boundaries with conviction:
Session Breakout Up:
- High > Previous Session High
- Volume > Average Volume * 2.0
- Close > Previous Session High (confirms breakout, not just wick)
Session Breakout Down:
- Low < Previous Session Low
- Volume > Average Volume * 2.0
- Close < Previous Session Low
These breakouts often mark the start of significant moves as price breaks out of established ranges with institutional participation (confirmed by volume). The indicator places small labels marking breakout events.
4. Temporal Momentum Analysis
Temporal momentum combines RSI with flow-based weighting:
Momentum = RSI(Close, Momentum Length)
Momentum Flow = EMA(Momentum, 5)
Momentum Divergence = Momentum - Momentum Flow
Momentum Acceleration = Change in Momentum over 3 bars
Momentum classification:
- Overbought: Momentum > 70
- Oversold: Momentum < 30
- Neutral: Momentum between 30 and 70
The indicator tracks momentum divergence to identify when momentum is deviating from its trend, often preceding flow reversals.
5. Volume Flow Dynamics
Volume flow analysis separates buying and selling pressure:
Volume Flow = EMA(Volume, Volume Flow Period)
Volume Flow Delta = Current Volume - Volume Flow
Volume Flow Ratio = Current Volume / Volume Flow
Buying Pressure = Volume when Close > Open
Selling Pressure = Volume when Close < Open
Net Pressure = EMA(Buying Pressure - Selling Pressure, Volume Flow Period)
Net pressure reveals institutional positioning:
- Positive net pressure: Institutions accumulating (buying dominance)
- Negative net pressure: Institutions distributing (selling dominance)
- Magnitude shows intensity of positioning
6. Time Zone Position Analysis
The indicator calculates price position within the session range:
Session Range = Session High - Session Low
Session Mid = (Session High + Session Low) / 2
Premium Zone = Price > Session Mid + Range * 0.25 (upper 25%)
Discount Zone = Price < Session Mid - Range * 0.25 (lower 25%)
Equilibrium = Price between premium and discount zones
Smart money concepts suggest:
- Premium zones: Favorable for selling/distribution
- Discount zones: Favorable for buying/accumulation
- Equilibrium: No clear value edge
The dashboard displays current zone and suggested bias (SELL in premium, BUY in discount, WAIT in equilibrium).
7. Flow Shift Detection System
Flow shifts mark critical transitions in directional flow:
Flow Shift = Flow Direction changes from previous bar's direction
The indicator tracks the last flow direction and compares it to current direction. When they differ, a flow shift is detected. These shifts often mark:
- Trend reversals (shift from strong flow to opposite flow)
- Consolidation starts (shift from strong flow to weak flow)
- Breakout beginnings (shift from weak flow to strong flow)
Flow shift labels are placed at shift points with direction indicators (UP for bullish shift, DN for bearish shift).
8. Accumulation and Distribution Detection
The indicator identifies institutional accumulation/distribution using strict criteria:
Strong Accumulation:
- Close > Open (bullish candle)
- Volume > Average Volume * 2.5 (very high participation)
- Close > EMA(20) (above trend)
- Close > High (breaking above previous high)
- Momentum < 50 (not overbought)
Strong Distribution:
- Close < Open (bearish candle)
- Volume > Average Volume * 2.5
- Close < EMA(20) (below trend)
- Close < Low (breaking below previous low)
- Momentum > 50 (not oversold)
These strict criteria ensure only genuine institutional positioning is flagged, not retail noise. Labels mark accumulation ("A") and distribution ("D") events.
9. Flow Divergence Analysis
Flow divergences identify price-flow asymmetries:
Bullish Flow Divergence:
- Price makes lower low (Price < Price )
- Flow makes higher low (Flow > Flow )
- Momentum < 35 (oversold context)
- Flow Strength > 0.5 (significant flow)
Bearish Flow Divergence:
- Price makes higher high (Price > Price )
- Flow makes lower high (Flow < Flow )
- Momentum > 65 (overbought context)
- Flow Strength > 0.5
Divergences warn that flow is not confirming price extremes, often preceding reversals. The indicator places "DIV" labels at divergence points.
10. Flow Exhaustion Detection
Flow exhaustion occurs when flow strength is high but acceleration is low:
Flow Exhaustion = Flow Strength > 2.0 AND Absolute(Momentum Acceleration) < 0.5
This condition suggests flow has reached extreme levels but is no longer accelerating, often marking climax moves before reversals. Exhaustion labels ("EX") warn traders to prepare for potential flow reversal.
11. Temporal Pressure Calculation
Temporal pressure combines multiple flow dimensions:
Temporal Pressure = (Price Flow / ATR) * (Volume Flow Ratio - 1) * Flow Strength
This calculation creates a comprehensive pressure metric:
- Positive values: Bullish temporal pressure
- Negative values: Bearish temporal pressure
- Magnitude shows pressure intensity
Extreme pressure (absolute value > 2.0) often precedes significant moves or reversals depending on context.
12. Flow Velocity Analysis
Flow velocity measures the rate of price change over time:
Flow Velocity = Change in Close over 5 bars / 5
Flow Velocity EMA = EMA(Flow Velocity, 10)
Velocity Divergence = Flow Velocity - Flow Velocity EMA
Velocity Threshold = ATR * 0.2
Velocity classification:
- Fast: Absolute Velocity > Velocity Threshold
- Slow: Absolute Velocity <= Velocity Threshold
Fast velocity indicates rapid flow, slow velocity indicates gradual flow. Velocity divergence shows when current velocity differs from average velocity.
Visual Elements
Session Boxes: Colored boxes showing Asian (yellow), London (green), and NY (red) session ranges
Flow Shift Labels: Small labels marking flow direction changes (UP/DN)
Accumulation/Distribution Labels: Tiny labels marking institutional positioning (A/D)
Flow Divergence Labels: Labels marking price-flow asymmetries (DIV)
Session Breakout Labels: Labels marking session high/low breakouts (BO/BD)
Flow Exhaustion Labels: Labels warning of flow exhaustion (EX)
Time Zone Backgrounds: Subtle backgrounds showing premium (bearish) and discount (bullish) zones
Flow Direction Background: Very subtle background showing current flow direction
Session Level Lines: Dashed lines showing session high, mid, and low levels
Flow EMA Line: Line showing flow EMA for trend context
Comprehensive Dashboard: 12-row intelligence panel with all temporal flow metrics
The visual system is designed for clarity with minimal clutter - only significant events are marked, and backgrounds are very subtle to avoid distraction.
Input Parameters
Temporal Settings:
Flow Period: Period for flow calculation (10-50, default 20)
Session Length: Bars for session analysis (10-100, default 24)
Momentum Length: Period for momentum (5-30, default 14)
Volume Flow Period: Period for volume flow (5-30, default 10)
Features:
Price Flow Direction: Toggle flow analysis (default enabled)
Session Analysis: Toggle session detection (default enabled)
Temporal Momentum: Toggle momentum tracking (default enabled)
Volume Flow: Toggle volume analysis (default enabled)
Time-Based Zones: Toggle premium/discount zones (default enabled)
Flow Shift Signals: Toggle shift detection (default enabled)
Flow Divergence: Toggle divergence detection (default enabled)
Session Breakouts: Toggle breakout signals (default enabled)
Sessions:
Asian Session Start: Hour in UTC (0-23, default 0)
London Session Start: Hour in UTC (0-23, default 7)
NY Session Start: Hour in UTC (0-23, default 12)
Colors:
All colors are fully customizable including time bull (neon cyan), time bear (neon pink), session active (gold), flow positive (neon green), flow negative (pink), momentum high (purple), accumulation (cyan), and distribution (pink).
How to Use This Indicator
Step 1: Identify Flow Direction
Check dashboard "FLOW" field showing BULLISH or BEARISH. This indicates current directional flow. Note the status (STRONG/MODERATE/WEAK) showing flow strength.
Step 2: Monitor Flow Strength
Review "STRENGTH" metric showing flow intensity. Values above 1.5 indicate strong directional flow suitable for trend-following. Values below 0.8 suggest weak flow where range-bound strategies may work better.
Step 3: Watch Flow Acceleration
Check "ACCELERATION" showing ACCELERATING, DECELERATING, or STABLE. Accelerating flow confirms trend strength. Decelerating flow warns of potential exhaustion even if flow remains positive/negative.
Step 4: Identify Active Session
Review "SESSION" field showing ASIAN, LONDON, or NY. Different sessions have different characteristics - London and NY overlap often shows highest volatility and volume.
Step 5: Assess Volume Flow
Check "VOL FLOW" showing HIGH, NORMAL, or LOW. High volume flow confirms genuine institutional participation. Low volume flow suggests retail-dominated or thin-market conditions.
Step 6: Monitor Net Pressure
Review "PRESSURE" showing BUYING or SELLING with intensity (STRONG/MODERATE/WEAK). This reveals institutional positioning - sustained buying pressure suggests accumulation, sustained selling suggests distribution.
Step 7: Check Time Zone Position
Review "TIME ZONE" showing PREMIUM, DISCOUNT, or EQUILIBRIUM with bias suggestion. Buy in discount zones, sell in premium zones for optimal risk/reward aligned with smart money concepts.
Step 8: Watch for Flow Shifts
Flow shift labels mark critical transitions. These often provide early warning of trend changes before they're obvious in price. Shifts from strong flow to opposite flow are most significant.
Step 9: Use Divergence Warnings
Flow divergence labels warn when flow is not confirming price extremes. These often precede reversals and provide high-probability counter-trend entry opportunities.
Step 10: Monitor Flow State
Check "STATE" field showing current flow condition (EXHAUSTED, SHIFTING, BULL DIV, BEAR DIV, ACCUM, DISTRIB, or FLOWING). This provides immediate context for current flow dynamics.
Best Practices
Flow shifts with strong acceleration often mark the start of new trends
Session breakouts during London/NY overlap offer highest-probability setups
Accumulation in discount zones and distribution in premium zones are most reliable
Flow divergences at extreme momentum levels (>70 or <30) are most significant
Flow exhaustion signals work best when combined with time zone extremes
Strong volume flow confirmation separates genuine moves from false signals
Temporal pressure above 2.0 or below -2.0 often precedes significant moves
Flow velocity acceleration provides early entry timing before flow shift is obvious
Session high/low levels often provide support/resistance for intraday trading
Multiple flow shifts in short period suggest choppy conditions - reduce position size
Flow strength above 2.0 in discount zones offers optimal long entry conditions
Flow deceleration in premium zones warns of potential distribution
Indicator Limitations
Session detection uses UTC hours which may not align perfectly with actual market hours
Flow analysis works best on instruments with consistent intraday patterns
Volume flow requires accurate volume data - some instruments have unreliable volume
Time zone analysis assumes session ranges are meaningful - may not apply to all instruments
Flow shifts can whipsaw during genuinely transitional periods
Accumulation/distribution detection uses strict criteria - may miss some institutional activity
Flow divergences can persist longer than expected before price reverses
Session breakouts can be false - always use stop losses
The indicator shows flow dynamics but cannot predict news events or fundamental catalysts
Temporal pressure can remain extreme during strong trends
Flow exhaustion signals are warnings, not guarantees of reversal
Technical Implementation
Built with Pine Script v6 using:
Dual-EMA flow calculation with ATR-normalized strength measurement
Session detection using hour() function with customizable UTC start times
Session high/low tracking with reset on new session detection
RSI-based momentum with flow-weighted calculations
Volume flow analysis with buying/selling pressure separation
Net pressure calculation using EMA smoothing
Time zone position analysis using session range calculations
Flow shift detection using directional comparison
Strict accumulation/distribution criteria combining volume, price action, and momentum
Flow divergence detection using lookback comparison with strength filtering
Flow exhaustion identification combining strength and acceleration thresholds
Temporal pressure calculation integrating flow, volume, and strength
Flow velocity tracking with EMA smoothing and divergence calculation
Comprehensive dashboard with 12 metrics and color-coded status indicators
Minimal label system preventing chart clutter while maintaining signal visibility
The code is fully open-source with detailed comments explaining temporal flow concepts.
Originality Statement
This indicator is original in its comprehensive temporal flow analysis approach. While individual components (flow, sessions, momentum, volume) are established concepts, this indicator is justified because:
It integrates price flow, session analysis, momentum, and volume flow into a unified temporal framework
The flow shift detection system provides early warning of directional changes
Accumulation/distribution detection uses strict multi-factor criteria ensuring institutional-grade signals
Flow divergence analysis identifies price-flow asymmetries with strength filtering
Flow exhaustion detection combines strength and acceleration for climax move identification
Temporal pressure calculation synthesizes multiple flow dimensions into unified intensity metric
Time zone position analysis provides smart money context for entry timing
Session breakout detection with volume confirmation identifies high-probability setups
The comprehensive dashboard synthesizes 12 distinct metrics into unified temporal intelligence
Flow velocity and acceleration tracking provides early momentum shift detection
Each component reveals different temporal dynamics: flow shows direction, sessions provide timing, momentum shows strength, volume confirms participation, time zones show value, shifts warn of changes, divergences signal reversals, exhaustion marks climaxes, and pressure quantifies intensity. The indicator's value lies in combining these complementary perspectives into a cohesive temporal flow analysis 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.
Temporal flow analysis is a tool for understanding time-based market dynamics, not a crystal ball for predicting future price movement. Flow shifts do not guarantee trend changes. Session breakouts do not guarantee continuation. Past flow patterns do not guarantee future flow 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. Flow shifts, divergences, exhaustion signals, and session breakouts 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

Smart Money Structure Decoder [JOAT]Smart Money Structure Decoder
Introduction
The Smart Money Structure Decoder is an advanced open-source market structure indicator that identifies institutional footprints through Break of Structure (BOS), Change of Character (CHoCH), liquidity sweeps, price imbalances, and points of interest. This indicator transforms raw price action into actionable smart money intelligence, helping traders identify when institutions are accumulating positions, sweeping liquidity, and shifting market structure.
Unlike basic support/resistance indicators that simply mark price levels, this system analyzes market microstructure through pivot detection, liquidity pool tracking, imbalance zone identification, and multi-timeframe bias alignment. The indicator is designed for traders who understand that institutional activity leaves detectable footprints in market structure and that following smart money positioning offers edge in directional trading.
Why This Indicator Exists
This indicator addresses a critical challenge in trading: identifying when institutional players are actively positioning and when they're manipulating price to trigger retail stops before moving in their intended direction. The core innovation lies in systematically detecting smart money concepts:
Market Structure Analysis: Identifies Break of Structure (BOS) when price breaks previous highs/lows in trend direction and Change of Character (CHoCH) when price breaks counter-trend, signaling potential reversals
Liquidity Sweep Detection: Tracks when price briefly exceeds key levels to trigger stops then reverses, indicating institutional liquidity hunting
Price Imbalance Zones: Identifies fair value gaps where price moved too quickly, leaving inefficiencies that often get filled
Points of Interest (POI): Marks high-volume reversal zones where institutions likely established positions
Multi-Timeframe Bias: Confirms whether higher timeframe trend aligns with current timeframe structure
Volume Confirmation: Validates structure breaks and sweeps with volume surge analysis
Real-Time Metrics: Tracks cumulative counts of BOS, CHoCH, sweeps, imbalances, and POIs for pattern recognition
Each component reveals different aspects of institutional activity. BOS confirms trend continuation, CHoCH warns of reversals, liquidity sweeps show manipulation, imbalances mark inefficiencies, POIs identify accumulation zones, MTF bias validates conviction, and volume confirms genuine moves versus fakeouts.
Core Components Explained
1. Pivot Detection System
The indicator uses pivot analysis to identify significant highs and lows:
Pivot High = High that is higher than N bars before and N bars after (default N=10)
Pivot Low = Low that is lower than N bars before and N bars after (default N=10)
These pivots represent swing points where price temporarily reversed, marking potential support/resistance levels and liquidity pools. The pivot length parameter controls sensitivity - lower values detect more pivots (more sensitive), higher values detect only major pivots (less sensitive).
The indicator tracks the most recent pivot high and pivot low, along with their bar indices, to establish the current market structure framework.
2. Market Structure Tracking
The indicator maintains persistent structure variables:
Trend Direction: +1 for uptrend, -1 for downtrend, 0 for undefined
Last High: Most recent pivot high price and bar location
Last Low: Most recent pivot low price and bar location
Market structure evolves through two mechanisms:
Break of Structure (BOS):
- In uptrend: New pivot high exceeds previous pivot high (higher high)
- In downtrend: New pivot low breaks below previous pivot low (lower low)
- BOS confirms trend continuation and institutional commitment to direction
Change of Character (CHoCH):
- In uptrend: New pivot low breaks below previous pivot low (lower low in uptrend)
- In downtrend: New pivot high exceeds previous pivot high (higher high in downtrend)
- CHoCH signals potential trend reversal and shift in institutional positioning
The indicator counts cumulative BOS and CHoCH events, allowing traders to assess whether market is trending cleanly (high BOS, low CHoCH) or choppy (high CHoCH, frequent reversals).
3. Liquidity Pool and Sweep Detection
The indicator maintains arrays of liquidity levels (recent pivot highs and lows) and monitors for sweeps:
Liquidity Pool: Array of last 10 pivot prices and their bar locations
Sweep Detection Logic:
- Price exceeds liquidity level (high > level for highs, low < level for lows)
- Close returns below/above the level (close < level for high sweeps, close > level for low sweeps)
- Volume exceeds average volume * threshold (default 1.8x)
Liquidity sweeps are classic institutional manipulation where price briefly triggers stops at obvious levels then reverses. These often mark excellent entry points as institutions have cleared liquidity and can now move price in their intended direction.
The indicator draws dashed lines from the liquidity level to the sweep bar and places labels marking "SWEEP" events. Swept levels are removed from the liquidity array as they've been cleared.
4. Price Imbalance Detection
Imbalances (Fair Value Gaps) occur when price moves so quickly that it leaves gaps in the order book:
Bullish Imbalance:
- Current low > high from 2 bars ago (gap up)
- Gap size > ATR * 0.3 (significant gap, not just noise)
Bearish Imbalance:
- Current high < low from 2 bars ago (gap down)
- Gap size > ATR * 0.3
The indicator draws boxes around imbalance zones extending 10 bars into the future. These zones often act as magnets where price returns to fill the inefficiency. Institutions frequently use imbalances as entry zones, buying into bullish imbalances or selling into bearish imbalances.
Imbalance count tracks cumulative gaps, helping identify instruments or timeframes with frequent inefficient price action versus those with smooth, efficient movement.
5. Points of Interest (POI) Detection
POIs mark zones where institutions likely established significant positions:
POI Criteria:
- Volume > Average Volume * 1.8 (high participation)
- Bar range > ATR * 0.5 (significant price movement)
- Combination suggests institutional activity
The indicator places small labels at POI locations. These zones often provide support/resistance in future price action as institutions defend their positions or add to them.
POI count helps assess institutional activity levels - high POI counts suggest active institutional participation, low counts suggest retail-dominated or low-activity periods.
6. Multi-Timeframe Bias Analysis
The indicator requests close price from a higher timeframe (default 60m) and determines HTF trend:
HTF Trend = HTF Close > HTF Close ? Bullish : Bearish
MTF Alignment = Current Timeframe Trend matches HTF Trend
When MTF is aligned, trades in the trend direction have higher probability as both timeframes agree. When MTF is divergent, caution is warranted as timeframes conflict.
The dashboard displays alignment status (ALIGNED/DIVERGENT) and strength (STRONG/WEAK) based on how clearly both timeframes show directional bias.
7. Volume Analysis and Confirmation
Volume plays a critical role in validating structure:
Average Volume = 20-period SMA of volume
Volume Spike = Current volume > Average * threshold (default 1.8x)
Volume spikes confirm:
- BOS events (genuine institutional commitment)
- CHoCH events (real reversal, not fakeout)
- Liquidity sweeps (institutional participation)
- POI zones (significant positioning)
Low volume structure breaks often fail, while high volume breaks tend to follow through. The indicator uses volume confirmation throughout its detection logic.
8. Comprehensive Metrics Dashboard
The indicator tracks and displays 13 key metrics:
1. Trend: Current market structure direction (BULLISH/BEARISH/NEUTRAL)
2. Structure: Most recent event (BOS/CHoCH/NONE) with count
3. BOS Count: Cumulative break of structure events with status (HIGH/ACTIVE/LOW)
4. CHoCH Count: Cumulative change of character events with status (CHOPPY/ACTIVE/CLEAN)
5. Liquidity: Active liquidity levels count with status (SWEPT/DENSE/NORMAL)
6. Sweeps: Cumulative sweep count with status (ACTIVE/SOME/NONE)
7. Imbalances: Cumulative imbalance count with status (HIGH/ACTIVE/LOW)
8. POI: Points of interest count with status (ACTIVE/MANY/FEW)
9. Volume: Current volume status (SPIKE/HIGH/NORMAL) with ratio
10. Position: Price position in session range (PREMIUM/DISCOUNT/EQUILIBRIUM) with bias
11. Momentum: RSI-based momentum (OVERBOUGHT/OVERSOLD/NEUTRAL) with value
12. MTF: Multi-timeframe alignment (ALIGNED/DIVERGENT) with strength
These metrics provide complete smart money context at a glance, enabling rapid assessment of market structure, institutional activity, and trade setup quality.
9. Price Position Analysis
The indicator calculates price position within the session range:
Session High = Highest high since session start
Session Low = Lowest low since session start
Session Mid = (Session High + Session Low) / 2
Premium Zone = Price > Session Mid + Range * 0.25 (upper 25% of range)
Discount Zone = Price < Session Mid - Range * 0.25 (lower 25% of range)
Equilibrium = Price between premium and discount zones
Smart money concepts suggest:
- Buy in discount zones (institutions accumulating at favorable prices)
- Sell in premium zones (institutions distributing at favorable prices)
- Avoid equilibrium zones (no clear edge)
The dashboard displays current position and suggested bias (BUY/SELL/WAIT).
Visual Elements
BOS Signals: Triangle shapes (up for bullish, down for bearish) marking break of structure events
CHoCH Signals: Circle shapes marking change of character events
Structure Lines: Lines connecting swing points showing market structure evolution
Liquidity Sweep Lines: Dashed lines from liquidity level to sweep point with "SWEEP" labels
Imbalance Boxes: Semi-transparent boxes highlighting fair value gaps
POI Labels: Small labels marking points of interest
Structure Break Lines: Horizontal lines marking BOS levels with "BRK" labels
Structure Shift Lines: Dashed lines marking CHoCH levels with "SHIFT" labels
Order Block Boxes: Boxes highlighting institutional order zones
Trend Background: Subtle gradient showing current trend direction
Comprehensive Dashboard: 13-row intelligence panel with all smart money metrics
The visual system is designed for clarity - each element has distinct styling to prevent confusion while maintaining professional appearance.
Input Parameters
Core Settings:
Pivot Length: Bars before/after for pivot detection (5-30, default 10)
ATR Length: Period for ATR calculation (10-30, default 14)
Volume Spike Threshold: Multiplier for volume confirmation (1.2-3.0, default 1.8)
Features:
Market Structure (BOS/CHoCH): Toggle structure detection (default enabled)
Liquidity Sweeps: Toggle sweep detection (default enabled)
Price Imbalances: Toggle imbalance zones (default enabled)
Points of Interest: Toggle POI detection (default enabled)
Multi-Timeframe Bias: Toggle MTF analysis (default enabled)
Multi-Timeframe:
Higher Timeframe: HTF for bias analysis (default 60m)
Colors:
All colors are fully customizable including bull primary (neon cyan), bear primary (neon pink), structure break (gold), liquidity sweep (sunset orange), and imbalance zone (neon purple).
How to Use This Indicator
Step 1: Identify Current Market Structure
Check dashboard "TREND" field. BULLISH structure suggests looking for long setups, BEARISH structure suggests short setups. Note the structure status - clean trends show high BOS and low CHoCH counts.
Step 2: Monitor Structure Events
Watch for BOS signals (triangles) confirming trend continuation. These mark optimal trend-following entry points. Watch for CHoCH signals (circles) warning of potential reversals. These suggest reducing positions or preparing for counter-trend trades.
Step 3: Identify Liquidity Sweeps
Liquidity sweep signals (dashed lines with "SWEEP" labels) mark manipulation events. These often provide excellent entry opportunities as institutions have cleared stops and can now move price. Enter in the direction opposite to the sweep (sweep of highs = short setup, sweep of lows = long setup).
Step 4: Use Imbalance Zones
Imbalance boxes mark fair value gaps. Price often returns to fill these zones. Use imbalances as entry zones - buy into bullish imbalances (price returns to gap), sell into bearish imbalances. Unfilled imbalances suggest strong directional conviction.
Step 5: Respect Points of Interest
POI labels mark institutional positioning zones. These often provide support/resistance. Watch for price reactions at POI levels - bounces confirm institutional defense, breaks suggest institutional exit.
Step 6: Assess Price Position
Check dashboard "POSITION" showing PREMIUM/DISCOUNT/EQUILIBRIUM. Smart money concepts suggest buying in discount zones and selling in premium zones. The dashboard provides bias suggestion (BUY/SELL/WAIT).
Step 7: Confirm with MTF Bias
Review "MTF" alignment status. ALIGNED with STRONG rating confirms both timeframes agree on direction. DIVERGENT suggests caution as timeframes conflict. Only take trades when MTF is aligned for highest probability.
Step 8: Validate with Volume
Check "VOLUME" status. Structure breaks and sweeps with SPIKE or HIGH volume are more reliable than those with NORMAL volume. Low volume events often fail.
Best Practices
BOS in trend direction with volume confirmation offers highest-probability continuation trades
CHoCH signals are most reliable when they occur at extreme price positions (premium/discount zones)
Liquidity sweeps at session highs/lows often mark major reversal points
Imbalances that remain unfilled for multiple bars suggest strong directional conviction
POI zones near key structure levels (previous BOS/CHoCH) are most significant
Trade in discount zones for longs, premium zones for shorts for optimal risk/reward
MTF alignment is critical - avoid trades when timeframes diverge
High CHoCH count (>3) suggests choppy conditions - reduce position size or avoid
Clean trends show BOS count > CHoCH count by at least 2:1 ratio
Volume spike confirmation separates genuine institutional moves from retail noise
Multiple sweeps at same level suggest strong institutional interest
Imbalances near structure breaks often get filled before trend continuation
Indicator Limitations
Pivot detection requires sufficient bars before/after - signals lag by pivot length
Structure analysis works best on liquid instruments with clear swing points
Liquidity sweep detection is probabilistic - not all sweeps lead to reversals
Imbalance zones can remain unfilled for extended periods during strong trends
POI detection uses volume which may be unreliable on some instruments
MTF analysis requires data availability on selected higher timeframe
The indicator identifies structure but cannot predict institutional intent
High-frequency trading and algorithmic activity can create false structure signals
News events can override technical structure instantly
Structure breaks can be fakeouts - always use stop losses
The indicator shows what institutions did, not what they will do
Technical Implementation
Built with Pine Script v6 using:
Pivot detection using ta.pivothigh and ta.pivotlow with customizable length
Persistent structure tracking using var variables for trend, highs, lows, and bar indices
Array-based liquidity pool management with dynamic addition/removal
Imbalance detection using gap analysis with ATR-based filtering
Volume spike detection using rolling average comparison
POI identification combining volume and range analysis
Multi-timeframe security request with proper lookahead settings
Price position calculation using session high/low tracking
RSI-based momentum analysis for overbought/oversold context
Comprehensive dashboard with 13 metrics and color-coded status indicators
Dynamic line and box drawing for structure visualization
Label system with size and style variations for different signal types
The code is fully open-source with detailed comments explaining smart money concepts and detection logic.
Originality Statement
This indicator is original in its comprehensive smart money structure analysis. While individual concepts (BOS, CHoCH, liquidity sweeps, imbalances) are established in smart money trading, this indicator is justified because:
It systematically integrates five distinct smart money concepts (structure, sweeps, imbalances, POI, MTF) into a unified detection system
The liquidity pool tracking with dynamic sweep detection provides real-time manipulation identification
Imbalance zone detection with ATR-based filtering ensures only significant gaps are marked
POI detection combines volume and range analysis to identify institutional positioning zones
Price position analysis (premium/discount/equilibrium) provides smart money context for entries
The comprehensive dashboard synthesizes 13 metrics into unified smart money intelligence
Integration of volume confirmation throughout ensures signals reflect genuine institutional activity
MTF bias alignment validates that structure aligns across temporal dimensions
Cumulative event counting (BOS, CHoCH, sweeps, imbalances, POI) enables pattern recognition
The visual system clearly distinguishes between different structure types without clutter
Each component reveals different institutional footprints: BOS shows commitment, CHoCH shows reversal, sweeps show manipulation, imbalances show inefficiency, POI shows positioning, price position shows value zones, MTF shows conviction, and volume confirms participation. The indicator's value lies in combining these complementary perspectives into a cohesive smart money structure analysis 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.
Smart money structure analysis is a tool for understanding institutional footprints, not a crystal ball for predicting future price movement. Structure breaks do not guarantee trend continuation. Liquidity sweeps do not guarantee reversals. Past structure patterns do not guarantee future structure 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. BOS, CHoCH, sweeps, imbalances, and POI signals 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

Fractal Velocity Accelerator [JOAT]Fractal Velocity Accelerator
Introduction
The Fractal Velocity Accelerator is an advanced open-source momentum indicator that combines fractal efficiency measurement, adaptive Laguerre filtering, and Gaussian smoothing to create a multi-dimensional momentum oscillator with institutional-grade signal generation. This indicator transforms raw price data into a sophisticated momentum measurement system that reveals not just momentum direction and strength, but also velocity, acceleration, and regime characteristics.
Unlike traditional momentum indicators that simply measure rate of change, this system analyzes the efficiency of price movement through fractal mathematics, applies adaptive lag reduction through Laguerre transforms, and smooths data using 4th-order Gauss filters. The result is a momentum oscillator that responds quickly to genuine momentum shifts while filtering out noise and false signals.
Why This Indicator Exists
This indicator addresses fundamental limitations in traditional momentum analysis by introducing fractal efficiency concepts and adaptive filtering:
4th-Order Gauss Filter: Ultra-smooth OHLC data processing that eliminates noise while preserving genuine price movements
Fractal Efficiency Engine: Logarithmic path efficiency measurement that quantifies how directly price moves from point A to point B
Adaptive Laguerre Transform: Dynamic lag reduction that adjusts based on fractal efficiency, responding faster during efficient moves
Percentile-Based Bands: Self-adjusting overbought/oversold zones that adapt to each instrument's unique momentum characteristics
Velocity and Acceleration Tracking: First and second derivative calculations that identify momentum shifts before they're obvious
Momentum Regime Classification: Seven-level regime system from Extreme Bearish to Extreme Bullish with confidence measurements
Divergence Detection: Fractal-based divergence scanner that identifies price-momentum asymmetries
Each component provides unique intelligence about momentum dynamics. Gauss filtering ensures clean data, fractal efficiency measures directional clarity, Laguerre adaptation reduces lag, percentile bands provide context, velocity/acceleration track changes, regime classification guides strategy, and divergences reveal hidden shifts.
Core Components Explained
1. 4th-Order Gauss Filter System
The indicator applies a sophisticated Gaussian filter to all OHLC data:
w = (2.0 * math.pi / gaussLength)
beta = (1 - math.cos(w)) / (math.pow(1.414, 2.0 / betaDev) - 1)
alpha = (-beta + math.sqrt(beta * beta + 2 * beta))
Gc := math.pow(alpha, 4) * close +
4 * (1.0 - alpha) * nz(Gc ) -
6 * math.pow(1 - alpha, 2) * nz(Gc ) +
4 * math.pow(1 - alpha, 3) * nz(Gc ) -
math.pow(1 - alpha, 4) * nz(Gc )
This 4th-order filter provides exceptional smoothing while maintaining responsiveness. The filter uses four previous values with specific weightings that create a bell curve response, eliminating high-frequency noise while preserving genuine price movements.
The beta deviation parameter (default 2.0) controls filter aggressiveness. Higher values create more smoothing but add lag. Lower values maintain responsiveness but allow more noise. The default balances these tradeoffs optimally for most instruments.
2. Fractal Efficiency Calculation
Fractal efficiency measures how efficiently price moves by comparing net displacement to total path length:
sumRange = math.sum((math.max(Gh, nz(Gc )) - math.min(Gl, nz(Gc ))), fractalLength)
totalRange = ta.highest(Gh, fractalLength) - ta.lowest(Gl, fractalLength)
fractalGamma = if totalRange > 0
math.log(sumRange / totalRange) / math.log(fractalLength)
else
0.0
fractalEfficiency = math.max(0, math.min(1, (fractalGamma + 1) / 2))
The calculation uses logarithmic scaling to measure path complexity. When price moves in a straight line (high efficiency), the ratio approaches 1.0. When price moves erratically (low efficiency), the ratio approaches 0.0.
Fractal efficiency is normalized to 0-1 range where:
- 1.0 = Perfect efficiency (straight line movement)
- 0.7-1.0 = High efficiency (strong trending)
- 0.4-0.7 = Moderate efficiency (developing trend)
- 0.0-0.4 = Low efficiency (choppy/ranging)
This measurement is crucial because it determines how aggressively the Laguerre filter adapts.
3. Adaptive Laguerre Transform
The Laguerre filter applies adaptive lag reduction based on fractal efficiency:
gamma = laguerreGamma * (1 - fractalEfficiency) + 0.1 * fractalEfficiency
L0 := (1 - gamma) * Gc + gamma * nz(L0 )
L1 := -gamma * L0 + nz(L0 ) + gamma * nz(L1 )
L2 := -gamma * L1 + nz(L1 ) + gamma * nz(L2 )
L3 := -gamma * L2 + nz(L2 ) + gamma * nz(L3 )
cu = (L0 > L1 ? L0 - L1 : 0) + (L1 > L2 ? L1 - L2 : 0) + (L2 > L3 ? L2 - L3 : 0)
cd = (L0 < L1 ? L1 - L0 : 0) + (L1 < L2 ? L2 - L1 : 0) + (L2 < L3 ? L3 - L2 : 0)
laguerreRSI = cu + cd != 0 ? 100 * (cu / (cu + cd)) : 50
The Laguerre transform creates four cascading filters (L0-L3) that progressively smooth the data. The gamma parameter controls lag - lower gamma means less lag but more noise, higher gamma means more lag but smoother output.
The adaptive component adjusts gamma based on fractal efficiency:
- High efficiency (trending): Gamma decreases toward 0.1, reducing lag for fast response
- Low efficiency (choppy): Gamma increases toward laguerreGamma setting, adding smoothing to filter noise
The cu (count up) and cd (count down) calculations measure upward vs downward movement across the four Laguerre levels, creating an RSI-like oscillator that's far more responsive than traditional RSI.
4. Fractal Momentum Oscillator
The final momentum value combines Laguerre RSI with fractal efficiency:
rawMomentum = (laguerreRSI - 50) * (1 + fractalEfficiency)
momentumEMA = ta.ema(rawMomentum, 5)
fractalMomentum = math.max(-100, math.min(100, momentumEMA))
This calculation:
1. Centers Laguerre RSI around zero by subtracting 50
2. Amplifies the signal by (1 + fractalEfficiency), giving more weight to efficient moves
3. Smooths with 5-period EMA to reduce jitter
4. Bounds the result to -100 to +100 range
The efficiency amplification is key - during high-efficiency trending moves, momentum readings become more extreme, providing clear signals. During low-efficiency choppy moves, momentum readings stay muted, preventing false signals.
5. Velocity and Acceleration Tracking
The indicator calculates first and second derivatives of momentum:
momentumVelocity = ta.change(fractalMomentum, 1)
momentumAcceleration = ta.change(momentumVelocity, 1)
velocityEMA = ta.ema(momentumVelocity, 3)
Velocity (first derivative) shows the rate of momentum change. Positive velocity means momentum is increasing, negative velocity means momentum is decreasing.
Acceleration (second derivative) shows the rate of velocity change. Positive acceleration means velocity is increasing (momentum gaining speed). Negative acceleration means velocity is decreasing (momentum losing speed).
These metrics provide early warning of momentum shifts:
- Positive momentum + positive velocity + positive acceleration = Strong bullish momentum building
- Positive momentum + positive velocity + negative acceleration = Bullish momentum slowing (potential top)
- Positive momentum + negative velocity = Bullish momentum fading (reversal warning)
6. Momentum Regime Classification
The indicator classifies momentum into seven regimes:
Extreme Bullish: Momentum > threshold (default 60), very strong upward pressure
Strong Bullish: Momentum 40-60, solid upward pressure
Weak Bullish: Momentum 20-40, mild upward pressure
Neutral: Momentum -20 to +20, balanced conditions
Weak Bearish: Momentum -40 to -20, mild downward pressure
Strong Bearish: Momentum -60 to -40, solid downward pressure
Extreme Bearish: Momentum < -threshold, very strong downward pressure
Each regime includes confidence measurement equal to the absolute momentum value. Higher confidence indicates stronger regime conviction.
7. Adaptive Band System
The indicator uses percentile-based bands that adapt to each instrument:
momentumPercentile = ta.percentrank(fractalMomentum, bandLength)
dynamicOB = ta.percentile_linear_interpolation(fractalMomentum, bandLength, obLevel)
dynamicOS = ta.percentile_linear_interpolation(fractalMomentum, bandLength, 100 - obLevel)
These bands automatically adjust to the instrument's typical momentum range. An instrument that frequently reaches ±80 will have wider bands than one that typically stays within ±40. This prevents false overbought/oversold signals on volatile instruments and ensures sensitivity on stable instruments.
8. Fractal Divergence Detection
The indicator detects divergences using fractal pivot analysis:
momentumHigh = ta.pivothigh(fractalMomentum, divLookback, divLookback)
momentumLow = ta.pivotlow(fractalMomentum, divLookback, divLookback)
bullishDiv := lastPrice < prevPrice and lastMomentum > prevMomentum and lastMomentum < 0
bearishDiv := lastPrice > prevPrice and lastMomentum < prevMomentum and lastMomentum > 0
Regular divergences signal potential reversals:
- Bullish: Price makes lower low, momentum makes higher low (selling pressure weakening)
- Bearish: Price makes higher high, momentum makes lower high (buying pressure weakening)
Hidden divergences signal trend continuation:
- Hidden Bullish: Price makes higher low, momentum makes lower low (trend resumption after pullback)
- Hidden Bearish: Price makes lower high, momentum makes higher high (downtrend resumption after bounce)
Visual Elements
Multi-Layer Momentum Line: Three overlaid plots (white underlay, gradient middle, solid core) creating depth and visibility
Velocity Histogram: Histogram showing momentum velocity scaled 10x for visibility
Adaptive Bands: Dynamic overbought/oversold lines that adjust to instrument characteristics
Zone Fills: Gradient fills between bands and zero line showing bullish/bearish zones
Reference Lines: Horizontal lines at extreme (±60), strong (±40), and weak (±20) levels
Regime Background: Subtle background coloring showing current momentum regime
Divergence Labels: Text labels marking regular and hidden divergences
Reversal Signals: Labels marking extreme momentum reversals
Velocity Signals: Small labels marking velocity acceleration/deceleration
Comprehensive Dashboard: 14-row intelligence panel showing momentum value, regime, velocity, acceleration, efficiency, Laguerre RSI, trend strength, consistency, adaptive bands, and divergence status
The dashboard provides complete momentum intelligence with color-coded metrics and status indicators.
Input Parameters
Signal Architecture:
Extreme Momentum Reversals: Toggle high-confidence exhaustion signals (default enabled)
Fractal Divergence Detection: Toggle price-momentum asymmetry detection (default enabled)
Velocity Acceleration Alerts: Toggle momentum acceleration warnings (default enabled)
Extreme Momentum Threshold: Score required for extreme classification (40-90, default 60)
Gauss Filter:
Gauss Filter Length: Smoothing period (5-100, default 20)
Beta Deviation: Filter aggressiveness (0.5-5.0, default 2.0)
Fractal Engine:
Fractal Efficiency Length: Efficiency calculation period (10-200, default 50)
Laguerre Transform:
Laguerre Gamma: Base lag parameter (0.1-0.99, default 0.7)
Adaptive Bands:
Band Percentile Length: Percentile calculation period (20-500, default 100)
Overbought Level: Upper band percentile (50-95, default 75)
Oversold Level: Lower band percentile (5-50, default 25)
Divergence:
Enable Divergence Scanner: Toggle divergence detection (default enabled)
Divergence Lookback: Pivot detection period (3-20, default 5)
Visualization:
Momentum Intelligence Panel: Toggle dashboard (default enabled)
Momentum Regime Zones: Toggle background coloring (default enabled)
Velocity Histogram: Toggle velocity display (default enabled)
Dashboard Scale: Small/Normal/Large sizing (default Normal)
Colors:
All colors fully customizable including bullish momentum (neon cyan), bearish momentum (neon pink), extreme bullish (neon green), extreme bearish (neon red), neutral (gold), and divergence (neon purple).
How to Use This Indicator
Step 1: Assess Momentum Value and Direction
Check dashboard "MOMENTUM" value and direction. Positive values indicate bullish momentum, negative indicate bearish. Values above 60 or below -60 suggest extreme conditions that may precede reversals or strong continuations.
Step 2: Identify Current Regime
Review "REGIME" classification and confidence percentage. Extreme regimes with high confidence (>80%) indicate strong momentum that typically continues. Weak regimes suggest transitional conditions.
Step 3: Monitor Velocity and Acceleration
Check "VELOCITY" and "ACCEL" metrics. Positive velocity with positive acceleration suggests momentum is building. Negative acceleration while momentum is still positive warns of potential momentum exhaustion.
Step 4: Evaluate Fractal Efficiency
Review "EFFICIENCY" percentage. High efficiency (>70%) confirms that momentum is backed by clean, directional price movement. Low efficiency (<40%) suggests choppy conditions where momentum signals may be less reliable.
Step 5: Check Adaptive Bands
Monitor "OB LEVEL" and "OS LEVEL" showing dynamic overbought/oversold thresholds. When momentum exceeds these levels, watch for reversal signals or continuation acceleration.
Step 6: Watch for Divergences
Check "DIVERGENCE" status and look for divergence labels. Regular divergences at extreme momentum levels often precede significant reversals. Hidden divergences in established trends suggest continuation after pullbacks.
Step 7: Identify Extreme Reversals
Watch for "EXTREME REVERSAL" labels when momentum crosses from extreme territory. These high-confidence signals often mark major turning points or trend acceleration phases.
Step 8: Track Velocity Acceleration
Monitor velocity acceleration labels. "VELOCITY ACCEL" signals indicate momentum is gaining speed, often marking optimal entry timing in early trend phases.
Best Practices
Extreme momentum reversals (>60 or <-60) are most reliable when confirmed by velocity deceleration
High fractal efficiency (>70%) validates momentum signals as backed by clean price action
Divergences at extreme momentum levels offer highest-probability reversal setups
Velocity acceleration signals work best in early trend phases, less reliable in mature trends
Adaptive bands automatically adjust to instrument volatility - respect them as dynamic thresholds
Momentum regime transitions provide clear strategy adjustment points
Combine momentum analysis with price action for optimal entry timing
Laguerre RSI above 70 or below 30 confirms extreme momentum readings
Trend strength above 60 indicates strong momentum persistence
Trend consistency above 70 confirms momentum is directionally stable
Hidden divergences in strong trends (momentum >40 or <-40) suggest continuation opportunities
Neutral regime (-20 to +20) suggests range-bound conditions unsuitable for momentum strategies
Indicator Limitations
Momentum indicators are lagging by nature - they confirm trends rather than predict them
Extreme momentum can persist longer than expected during strong trends
Fractal efficiency requires sufficient price history - may be unreliable on newly listed instruments
Gauss filter adds smoothing which inherently introduces some lag
Adaptive bands require adequate history for percentile calculations
Divergences can persist for extended periods before price responds
The indicator works best on liquid instruments with consistent price action
Very low timeframes may produce excessive noise despite filtering
Velocity and acceleration are sensitive to sudden price spikes
Regime classification is probabilistic, not deterministic
The indicator shows momentum dynamics but cannot predict duration
Technical Implementation
Built with Pine Script v6 using:
4th-order Gaussian filter with customizable beta deviation
Logarithmic fractal efficiency calculation using path complexity measurement
Adaptive Laguerre transform with four cascading filter levels
Fractal momentum oscillator combining Laguerre RSI with efficiency amplification
First and second derivative calculations for velocity and acceleration
Seven-level momentum regime classification with confidence measurement
Percentile-based adaptive bands using linear interpolation
Fractal pivot-based divergence detection system
Multi-layer gradient visualization with depth effects
Comprehensive dashboard with 14 metrics and color-coded indicators
Alert system for reversals, divergences, and velocity signals
The code is fully open-source with extensive comments explaining fractal mathematics and adaptive filtering concepts.
Originality Statement
This indicator is original in its integration of fractal efficiency with adaptive momentum measurement. While individual components exist, this indicator is justified because:
It combines 4th-order Gauss filtering with fractal efficiency and Laguerre transforms in a unified system
The adaptive Laguerre gamma adjustment based on fractal efficiency is a novel approach to lag reduction
Fractal momentum amplification using efficiency multiplier creates regime-aware momentum measurement
Velocity and acceleration tracking provides multi-dimensional momentum analysis
Seven-level regime classification with confidence measurement guides strategy selection
Percentile-based adaptive bands automatically adjust to each instrument's characteristics
Fractal pivot-based divergence detection identifies asymmetries with statistical precision
The comprehensive dashboard synthesizes 14 distinct metrics into unified momentum intelligence
Multi-layer visualization with gradient effects provides exceptional clarity
Integration of efficiency, velocity, acceleration, and regime creates layered confirmation
Each component contributes unique intelligence: Gauss filtering ensures clean data, fractal efficiency measures directional quality, Laguerre adaptation reduces lag, momentum oscillator quantifies strength, velocity tracks changes, acceleration identifies inflections, regime classification guides strategy, bands provide context, and divergences reveal hidden shifts. The indicator's value lies in combining these complementary perspectives into a cohesive, adaptive momentum 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 price dynamics, not a crystal ball for predicting future movement. Extreme momentum readings do not guarantee reversals. Divergences do not guarantee price response. Past momentum patterns do not guarantee future 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. Momentum readings, divergences, and regime classifications 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

Delta Pressure Index [JOAT]Delta Pressure Index
Introduction
The Delta Pressure Index is an advanced open-source volume analysis indicator that deconstructs order flow into actionable pressure metrics, combining volume delta estimation, absorption zone detection, smart money divergence analysis, and institutional order block identification. This indicator transforms raw volume data into a comprehensive pressure measurement system that reveals the true balance of power between buyers and sellers.
Unlike basic volume indicators that simply display volume bars, this system analyzes the internal structure of volume to identify buying and selling pressure, detect institutional absorption patterns, recognize smart money positioning through divergences, and map order blocks where large players have established positions. The indicator is designed for traders who understand that volume precedes price and that institutional footprints can be detected through systematic pressure analysis.
Why This Indicator Exists
This indicator addresses a critical gap in retail volume analysis: the ability to measure directional pressure and institutional activity in real-time. While exchange-provided volume data shows total activity, it doesn't reveal who is winning the battle between buyers and sellers. The Delta Pressure Index solves this by:
Volume Delta Estimation: Separates buying volume from selling volume using candle structure and wick analysis
Pressure Index Calculation: Normalizes delta to a -100 to +100 scale showing relative pressure strength
Absorption Zone Detection: Identifies when high volume produces minimal price movement, indicating institutional accumulation or distribution
Smart Money Divergence: Compares volume-weighted price to actual price to detect hidden institutional positioning
Order Block Mapping: Marks zones where institutional orders have been placed based on volume and price action patterns
Multi-Timeframe Pressure: Analyzes pressure alignment across multiple timeframes for conviction measurement
Cumulative Delta Tracking: Monitors net buying/selling pressure over time to identify accumulation and distribution phases
Each component provides unique intelligence about market microstructure. Delta estimation shows directional bias, pressure index quantifies strength, absorption detection reveals institutional activity, divergences expose hidden positioning, order blocks mark support/resistance zones, and cumulative delta tracks longer-term institutional flow.
Core Components Explained
1. Enhanced Volume Delta Estimation
The indicator uses advanced candle structure analysis to estimate buying and selling volume:
barRange = high - low
bodySize = math.abs(close - open)
wickUp = high - math.max(open, close)
wickDown = math.min(open, close) - low
buyVolume = close > open ?
volume * ((close - open + wickUp * 0.5) / barRange) :
close < open ?
volume * ((wickUp + bodySize * 0.3) / barRange) :
volume * 0.5
sellVolume = volume - buyVolume
delta = buyVolume - sellVolume
This calculation considers:
- Bullish candles (close > open): Majority of volume is buying, with upper wick getting 50% weight
- Bearish candles (close < open): Majority of volume is selling, with upper wick and 30% of body getting buying weight
- Doji candles (close = open): Volume split 50/50 between buying and selling
The wick weighting acknowledges that wicks represent rejected prices where one side overwhelmed the other, providing additional directional information beyond just the candle body.
2. Pressure Index Normalization
Raw delta values are normalized to create a pressure index ranging from -100 (extreme selling) to +100 (extreme buying):
pressureIndex = ta.sma(delta, deltaLength) / ta.sma(volume, deltaLength) * 100
This normalization divides smoothed delta by smoothed volume, creating a percentage that shows the proportion of volume favoring buyers vs sellers. The smoothing (default 14 periods) reduces noise while maintaining responsiveness to genuine pressure shifts.
The pressure index is further enhanced with volume-weighted calculations:
vwPressure = ta.vwma(pressureIndex, deltaLength)
Volume-weighted pressure gives more importance to high-volume bars, ensuring that pressure readings reflect periods of genuine institutional participation rather than low-volume noise.
3. Pressure Zone Classification
The indicator classifies pressure into seven distinct zones:
Extreme Buy (>70): Overwhelming buying pressure, potential exhaustion or continuation
Strong Buy (50-70): Significant buying dominance, healthy uptrend conditions
Moderate Buy (30-50): Mild buying bias, early trend development
Weak Buy (20-30): Slight buying edge, transitional conditions
Neutral (-20 to +20): Balanced conditions, no clear directional pressure
Weak Sell (-30 to -20): Slight selling edge, transitional conditions
Moderate Sell (-50 to -30): Mild selling bias, early downtrend development
Strong Sell (-70 to -50): Significant selling dominance, healthy downtrend conditions
Extreme Sell (<-70): Overwhelming selling pressure, potential exhaustion or continuation
These zones help traders quickly assess current pressure conditions and identify extreme readings that often precede reversals or accelerations.
4. Absorption Detection System
Absorption occurs when high volume produces minimal price movement, indicating that one side is absorbing the other's orders:
avgVolume = ta.sma(volume, 20)
avgRange = ta.sma(barRange, 20)
volumeRatio = volume / avgVolume
rangeRatio = barRange / avgRange
absorption = volumeRatio > absorptionThreshold and rangeRatio < 0.5
The system identifies absorption when:
- Volume exceeds average by the threshold multiplier (default 2.5x)
- Price range is less than 50% of average range
Absorption is classified as:
- Buy Absorption: High volume + small range + positive delta = Institutional accumulation
- Sell Absorption: High volume + small range + negative delta = Institutional distribution
- Extreme Absorption: Absorption score exceeds 1.5x threshold = Major institutional activity
Absorption zones often mark significant support/resistance levels where institutions have established large positions.
5. Smart Money Divergence Analysis
The indicator compares volume-weighted average price (VWAP) to simple moving average to detect smart money positioning:
vwPrice = ta.vwma(close, 20)
actualPrice = ta.sma(close, 20)
smartMoneyDivergence = ((vwPrice - actualPrice) / actualPrice) * 100
When VWAP is significantly above SMA (>2%), it indicates that higher-volume bars occurred at higher prices, suggesting smart money accumulation. When VWAP is significantly below SMA (<-2%), it indicates higher-volume bars occurred at lower prices, suggesting smart money distribution.
Smart money signals are generated when:
- Bullish: Divergence >2%, price below VWAP, positive pressure = Accumulation opportunity
- Bearish: Divergence <-2%, price above VWAP, negative pressure = Distribution warning
6. Order Block Detection
Order blocks are identified using institutional footprint patterns:
bullishOB = close < open and close > open and volume > avgVolume * 1.2
bearishOB = close > open and close < open and volume > avgVolume * 1.2
Bullish order blocks occur when:
- Previous candle was bearish (close < open)
- Current candle is bullish (close > open)
- Volume exceeds average by 20%
This pattern suggests institutions placed buy orders in the previous bearish candle, which then fueled the bullish reversal. The zone between the previous candle's low and high becomes a potential support area.
Bearish order blocks follow the inverse logic, marking potential resistance zones where institutional sell orders were placed.
7. Cumulative Delta Tracking
The indicator maintains a running total of delta to track longer-term institutional positioning:
var float cumulativeDelta = 0
cumulativeDelta += delta
Rising cumulative delta indicates sustained buying pressure (accumulation phase). Falling cumulative delta indicates sustained selling pressure (distribution phase). The rate of change in cumulative delta shows acceleration or deceleration of institutional flow.
The indicator also tracks session cumulative delta that resets on trend changes, providing shorter-term context for intraday pressure analysis.
8. Delta Momentum and Acceleration
The indicator calculates momentum and acceleration metrics:
deltaMomentum = ta.roc(pressureIndex, 5)
deltaAcceleration = ta.roc(deltaMomentum, 3)
Delta momentum shows the rate of change in pressure, identifying when pressure is building or fading. Delta acceleration (second derivative) identifies inflection points where momentum is changing direction, often preceding major pressure shifts.
Positive acceleration with positive momentum suggests strengthening buying pressure. Negative acceleration with positive momentum warns that buying pressure is weakening, even if still positive.
9. Multi-Timeframe Pressure Analysis
The indicator requests pressure data from four higher timeframes (default: 5m, 15m, 60m, 240m):
htf1_pressure = request.security(syminfo.tickerid, htf1, pressureIndex, lookahead=barmerge.lookahead_off)
MTF confluence score is calculated by averaging the sign of pressure across all timeframes:
mtfConfluence = (math.sign(htf1_pressure) + math.sign(htf2_pressure) +
math.sign(htf3_pressure) + math.sign(htf4_pressure)) / 4 * 100
Confluence scores near +100 indicate all timeframes show buying pressure. Scores near -100 indicate all timeframes show selling pressure. Scores near 0 indicate mixed or transitional conditions across timeframes.
Visual Elements
Pressure Index Columns: Main histogram showing pressure index with gradient coloring from extreme sell (pink) to extreme buy (cyan)
Volume-Weighted Pressure Line: Yellow line overlay showing VWMA of pressure for trend identification
Pressure EMA Line: Cyan line showing smoothed pressure trend
Delta Momentum Histogram: Purple histogram showing rate of change in pressure
Reference Lines: Horizontal lines at 0, ±30, ±50, ±70 marking pressure zone boundaries
Divergence Labels: Text labels marking regular and hidden divergences between price and pressure
Smart Money Labels: Green labels marking accumulation/distribution signals
Absorption Markers: Cyan/red labels marking buy/sell absorption zones
Order Block Boxes: Orange boxes marking institutional order block zones on price chart
Extreme Pressure Labels: Small labels marking extreme buy/sell pressure conditions
Pressure Heatmap: Subtle background gradient showing pressure intensity
Comprehensive Dashboard: Real-time metrics table showing pressure, delta %, cumulative delta, zone, absorption, smart money, divergence, momentum, MTF confluence, and all key metrics
The dashboard displays 12+ key metrics with color-coded values and status indicators, providing complete pressure analysis at a glance.
Input Parameters
Core Settings:
Delta Length: Period for delta smoothing (5-100, default 14)
Smoothing Period: Additional smoothing for pressure index (1-20, default 3)
Volume MA Length: Period for volume average (5-100, default 20)
Absorption Threshold: Volume multiplier for absorption detection (1.0-5.0, default 2.5)
Multi-Timeframe:
Enable Multi-Timeframe Analysis: Toggle MTF pressure analysis (default enabled)
HTF 1/2/3/4: Four higher timeframe selections (default 5m, 15m, 60m, 240m)
Display Options:
Show Cumulative Delta: Toggle cumulative delta tracking (default enabled)
Show Absorption Zones: Toggle absorption detection markers (default enabled)
Show Divergences: Toggle divergence detection (default enabled)
Show Smart Money Signals: Toggle smart money analysis (default enabled)
Show Volume Profile: Toggle volume profile POC (default enabled)
Show Dashboard: Toggle metrics table (default enabled)
Show Pressure Heatmap: Toggle background gradient (default enabled)
Show Order Blocks: Toggle order block boxes (default enabled)
Colors:
All colors are fully customizable including buy pressure (neon cyan), sell pressure (neon pink), buy absorption (neon cyan), sell absorption (neon red), smart money (neon green), divergence (neon purple), and order blocks (sunset orange).
How to Use This Indicator
Step 1: Assess Current Pressure
Check the dashboard "Pressure" value and "Zone" classification. Extreme readings (>70 or <-70) often precede reversals or strong continuations. Strong readings (50-70 or -50 to -70) indicate healthy trend conditions.
Step 2: Monitor Delta Percentage
Review "Delta %" showing the proportion of volume favoring buyers vs sellers. Values above 50% indicate buying dominance, below -50% indicate selling dominance. This provides confirmation of pressure index readings.
Step 3: Track Cumulative Delta
Observe "Cum Delta" to identify longer-term institutional positioning. Rising cumulative delta during pullbacks suggests accumulation. Falling cumulative delta during rallies warns of distribution.
Step 4: Identify Absorption Zones
Watch for absorption labels and check dashboard "Absorption" status. Buy absorption near support levels suggests institutional accumulation. Sell absorption near resistance suggests institutional distribution. These zones often become significant support/resistance.
Step 5: Detect Smart Money Divergence
Monitor smart money labels and dashboard status. Accumulation signals during downtrends suggest smart money is buying weakness. Distribution signals during uptrends warn that smart money is selling strength.
Step 6: Analyze Divergences
Look for divergence labels where price makes new highs/lows but pressure doesn't confirm. Regular divergences signal potential reversals. Hidden divergences suggest trend continuation after pullbacks.
Step 7: Map Order Blocks
Identify order block boxes on the price chart. These zones mark where institutions placed large orders. Price often respects these levels on retests, providing high-probability entry zones.
Step 8: Confirm with MTF Confluence
Check "MTF Confluence" in dashboard. High positive confluence (>75) confirms buying pressure across timeframes. High negative confluence (<-75) confirms selling pressure. Low confluence suggests mixed conditions.
Best Practices
Use on liquid instruments with reliable volume data for most accurate pressure readings
Extreme pressure readings (>70 or <-70) are most reliable when accompanied by volume surges
Absorption zones near key price levels offer highest-probability reversal setups
Smart money divergence signals work best when confirmed by order block formation
Cumulative delta diverging from price often precedes major reversals
Order blocks are most reliable when formed on high volume (>1.5x average)
MTF confluence above 75% or below -75% provides strong directional conviction
Delta momentum acceleration signals often precede pressure regime changes
Pressure heatmap intensity helps visualize pressure strength at a glance
Regular divergences are most reliable at extreme pressure levels
Hidden divergences work best in established trends as continuation signals
Combine pressure analysis with price action for optimal entry timing
Indicator Limitations
Volume delta estimation is approximate - true delta requires exchange order flow data
The indicator works best on instruments with consistent, reliable volume reporting
Low-volume instruments or off-market hours can produce unreliable pressure readings
Absorption detection requires sufficient volume history for accurate average calculations
Smart money divergence assumes VWAP represents institutional positioning, which is a simplification
Order block detection uses pattern recognition that may not capture all institutional activity
MTF analysis requires data availability on all selected timeframes
Cumulative delta can drift significantly over long periods without reset mechanisms
The indicator shows pressure dynamics but cannot predict how long pressure will persist
Extreme pressure can remain extreme longer than expected during strong trends
Divergences can persist for extended periods before price responds
Technical Implementation
Built with Pine Script v6 using:
Advanced volume delta estimation using candle structure and wick analysis
Normalized pressure index calculation with volume-weighted enhancement
Seven-zone pressure classification system
Absorption detection using volume ratio and range ratio analysis
Smart money divergence calculation comparing VWAP to SMA
Order block detection using institutional footprint patterns
Cumulative delta tracking with session reset capability
Delta momentum and acceleration calculations using rate-of-change
Multi-timeframe security requests with proper lookahead settings
Fractal-based divergence detection system
Dynamic color gradients based on pressure intensity
Comprehensive dashboard with 12+ metrics and color-coded indicators
Persistent label system to prevent chart clutter
Order block box management with automatic cleanup
The code is fully open-source with detailed comments explaining each pressure calculation and detection algorithm.
Originality Statement
This indicator is original in its comprehensive pressure analysis approach. While volume delta concepts are established, this indicator is justified because:
It combines volume delta estimation with absorption detection, smart money analysis, and order block mapping in a unified system
The enhanced delta calculation uses wick weighting to capture rejected price information
Seven-zone pressure classification provides granular pressure assessment beyond simple buy/sell
Absorption detection identifies institutional activity through volume-range relationship analysis
Smart money divergence reveals hidden positioning through VWAP-SMA comparison
Order block detection maps institutional zones using volume-confirmed reversal patterns
Multi-timeframe confluence scoring validates pressure across temporal dimensions
Delta momentum and acceleration tracking provides early warning of pressure shifts
The comprehensive dashboard synthesizes 12+ distinct metrics into unified pressure intelligence
Integration of cumulative delta, absorption, divergence, and order blocks creates layered confirmation
Each component contributes unique intelligence: delta shows directional bias, pressure index quantifies strength, absorption reveals institutional activity, divergences expose hidden positioning, order blocks mark key zones, MTF confluence validates conviction, and momentum tracks acceleration. The indicator's value lies in combining these complementary perspectives into a cohesive pressure analysis 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.
Volume pressure analysis is a tool for understanding order flow dynamics, not a crystal ball for predicting future price movement. Extreme pressure readings do not guarantee reversals. Absorption zones do not guarantee support/resistance. Past pressure patterns do not guarantee future pressure 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. Pressure readings, divergences, absorption zones, and order blocks 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

Chaos Regime Detection Engine [JOAT]Chaos Regime Detection Engine
Introduction
The Chaos Regime Detection Engine is an advanced open-source market microstructure indicator that classifies market conditions into distinct regimes using multi-dimensional volatility analysis, directional conviction measurement, and institutional flow detection. This indicator transforms raw market data into actionable regime intelligence, helping traders identify when markets are trending, ranging, chaotic, or experiencing volatility shocks.
Unlike single-dimension volatility indicators that only measure price movement magnitude, this engine analyzes market structure through four independent scoring systems that combine into a unified regime classification framework. The indicator is designed for traders who understand that different market regimes require different trading approaches and that regime identification is the foundation of adaptive strategy selection.
Why This Indicator Exists
This indicator addresses a fundamental challenge in trading: markets constantly shift between different behavioral regimes, and strategies that work in one regime often fail in another. The core innovation lies in synthesizing multiple market microstructure measurements into a probabilistic regime classification system:
Directional Flow Regime: Markets exhibiting high price efficiency, low choppiness, and strong ADX conviction - ideal for trend-following strategies
Equilibrium Regime: Markets showing balanced conditions with moderate volatility and weak directional bias - suitable for mean-reversion approaches
Chaotic Turbulence Regime: Markets displaying high choppiness, low efficiency, and conflicting signals - best avoided or traded with tight stops
Volatility Shock Regime: Markets experiencing extreme volatility expansion with high volume - requires defensive positioning or volatility strategies
Each regime classification is derived from normalized scores across multiple dimensions, ensuring that regime identification remains robust across different instruments, timeframes, and market conditions. The system provides not just regime labels but confidence levels and intensity measurements that quantify regime strength.
Core Components Explained
1. ATR and Volatility Percentile Analysis
The indicator calculates Average True Range (ATR) over a customizable period (default 14) and expresses it as a percentage of current price. This normalization allows cross-instrument comparison and removes price-level bias.
ATR percentile ranking over 100 bars provides context for current volatility relative to recent history. High percentile rankings (>70) indicate elevated volatility, while low rankings (<30) suggest compressed volatility. This percentile approach is superior to raw ATR because it adapts to each instrument's unique volatility characteristics.
The volatility percentile feeds into multiple regime scores, particularly the Volatility Shock score, which combines ATR percentile with standard deviation percentile and volume surge detection to identify extreme volatility events.
2. Kaufman Efficiency Ratio
The Efficiency Ratio measures how efficiently price moves from point A to point B by comparing net price change to total path length:
Efficiency = Net Price Change / Sum of Absolute Bar-to-Bar Changes
Values near 1.0 indicate highly efficient, directional movement (trending). Values near 0.0 indicate inefficient, choppy movement (ranging). The indicator uses a customizable lookback period (default 20) to calculate efficiency.
High efficiency feeds into the Directional Flow score, while low efficiency contributes to both Equilibrium and Chaotic Turbulence scores. This dual contribution ensures that the regime classification captures the full spectrum of market behavior.
3. Choppiness Index
The Choppiness Index quantifies market choppiness using logarithmic calculations:
Choppiness = 100 * log10(Sum of ATR / (Highest High - Lowest Low)) / log10(Length)
Values above 61.8 indicate choppy, range-bound markets. Values below 38.2 indicate trending markets. The indicator uses a customizable period (default 14) for this calculation.
The Choppiness Index is inverted when contributing to the Directional Flow score (100 - Choppiness) because low choppiness indicates high directional clarity. High choppiness directly contributes to the Chaotic Turbulence score, identifying markets where price action lacks clear direction.
4. ADX Directional Conviction System
The indicator implements a complete ADX (Average Directional Index) calculation including +DI and -DI components:
+DI measures upward directional movement strength
-DI measures downward directional movement strength
ADX measures the strength of directional movement regardless of direction
ADX values above the trend threshold (default 25) indicate emerging directional conviction. Values above the strong threshold (default 40) indicate dominant directional conviction. The indicator uses customizable lengths for both DI calculation (default 14) and ADX smoothing (default 14).
ADX contributes bonus points to the Directional Flow score when above threshold and to the Equilibrium score when below threshold. The difference between +DI and -DI provides directional bias (long vs short) and conviction strength measurements.
5. Standard Deviation and RVI Analysis
Standard deviation of close prices over 20 bars provides an alternative volatility measurement that captures price dispersion rather than range. The indicator calculates standard deviation as a percentage of price and ranks it using percentile analysis.
The Relative Volatility Index (RVI) applies standard deviation concepts to directional movement:
RVI = 100 * StdDev(Up Moves) / (StdDev(Up Moves) + StdDev(Down Moves))
RVI values above 50 indicate upward volatility dominance, below 50 indicates downward volatility dominance. This provides directional context to volatility measurements that raw standard deviation lacks.
Both metrics contribute to the Volatility Shock score, helping identify when markets are experiencing not just high volatility but directionally biased volatility expansion.
6. Volume Delta Integration
The indicator estimates buying and selling pressure using volume and candle structure:
Buy Volume = Volume when close > open
Sell Volume = Volume when close < open
Volume surge detection compares current volume to 20-period average using a customizable threshold (default 1.5x). Volume surges add bonus points to the Volatility Shock score, confirming that volatility expansion is accompanied by genuine institutional participation rather than thin-market noise.
This volume integration ensures that regime classifications reflect actual market activity rather than just price movement patterns.
7. Regime Scoring and Classification Engine
The indicator calculates four independent regime scores (0-100 scale):
Directional Score = (Efficiency * 100 + (100 - Choppiness) + ADX Bonus) / 2.2
Equilibrium Score = (100 - ATR Percentile + (100 - Efficiency * 100) + ADX Penalty) / 2.2
Turbulence Score = (Choppiness + (100 - Efficiency * 100)) / 2
Shock Score = (ATR Percentile + StdDev Percentile + Volume Surge Bonus) / 2.3
These scores are then normalized to sum to 100%, creating a probability distribution across the four regimes. The dominant regime is determined by the highest normalized score, with confidence level equal to that score's magnitude.
Regime intensity is classified as Nascent (score 35-45), Established (score 45-60), or Dominant (score >60), providing additional context about regime strength and stability.
8. Fractal Divergence Detection
The indicator implements fractal-based divergence detection using a composite volatility index that combines:
30% ATR Percentile
20% Efficiency Ratio
20% Inverted Choppiness
15% StdDev Percentile
15% RVI
This composite index is smoothed with a 5-period EMA and analyzed for fractal tops and bottoms using a 5-bar pattern recognition system. Divergences are detected when price makes new highs/lows but the composite volatility index fails to confirm, suggesting hidden institutional positioning or liquidity asymmetries.
Regular divergences signal potential reversals, while hidden divergences suggest trend continuation after pullbacks. The indicator plots these divergences with color-coded markers and draws connecting lines for visual clarity.
Visual Elements
Composite Volatility Line: Main plot showing the smoothed composite volatility index with dynamic gradient coloring based on regime confidence
Regime Intensity Histogram: Histogram showing regime-specific intensity with transparency based on confidence level
Microstructure Indicators: Subtle circle plots showing ATR percentile, efficiency ratio, and directional clarity for detailed analysis
Conviction Overlay: Stepline plot showing ADX with gradient coloring based on conviction strength
Fractal Divergence Markers: Circle plots at fractal tops/bottoms with color-coded divergence identification
Regime Threshold Lines: Horizontal lines at key regime transition levels (50, 60, 40, 75, 25)
Probability Zone Fill: Subtle background fill showing current regime probability field
Signal Shapes: Triangle shapes on price chart for high-confidence regime transitions and divergences
Comprehensive Dashboard: 12-row intelligence panel showing regime state, certainty, bias, probability scores, conviction, confluence, and all key metrics
The dashboard provides at-a-glance regime assessment with color-coded values, status indicators, and confidence measurements for all regime dimensions simultaneously.
Input Parameters
Signal Architecture:
Regime Shift Signals: Toggle chaos-to-order transition detection (default enabled)
Regime Persistence Signals: Toggle regime stability confirmations (default enabled)
Fractal Divergence Detection: Toggle hidden liquidity flow asymmetries (default enabled)
Minimum Confluence Threshold: Multi-factor validation requirement (1-5, default 3)
Volatility Microstructure:
Volatility Expansion Period: ATR calculation length (5-50, default 14)
Volatility Percentile Window: Percentile ranking lookback (20-500, default 100)
Price Efficiency Horizon: Efficiency ratio calculation period (5-100, default 20)
Chaos Measurement Period: Choppiness index length (5-50, default 14)
Directional Conviction:
Conviction Measurement Length: DI calculation period (5-50, default 14)
Conviction Smoothing Factor: ADX smoothing length (1-50, default 14)
Conviction Emergence Level: ADX trend threshold (15-40, default 25)
Conviction Dominance Level: ADX strong threshold (30-60, default 40)
Institutional Flow:
Enable Flow Asymmetry Detection: Toggle volume delta analysis (default enabled)
Flow Surge Multiplier: Volume threshold for surge detection (1.0-5.0, default 1.5)
Regime Parameters:
Directional Regime Threshold: Score required for directional classification (50-90, default 60)
Chaotic Regime Threshold: Score required for chaos classification (10-50, default 40)
Volatility Shock Threshold: Score required for shock classification (25-50, default 35)
Visualization:
Regime Intelligence Panel: Toggle dashboard display (default enabled)
Microstructure Indicators: Toggle detailed metric plots (default enabled)
Regime Probability Zones: Toggle background probability field (default enabled)
Intelligence Panel Scale: Small/Normal/Large dashboard sizing (default Normal)
Colors:
All colors are fully customizable including directional expansion (neon cyan), volatility shock (neon pink), equilibrium state (gold), and chaotic turbulence (sunset orange).
How to Use This Indicator
Step 1: Identify Current Regime
Check the dashboard "STATE" field to see current regime classification. Note the intensity level (Nascent/Established/Dominant) and certainty percentage. Dominant regimes with high certainty (>80%) are most reliable for strategy selection.
Step 2: Assess Regime Certainty
Monitor the "CERTAINTY" metric. High certainty (>60%) indicates clear regime conditions where strategies aligned with that regime should perform well. Low certainty (<40%) suggests transitional conditions where defensive positioning is appropriate.
Step 3: Check Directional Bias
Review the "BIAS" field showing Long Flow, Short Flow, or Neutral. This indicates whether directional conviction favors long or short positioning within the current regime. The numerical value shows conviction strength.
Step 4: Analyze Regime Probability Scores
Examine the four regime probability scores (Directional, Equilibrium, Turbulence, Shock). These show the relative likelihood of each regime. When one score dominates (>60%), regime classification is clear. When scores are balanced, market is transitional.
Step 5: Monitor Conviction Metrics
Check "CONVICTION" showing ADX value and status (Dominant/Emerging/Absent). Dominant conviction (>40) confirms that directional regimes have strong follow-through potential. Absent conviction (<25) suggests equilibrium or chaotic conditions.
Step 6: Evaluate Confluence Matrix
Review the "CONFLUENCE" score (0-5) showing how many confirmation factors align. Maximum confluence (5/5) indicates all factors agree, providing highest-confidence regime classification. Low confluence (1-2/5) suggests conflicting signals requiring caution.
Step 7: Watch for Regime Transitions
Regime transition signals (triangles on price chart) mark shifts between regimes. These are critical moments for strategy adjustment. Transitions from Chaos to Directional often mark the start of new trends. Transitions to Shock regimes warn of elevated risk.
Step 8: Use Divergence Signals
Fractal divergence markers (labeled "DIV") identify price-volatility asymmetries that often precede regime changes. Bullish divergences in Equilibrium regimes may signal upcoming Directional regimes. Bearish divergences in Directional regimes may warn of regime exhaustion.
Best Practices
Use Directional Flow regimes for trend-following strategies with trailing stops
Use Equilibrium regimes for mean-reversion strategies with defined profit targets
Avoid new positions during Chaotic Turbulence regimes or use very tight stops
Reduce position size or hedge during Volatility Shock regimes
Regime transitions with high confluence (4-5/5) offer highest-probability strategy shift opportunities
Dominant intensity regimes (>60% certainty) are most reliable for strategy execution
Nascent intensity regimes (<45% certainty) require defensive positioning until regime establishes
Monitor conviction metrics - Directional regimes without conviction (ADX <25) often fail
Fractal divergences are most reliable when they occur at regime extremes
Use the probability scores to anticipate regime transitions before they're officially classified
Equilibrium regimes with rising Directional scores suggest impending breakouts
Directional regimes with rising Turbulence scores warn of trend exhaustion
Indicator Limitations
Regime classification is probabilistic, not deterministic - no regime guarantees specific outcomes
The indicator identifies current regime but cannot predict regime duration
Regime transitions can be whipsaw-prone during genuinely transitional market conditions
Volume-based components require accurate volume data - some instruments have unreliable volume
The indicator works best on liquid instruments with consistent trading patterns
Newly listed instruments may lack sufficient history for reliable percentile calculations
Extreme market events (flash crashes, circuit breakers) can temporarily distort regime classification
The indicator shows what regime exists, not why - fundamental catalysts can override regime signals
Confluence scoring requires all factors to be relevant - some factors may be less meaningful on certain instruments
Fractal divergence detection requires clear fractal formation - choppy markets may produce false divergences
Regime intensity classifications are relative to recent history, not absolute across all market conditions
Technical Implementation
Built with Pine Script v6 using:
Complete ADX calculation with +DI/-DI components and customizable smoothing
Kaufman Efficiency Ratio using net change vs path length methodology
Choppiness Index with logarithmic normalization
Multi-component composite volatility index with weighted factor contributions
Percentile ranking calculations for ATR, standard deviation, and composite volatility
Fractal pattern recognition using 5-bar pivot detection
Divergence detection comparing price fractals to volatility fractals
Four-dimensional regime scoring system with normalization to probability distribution
Confluence factor calculation combining conviction, flow, clarity, certainty, and efficiency
Dynamic color gradients based on regime confidence and intensity
Comprehensive dashboard with 12 metrics and color-coded status indicators
Alert system for regime transitions, divergences, and conviction surges
The code is fully open-source with extensive comments explaining each calculation and regime classification logic.
Originality Statement
This indicator is original in its multi-dimensional regime classification approach. While individual components (ATR, Efficiency Ratio, Choppiness, ADX) are established concepts, this indicator is justified because:
It synthesizes four independent regime scoring systems into a unified probabilistic classification framework
The composite volatility index combines five distinct measurements with optimized weighting
Regime intensity classification (Nascent/Established/Dominant) provides confidence context beyond simple regime labels
Confluence scoring validates regime classification through multi-factor confirmation
Fractal divergence detection identifies hidden institutional positioning through volatility-price asymmetries
The normalization of regime scores to probability distribution ensures consistent interpretation across instruments
Integration of volume surge detection confirms that regime classifications reflect genuine market activity
The dashboard synthesizes 12 distinct metrics into a unified regime intelligence panel
Regime transition signals with confluence filtering provide high-confidence strategy adjustment points
The system adapts to each instrument's unique characteristics through percentile-based calculations
Each component contributes unique intelligence: ATR measures volatility magnitude, Efficiency measures directional clarity, Choppiness measures range-bound behavior, ADX measures conviction, volume confirms participation, and divergences reveal hidden positioning. The indicator's value lies in combining these complementary perspectives into a cohesive regime classification system that guides strategy selection.
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 classification is probabilistic analysis that identifies current market conditions but does not predict future regime duration or transitions. Regime signals do not guarantee profitable trades. Past regime patterns do not guarantee future regime patterns. Market conditions change, and strategies that worked in historical regimes may not work in future regimes.
The metrics displayed are mathematical calculations based on current market data, not predictions of future price movement. Regime transitions, divergences, and 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 Trend Ribbon [JOAT]Adaptive Trend Ribbon
Introduction
The Adaptive Trend Ribbon is an advanced open-source trend-following indicator that combines multi-layer moving average analysis with real-time volatility adaptation, momentum weighting, and volume confirmation. This indicator transforms traditional ribbon systems into an institutional-grade tool by dynamically adjusting to market conditions, providing traders with a comprehensive view of trend strength, direction, and potential reversals across all timeframes.
Unlike static ribbon indicators that use fixed parameters, this system continuously adapts to volatility percentiles, momentum shifts, and volume surges, creating a responsive framework that works equally well in ranging, trending, and explosive market conditions. The indicator is designed for traders who understand that market regimes change and that adaptive systems outperform static ones in real-world trading.
Why This Indicator Exists
This indicator addresses critical limitations in traditional moving average systems by introducing adaptive intelligence that responds to market microstructure. The core innovation lies in combining multiple adaptation mechanisms:
Volatility Adaptation: Ribbon parameters adjust based on ATR percentile ranking, expanding during high volatility and contracting during consolidation
Momentum Adaptation: RSI-based momentum weighting modifies ribbon sensitivity to capture acceleration and deceleration phases
Volume Adaptation: Volume ratio analysis confirms trend validity and filters false signals during low-participation moves
Multi-Timeframe Alignment: Higher timeframe trend confirmation across three customizable periods validates directional conviction
Ribbon Compression Detection: Identifies coiling patterns that precede explosive breakouts with statistical precision
Twist Reversal System: Detects ribbon layer crossovers that signal potential trend exhaustion or reversal
Each adaptation layer provides unique intelligence. Volatility adaptation ensures the ribbon remains relevant across different market regimes, momentum adaptation captures trend acceleration, volume adaptation confirms institutional participation, MTF alignment validates conviction, compression detection anticipates breakouts, and twist detection warns of reversals.
Core Components Explained
1. Adaptive Multiplier System
The indicator calculates three distinct adaptation factors that combine into a unified multiplier:
Volatility Multiplier: Based on ATR percentile ranking over 100 bars, this factor increases ribbon responsiveness during high volatility periods and decreases it during low volatility. The calculation uses percentile ranking rather than raw ATR to normalize across different instruments and timeframes.
Momentum Multiplier: Derived from RSI deviation from the 50 midpoint, this factor amplifies ribbon sensitivity during strong momentum phases and dampens it during consolidation. The normalization ensures the multiplier remains bounded and predictable.
Volume Multiplier: Calculated as the ratio of current volume to 20-period average volume, capped at 2x to prevent extreme distortions. This factor confirms that price movements are supported by genuine participation rather than thin-market noise.
The combined adaptive multiplier averages these three factors, creating a balanced response to multiple market dimensions simultaneously. This multi-factor approach prevents over-optimization to any single market characteristic.
2. Multi-Layer Ribbon Construction
The ribbon consists of 3 to 20 customizable moving average layers (default 12) spanning from a fast length (default 5) to a slow length (default 55). The indicator supports five moving average types:
EMA (Exponential Moving Average): Responsive to recent price action, ideal for trending markets
SMA (Simple Moving Average): Equal weighting, provides stable trend identification
WMA (Weighted Moving Average): Linear weighting favoring recent data
VWMA (Volume-Weighted Moving Average): Incorporates volume into price averaging
HMA (Hull Moving Average): Reduced lag through weighted calculations and square root periods
Each ribbon layer is calculated with evenly distributed periods between fast and slow lengths. The spacing ensures smooth gradient transitions and prevents clustering that can create false signals. The ribbon can optionally use Heikin Ashi candles as the source, providing additional smoothing for noisy instruments.
3. Trend Detection and Classification
The indicator employs multiple trend detection mechanisms:
Ribbon Trend: Determined by comparing the fastest MA to the slowest MA. When fast > slow, the ribbon trend is bullish; when fast < slow, it's bearish.
Price Trend: Determined by comparing current price to the middle ribbon layer. This provides confirmation that price is aligned with the ribbon structure.
Aligned Trend: Occurs when both ribbon trend and price trend agree, indicating high-probability directional moves.
Trend strength is measured using percentile ranking of ribbon width over 50 bars. Higher percentile rankings indicate stronger trends with greater separation between ribbon layers, while lower rankings suggest consolidation or trend exhaustion.
4. Ribbon Metrics and Analysis
The indicator calculates comprehensive ribbon metrics:
Ribbon Width: Absolute distance between fastest and slowest MAs, providing a raw measure of trend strength.
Ribbon Width Percent: Width expressed as a percentage of current price, normalizing across different price levels and instruments.
Ribbon Strength: Percentile ranking of width percent over 50 bars, showing relative strength compared to recent history.
Compression Detection: Identifies when ribbon width falls below its 20-period average, signaling potential energy buildup before breakouts.
Expansion Rate: Measures the rate of change in ribbon width, identifying acceleration or deceleration in trend development.
These metrics work together to provide a complete picture of trend dynamics, from initiation through maturation to exhaustion.
5. Twist Detection System
The twist detection system identifies potential reversals by counting crossovers between adjacent ribbon layers. When multiple layers cross simultaneously (threshold: 50% of total layers), it signals a "twist" - a condition where the ribbon is reorganizing its structure, often preceding significant directional changes.
The system tracks twist count cumulatively, allowing traders to identify instruments or timeframes experiencing frequent regime changes versus those in stable trends. High twist counts suggest choppy, range-bound conditions, while low twist counts indicate clean trending environments.
6. Trend Acceleration Detection
Trend acceleration is measured using rate-of-change calculations on the middle ribbon layer:
Trend Momentum: 5-period rate of change of the mid-ribbon MA
Trend Acceleration: 3-period rate of change of trend momentum (second derivative)
When acceleration exceeds one standard deviation of its 20-period history, the indicator flags accelerating conditions. This early warning system helps traders identify when trends are gaining steam versus when they're losing momentum, even if price continues in the same direction.
7. Multi-Timeframe Alignment
The indicator requests ribbon trend data from three higher timeframes (default: 15m, 60m, 240m) and calculates an alignment score. The score ranges from -1 (all timeframes bearish) to +1 (all timeframes bullish), with values near zero indicating mixed or transitional conditions.
MTF alignment above 0.75 or below -0.75 indicates strong multi-timeframe conviction, suggesting high-probability directional moves. This feature is particularly valuable for swing traders who need confirmation that their trade direction aligns with higher timeframe structure.
Visual Elements
Ribbon Lines: Up to 20 gradient-colored MA lines with transparency increasing from fast to slow, creating a visual "ribbon" effect
Cloud Fill: Filled area between fastest and slowest MAs, colored based on trend direction and strength
Signal Labels: Text-based labels for crossovers, twists, compression breakouts, and extreme conditions
Background Heatmap: Optional gradient background showing ribbon strength intensity
Compression Zones: Subtle background highlighting during ribbon compression periods
MTF Alignment Background: Very subtle background when multi-timeframe alignment is strong
Comprehensive Dashboard: Real-time metrics table showing trend, strength, width, compression status, acceleration, twist count, volatility, momentum, volume ratio, expansion rate, adaptive factor, and MTF alignment
The dashboard displays 12 key metrics with color-coded values and status indicators, providing at-a-glance assessment of all ribbon dimensions simultaneously.
Input Parameters
Core Settings:
Ribbon Count: Number of MA layers (3-20, default 12)
Fast Length: Shortest MA period (2-50, default 5)
Slow Length: Longest MA period (10-200, default 55)
MA Type: EMA, SMA, WMA, VWMA, or HMA (default EMA)
Adaptation Settings:
Adapt to Volatility: Enable/disable ATR-based adaptation (default enabled)
Adapt to Momentum: Enable/disable RSI-based adaptation (default enabled)
Adapt to Volume: Enable/disable volume ratio adaptation (default enabled)
Use Heikin Ashi: Calculate ribbon using HA candles instead of regular OHLC (default disabled)
Display Options:
Show Cloud: Toggle ribbon cloud fill (default enabled)
Show Ribbon Lines: Toggle individual MA lines (default enabled)
Show Signals: Toggle entry/exit signal labels (default enabled)
Show Twists: Toggle twist reversal markers (default enabled)
Show Compression: Toggle compression breakout signals (default enabled)
Show Dashboard: Toggle metrics table (default enabled)
Show Heatmap: Toggle strength-based background gradient (default enabled)
Multi-Timeframe:
Enable MTF: Toggle multi-timeframe analysis (default enabled)
HTF 1/2/3: Three higher timeframe selections (default 15m, 60m, 240m)
Colors:
All colors are fully customizable including bull ribbon (neon cyan), bear ribbon (neon pink), twist (gold), compression (neon purple), and acceleration (neon green).
How to Use This Indicator
Step 1: Assess Ribbon Direction and Alignment
Check the dashboard "Trend" field and observe ribbon color. Bullish ribbon (cyan) indicates uptrend, bearish ribbon (pink) indicates downtrend. Verify that price is aligned with ribbon direction - price above ribbon in uptrends, below in downtrends.
Step 2: Evaluate Trend Strength
Monitor the "Strength" metric in the dashboard. Values above 70 indicate strong trends with high conviction, 40-70 suggests moderate trends, below 40 indicates weak or developing trends. Strong trends typically offer better risk/reward for trend-following entries.
Step 3: Watch for Compression Breakouts
When the dashboard shows "Compression: YES" and "Width" is contracting, prepare for potential breakout. Compression breakout signals appear when ribbon expands after coiling, often marking the start of new trend legs. These setups offer excellent risk/reward as stops can be placed tight to the compression zone.
Step 4: Identify Twist Reversals
Twist signals (gold labels) indicate ribbon layers are crossing, suggesting potential trend exhaustion or reversal. High twist counts in the dashboard suggest choppy conditions where trend-following strategies may underperform. Use twists as warnings to tighten stops or reduce position size.
Step 5: Confirm with Multi-Timeframe Alignment
Check MTF alignment in the dashboard. "ALIGNED" status with high percentage (>75%) confirms that higher timeframes support your trade direction. "MIXED" status suggests caution as higher timeframes may be in conflict with current timeframe trend.
Step 6: Monitor Acceleration Signals
Acceleration labels (neon green) indicate trend momentum is increasing. These often appear early in new trend legs and can signal optimal entry timing. Lack of acceleration in mature trends may warn of impending exhaustion.
Step 7: Use Volume Confirmation
Check "Volume Ratio" in dashboard. Ratios above 1.5x confirm strong participation, while ratios below 0.8x suggest weak participation. Volume-confirmed signals (labeled "STRONG BUY/SELL") offer higher probability than signals on low volume.
Best Practices
Use on liquid instruments with consistent volume patterns for most reliable adaptation
Combine with price action analysis - ribbon shows trend, price action shows entry timing
In ranging markets, reduce ribbon count and increase fast/slow length spread to filter noise
In trending markets, increase ribbon count for finer gradient visualization
Pay attention to compression zones near key support/resistance levels for high-probability breakout setups
Use MTF alignment as a filter - only take trades when alignment exceeds 75% in your direction
Twist signals are most reliable when they occur at extreme ribbon strength levels (>70 or <30)
Monitor adaptive factor in dashboard - values above 1.3 indicate high adaptation, below 0.9 indicate low adaptation
Heikin Ashi mode reduces noise but adds lag - use for very choppy instruments only
Acceleration signals work best in early trend phases, less reliable in mature trends
Volume ratio below 0.5 suggests thin liquidity - avoid new positions during these periods
Ribbon width expansion rate above 5% indicates strong trend acceleration
Indicator Limitations
Moving average-based systems inherently lag price action - ribbon confirms trends but doesn't predict them
Adaptation mechanisms require sufficient historical data - may be less reliable on newly listed instruments
MTF analysis requires data availability on all selected timeframes - some instruments may not support all timeframes
Compression detection can produce false signals in extremely low volatility environments
Twist detection sensitivity depends on ribbon count - too few layers may miss twists, too many may over-signal
Volume adaptation assumes volume data is accurate and representative - some instruments have unreliable volume
Heikin Ashi mode adds significant lag and should be used cautiously
Adaptive multiplier can become extreme during unusual market conditions - monitor dashboard values
The indicator shows what is happening, not why - fundamental catalysts can override technical ribbon signals
Ribbon crossovers can whipsaw in ranging markets - use compression detection to filter range-bound periods
Technical Implementation
Built with Pine Script v6 using:
Custom MA calculation function supporting five MA types with dynamic length parameters
Multi-factor adaptive multiplier combining volatility, momentum, and volume dimensions
Percentile-based strength calculations for normalized cross-instrument comparison
Compression detection using rolling average width comparison
Twist detection via adjacent layer crossover counting
Multi-timeframe security requests with proper lookahead settings to prevent future data leakage
Trend acceleration using rate-of-change and second derivative calculations
Dynamic color gradients based on strength percentile ranking
Comprehensive dashboard with 12 real-time metrics and color-coded status indicators
Persistent label system to prevent label proliferation and maintain chart clarity
The code is fully open-source and extensively commented for educational purposes and customization.
Originality Statement
This indicator is original in its comprehensive adaptive approach to ribbon analysis. While moving average ribbons are an established concept, this indicator is justified because:
It introduces multi-factor adaptation (volatility + momentum + volume) not found in standard ribbon indicators
The compression detection system provides statistical breakout anticipation beyond simple width measurement
Twist detection quantifies ribbon reorganization to identify reversal conditions systematically
Multi-timeframe alignment scoring provides conviction measurement across temporal dimensions
Trend acceleration tracking using second derivatives offers early momentum shift detection
The adaptive multiplier system creates a self-adjusting framework that works across all market regimes
Integration of five MA types with Heikin Ashi option provides unprecedented flexibility
The comprehensive dashboard synthesizes 12 distinct metrics into a unified intelligence panel
Persistent label system prevents chart clutter while maintaining signal visibility
Volume confirmation layer filters false signals during low-participation moves
Each component contributes unique intelligence: adaptation ensures relevance across regimes, compression detects energy buildup, twists warn of reversals, MTF alignment validates conviction, acceleration identifies momentum shifts, and the dashboard synthesizes everything into actionable intelligence. The indicator's value lies in combining these complementary perspectives into a cohesive, adaptive trend-following 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.
Moving average-based systems are lagging indicators that confirm trends rather than predict them. Strong ribbon signals do not guarantee profitable trades. Past ribbon performance does not guarantee future ribbon performance. 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. Ribbon alignment, compression breakouts, and twist signals 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 Execution [JOAT]Sovereign Execution
Introduction
Sovereign Execution is an open-source multi-layer trading strategy that synthesizes five independent analytical engines into a unified execution framework. Rather than relying on a single indicator or a simple crossover, this strategy requires alignment across regime classification, momentum displacement, session timing, imbalance confluence, and multi-timeframe bias scoring before any trade is taken. The result is a highly selective system that filters out low-conviction setups and only enters when multiple independent analytical dimensions agree.
The strategy uses ATR-based adaptive stop-losses, configurable risk-reward ratio targets, optional trailing stops, and multiple exit conditions including regime flips and opposite displacement detection. It is designed for traders who want a systematic, rules-based approach to execution with full transparency into every decision the system makes.
Why This Strategy Exists
Most trading strategies suffer from one of two problems: they are either too simple (single-indicator entries that generate excessive noise) or too complex (dozens of conditions that are impossible to understand or debug). Sovereign Execution occupies the middle ground by using exactly five analytical layers, each addressing a different aspect of market conditions:
Regime Cipher: Is the market trending or compressing? Only trade in trending regimes.
Displacement Lens: Is there institutional momentum right now? Only enter on confirmed displacement.
Session Filter: Is the market in an active trading session? Avoid low-liquidity periods.
Imbalance Confluence: Is there a Fair Value Gap nearby? Optional confirmation of institutional interest.
Confluence Ledger: Do multiple timeframes agree on direction? Only trade when the score exceeds the threshold.
Each layer acts as an independent filter. A trade only fires when ALL active filters align simultaneously. This multi-gate approach dramatically reduces false signals compared to single-indicator strategies.
Module 1: Regime Cipher — Trend and Volatility Classification
The regime engine uses an Outlier-Resistant Moving Average (ORMA) as its foundation. The ORMA applies a square-root transformation to price, calculates a base moving average (configurable: EMA, SMA, RMA, WMA, HMA, DEMA, or TEMA), then applies a volatility-dampening filter using the ratio of full ATR to half-period ATR. This creates a moving average that is responsive to genuine trend changes but resistant to outlier spikes.
ATR-based bands are drawn above and below the ORMA. When price closes above the upper band, the regime is classified as Trending Bull. When price closes below the lower band, Trending Bear. The strategy also monitors Bollinger Band width relative to its 50-bar average to detect compression (BB width below 85% of average) and expansion (above 110%).
The key rule: the strategy only takes trades when the regime is Trending (not Compressed or Transitional). This single filter eliminates the majority of choppy, range-bound conditions where most strategies bleed money.
Module 2: Displacement Lens — Momentum Timing
The displacement engine normalizes three momentum oscillators (Bollinger %B, CCI, ROC) to a scale and blends them with a volume-weighted candle body analysis. The composite is smoothed with an EMA and compared against adaptive threshold bands calculated from the signal's own standard deviation.
A "strong bull displacement" occurs when the composite exceeds the upper threshold — meaning momentum, volume, and candle structure all confirm bullish institutional activity. Strong bear displacement is the mirror condition. The strategy only enters when displacement confirms the regime direction.
Module 3: Session Filter
Trading sessions are defined by UTC hour ranges (configurable for Asia, London, and New York). When the session filter is enabled (default), the strategy only takes trades during active sessions. This avoids entries during low-liquidity periods (overnight gaps, holiday hours) where spreads widen and price action is unreliable.
The session filter is optional — it can be disabled for instruments that trade 24/7 with consistent liquidity (e.g., major crypto pairs).
Module 4: FVG Confluence (Optional)
When enabled, the strategy scans the last 10 bars for Fair Value Gaps in the entry direction. A bullish FVG (gap up in price delivery) near the entry confirms institutional buying interest. A bearish FVG confirms selling interest. This filter is optional (default off) because not all valid setups occur near FVGs, but when enabled, it adds an additional layer of institutional confirmation.
Module 5: Confluence Score — Multi-Timeframe Bias Gate
The strategy calculates a simplified confluence score combining trend alignment, momentum, volatility state, market structure, and volume conviction on the current timeframe, then blends it with a higher timeframe score (default 4H) at a 40/60 weighting (HTF gets more weight).
The score is mapped to 0-100. Long entries require the score to exceed the long threshold (default 60). Short entries require the score to be below the short threshold (default 40). This ensures the strategy only trades when multiple analytical dimensions across timeframes agree on direction.
Entry Conditions
A long entry requires ALL of the following simultaneously:
Regime is Trending Bull (price above upper ORMA band, not compressing)
Confluence score >= long threshold (default 60)
Strong bullish displacement (composite above adaptive threshold)
Active session (if session filter enabled)
Recent bullish FVG (if FVG filter enabled)
Bar is confirmed (barstate.isconfirmed — no intrabar entries)
Short entries require the bearish mirror of all conditions. Edge detection ensures each signal fires only once — no repeated entries on the same setup.
Risk Management
Stop-Loss: ATR-based adaptive stop calculated as ATR(14) multiplied by the stop multiplier (default 1.5). For longs, the stop is placed below the entry price by this distance. For shorts, above. This means the stop automatically adapts to the instrument's current volatility — wider stops in volatile markets, tighter stops in calm markets.
Take-Profit: Calculated as the stop distance multiplied by the reward-risk ratio (default 2.0). A 1.5 ATR stop with a 2.0 R:R produces a 3.0 ATR take-profit target.
Trailing Stop: When enabled (default), the stop is trailed upward (for longs) or downward (for shorts) using the trail ATR multiplier (default 2.0). The trail only moves in the favorable direction — it never moves against the position.
Exit Conditions
Beyond the TP/SL levels, the strategy has two additional exit conditions:
Regime Flip: If the regime changes from Trending Bull to Trending Bear (or vice versa), or enters Compression, the position is closed immediately. The thesis for the trade no longer holds.
Opposite Displacement: If strong displacement fires in the opposite direction of the trade, the position is closed. Institutional momentum has shifted against the position.
Default Strategy Properties
These are the exact values used in the strategy's Properties dialog:
Initial Capital: $100,000 — a realistic account size for the average trader
Default Quantity: 5% of equity per trade — conservative position sizing
Commission: 0.04% per trade (round-trip 0.08%) — realistic for most exchanges
Slippage: 2 ticks per order — accounts for execution delay and spread
Pyramiding: 0 — only one position at a time
Calc on Every Tick: false — entries only on bar close for realistic execution
These settings are intentionally conservative. The commission and slippage values are included to produce realistic backtesting results. Traders should adjust these values to match their specific broker/exchange conditions.
Visualization
Regime MA: The ORMA line plotted with a glow effect (crisp line + transparent wider line) colored by trend state — teal for bullish, rose for bearish, gray for neutral
ATR Bands: Upper and lower bands showing the regime breakout thresholds
SL/TP Levels: When a position is active, the stop-loss (red), take-profit (green), and entry price (gray) are plotted as horizontal lines
Gradient Candles: Candles colored by the confluence score — transitioning from bearish rose (low score) to bullish teal (high score)
Session Background: Subtle amber tint when an active session is in progress
10-Row Dashboard
Row 1: Header — "SOVEREIGN EXECUTION"
Row 2: Regime — TREND LONG / TREND SHORT / COMPRESSED / TRANSITIONAL
Row 3: Displacement — BULL DISP / BEAR DISP / NEUTRAL
Row 4: Session — ASIA / LONDON / NEW YORK / OFF-SESSION
Row 5: Confluence — Score value + bias classification
Row 6: Volatility — EXPANDING / COMPRESSED / NORMAL
Row 7: Position — LONG / SHORT / FLAT
Row 8: Entry — Entry price when in a trade
Row 9: Stop — Current stop-loss level
Row 10: Target — Current take-profit level
Input Parameters
Execution Parameters:
Risk Per Trade % (default 1.5) — percentage of equity risked per trade
Reward:Risk Ratio (default 2.0) — take-profit as multiple of stop distance
ATR Stop Multiplier (default 1.5) — stop distance as ATR multiple
Use Trailing Stop (default on), Trail ATR Multiplier (default 2.0)
Entry Filters:
Confluence Threshold Long (default 60) — minimum score for long entries
Confluence Threshold Short (default 40) — maximum score for short entries
Require Active Session (default on)
Require FVG Confluence (default off)
Regime Cipher Parameters:
Adaptive MA Length (default 27), ATR Length (default 14), ATR Factor (default 1.05)
Base MA type (default EMA, options: RMA/SMA/EMA/WMA/HMA/DEMA/TEMA)
Displacement Parameters:
BB Length (20), BB Multiplier (2.0), CCI Length (23), ROC Length (50)
Displacement Smoothing (default 5)
Session Filter (UTC):
Asia Start/End (0/8), London Start/End (8/14), NY Start/End (14/21)
Strategy Limitations and Compromises
Every strategy involves design compromises. Here are the key ones for Sovereign Execution:
Selectivity vs Frequency: The multi-gate filter approach produces fewer trades than single-indicator strategies. On some instruments/timeframes, the strategy may go days without a signal. This is by design — it prioritizes quality over quantity — but it means the strategy needs sufficient historical data to produce a meaningful sample size.
Regime Lag: The ORMA-based regime classification has inherent lag. It will not catch the exact top or bottom of a trend. The strategy enters after the trend is confirmed, which means it misses the first portion of moves.
Session Filter Limitation: The UTC-based session filter works well for forex and indices but may need adjustment for instruments with non-standard trading hours. Crypto traders may want to disable the session filter entirely.
Single Timeframe Execution: While the confluence score incorporates HTF data, entries and exits are executed on the chart's timeframe. Very fast timeframes (1m) may produce noisy signals despite the filters.
Backtesting Caveats: All backtesting results are historical and do not guarantee future performance. The strategy uses calc_on_every_tick=false and barstate.isconfirmed to produce realistic entries, but real-world execution will always differ from backtesting due to slippage, partial fills, and latency.
No Guarantee of Profitability: This strategy is a systematic framework, not a profit guarantee. Market conditions change, and strategies that worked historically may underperform in different regimes.
Recommended Usage
Use on liquid instruments (major forex pairs, large-cap stocks, major crypto) for most reliable signals
Test on the 15m to 4H timeframe range — these provide enough bars for the regime and displacement engines while maintaining meaningful session context
Ensure the backtest produces at least 100 trades for statistical significance before drawing conclusions
Adjust commission and slippage to match your specific broker/exchange
Consider the strategy as one component of a broader trading plan, not a standalone system
Originality Statement
This strategy is original in its multi-layer filter architecture. While individual components (moving averages, momentum oscillators, session filters) are established concepts, this strategy is justified because:
It synthesizes five independent analytical engines (regime classification, displacement measurement, session timing, imbalance confluence, multi-TF scoring) into a unified execution framework where ALL must align for entry
The ORMA-based regime engine uses a volatility-dampened, outlier-resistant moving average with ATR bands — not a standard MA crossover
The displacement engine normalizes three oscillators and blends them with volume-weighted candle body analysis for institutional-grade momentum confirmation
The confluence score combines five analytical dimensions with HTF weighting, producing a quantitative bias gate rather than a subjective assessment
Multiple exit conditions (regime flip, opposite displacement, trailing stop, TP/SL) provide layered risk management beyond simple stop-loss
The strategy uses realistic default settings (commission, slippage, position sizing) and documents all Properties values for transparent backtesting
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.
Backtesting results shown are historical and do not guarantee future performance. The results of a single backtest run do not constitute proof that the strategy will be profitable in the future. Market conditions change, and strategies that performed well historically may underperform or lose money in different market environments.
The default settings (commission 0.04%, slippage 2 ticks, 5% equity per trade, $100,000 initial capital) are designed to produce realistic results. Users should verify these match their trading conditions and adjust accordingly.
Always use proper risk management. 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.
-Made with passion by officialjackofalltrades
Strategy

Liquidity Phantom [JOAT]Liquidity Phantom
Introduction
The Liquidity Phantom is an advanced open-source liquidity mapping and order flow dynamics engine that reveals where institutional money sits, how it moves, and when it strikes. It tracks unswept swing highs and lows as liquidity pools, detects phantom sweeps (institutional stop hunts), maps liquidity voids where price teleported through ranges without trading, measures gravitational pull toward nearby pools, identifies absorption pulses where passive orders absorb aggressive flow, and detects multi-factor exhaustion at price extremes. Every feature is built around a single thesis: liquidity is the invisible architecture of the market, and mapping it gives traders an edge that price action alone cannot provide.
The indicator overlays directly on the price chart with dashed liquidity pool levels, sweep boxes, void ghost boxes, absorption labels, exhaustion markers, liquidity density candles, and phantom drift lines — all managed with array-based cleanup and cooldown logic to keep the chart readable.
Why This Indicator Exists
Institutional traders do not chase price — they hunt liquidity. Every swing high has stop-loss orders sitting above it (sell-side liquidity). Every swing low has stop-loss orders sitting below it (buy-side liquidity). Institutions need this liquidity to fill their large orders without excessive slippage. Understanding where liquidity pools form, which ones have been swept, and where voids exist in price delivery gives traders a map of institutional intent.
Most indicators focus on what price has done. The Liquidity Phantom focuses on where the money is waiting to be taken. It addresses questions that standard indicators cannot answer:
Where are the nearest unswept liquidity pools above and below current price?
Has a pool just been swept (stop hunt completed)?
Are there voids in price delivery that act as magnets for future price action?
Is there absorption happening — large volume meeting price with minimal movement, indicating passive institutional orders?
Is the current move exhausting — multiple factors aligning at an extreme that suggests reversal?
How dense is the liquidity environment around current price?
Feature 1: Liquidity Pool Tracker
The foundation of the indicator. Every confirmed swing high is mapped as a sell-side liquidity pool (dashed line extending right, labeled "SELL LIQ" with the price). Every confirmed swing low is mapped as a buy-side liquidity pool (labeled "BUY LIQ"). These represent areas where retail stop-loss orders cluster — and where institutions will eventually hunt.
Swing detection uses an oscillator-based method with a configurable length (default 10 bars). Pools are tracked in arrays and automatically cleaned up when the maximum pool count is reached (default 20), with the oldest pools removed first.
Each pool level extends to the right as a dashed line until it is swept. The visual effect is a map of all unswept liquidity levels above and below price — the "phantom" architecture that drives institutional decision-making.
Feature 2: Phantom Sweep Detector
When price wicks through a liquidity pool level and closes back on the other side, it is a phantom sweep — institutional stop hunting in action. The indicator detects these events with two confirmation filters:
Wick Threshold: The wick beyond the pool level must exceed a configurable ATR multiple (default 0.5x ATR). This ensures the sweep was significant, not just a tiny wick touching the level.
Cooldown: After a sweep signal fires, no new sweep can fire for a configurable number of bars (default 15). This prevents signal stacking on the same event.
When a sweep is confirmed:
The swept pool's dashed line and label are removed from the chart
A colored sweep box is drawn around the sweep candle
A "PHANTOM SWEEP" label appears with the swept price level
The sweep is counted in the dashboard (total bull sweeps / bear sweeps)
Bullish sweeps (price wicks below a buy-side pool and closes above) are colored in amber-orange. Bearish sweeps (price wicks above a sell-side pool and closes below) are colored in ember-red.
Feature 3: Liquidity Void Mapper
A liquidity void occurs when price makes a large single-candle move (body exceeding a configurable ATR multiple, default 1.5x) — the market "teleported" through a range without meaningful trading. These voids represent areas of inefficient price delivery that the market tends to revisit.
Voids are drawn as ghost boxes with dotted borders in a deep indigo color. The indicator tracks whether each void has been filled (price has returned to trade through the void range). Filled voids change color to a teal shade, providing a visual record of which voids have been revisited and which remain open.
The dashboard tracks total void count and fill count, giving a void fill rate that indicates whether the market is efficiently filling its delivery gaps or leaving them open (a sign of strong trending).
Feature 4: Gravity Index
The Gravity Index measures how strongly price is being "pulled" toward nearby liquidity pools. It calculates an inverse-distance-weighted sum of all pools within 5 ATR of current price. The closer and more numerous the pools, the higher the gravity score.
EXTREME (7+): Price is very close to multiple pools — high probability of a sweep or significant reaction
HIGH (4-7): Several pools nearby — increased likelihood of liquidity-driven moves
MODERATE (2-4): Some pools in the vicinity — normal conditions
LOW (0-2): Few pools nearby — price is in clean territory
The gravity score is displayed as a subtle background color that intensifies as gravity increases, creating a visual "heat map" of liquidity density around price.
Feature 5: Absorption Pulse
Absorption occurs when large volume meets a liquidity pool but price barely moves — the classic sign of passive institutional orders absorbing aggressive flow. The indicator detects absorption using three simultaneous conditions:
Volume exceeds the configurable threshold (default 1.8x the 20-bar average)
The candle body is small relative to the full range (wick ratio below 35%)
Price is near a liquidity pool (within 1.5 ATR)
When all three conditions align, an absorption label appears ("BUY ABSORB" or "SELL ABSORB") with the volume multiple. These are among the most valuable signals the indicator produces — they reveal the "invisible hand" of institutional passive orders that cannot be seen on a standard chart.
Feature 6: Exhaustion Spectra
Multi-factor exhaustion detection at price extremes. The indicator scores four exhaustion factors independently:
Price extended beyond Bollinger Bands (overextension)
Volume climax (exceeding 2x average)
RSI at extreme levels (above 75 or below 25)
Proximity to a liquidity pool in the direction of the move
When three or more factors align (3/4 or 4/4), an "EXHAUSTION" label appears with the factor count. These are rare, high-conviction reversal signals that mark the point where institutional displacement has peaked and multiple independent measures confirm the extreme.
Feature 7: Liquidity Density Candles
Candles are colored based on how many liquidity pools exist within 5 ATR of current price. More pools nearby produce brighter, more vibrant ultraviolet candles. Fewer pools produce darker, slate-colored candles. This creates a unique heatmap effect that shows liquidity-rich zones (bright) versus liquidity-dry zones (dark) at a glance.
The coloring uses color.from_gradient() mapped to the gravity score, with separate palettes for bullish and bearish candles.
Feature 8: Phantom Drift Lines
The indicator projects where liquidity is "migrating" by calculating the average price of recent high pools and low pools, then drawing a line at the midpoint — the liquidity gravity center. This drift line shows the central tendency of where institutional interest is concentrated and how it shifts over time.
12-Row Dashboard
Row 1: Gravity Index score and classification
Row 2: Nearest pool direction and distance in ATR
Row 3: Active pool count (high pools + low pools)
Row 4: Last sweep direction and bars ago
Row 5: Total sweeps (bull + bear counts)
Row 6: Void count and fill rate
Row 7: Absorption pulse count
Row 8: Exhaustion count
Row 9: Nearby pool density (pools within 5 ATR)
Row 10: Current candle volume ratio
Row 11: RSI value for exhaustion context
Row 12: Drift line position
Input Parameters
Liquidity Engine:
Swing Detection Length (default 10) — sensitivity of pool detection
Max Liquidity Pools (default 20) — how many pools to track simultaneously
Sweep Wick Threshold (default 0.5 ATR) — minimum wick size for sweep confirmation
Absorption Volume Threshold (default 1.8x) — minimum volume for absorption detection
Void Min Size (default 1.5 ATR) — minimum candle body for void detection
Features:
Toggles for Liquidity Pool Levels, Phantom Sweep Signals, Liquidity Void Boxes, Absorption Pulse Labels, Exhaustion Spectra, Liquidity Density Candles, Phantom Drift Lines
Signal Cooldown (default 15 bars)
How to Use This Indicator
Step 1: Map the Liquidity Landscape
Identify where unswept pools sit above and below price. These are the targets that institutions will eventually hunt.
Step 2: Watch for Phantom Sweeps
When a pool gets swept (wick through + close back), the stop hunt is complete. The sweep direction often signals the true institutional intent — a bearish sweep of highs followed by a close below often precedes a downward move.
Step 3: Monitor Gravity
High gravity (multiple pools nearby) means price is in a liquidity-rich zone where reactions are likely. Low gravity means price is in clean territory where trends can extend.
Step 4: Identify Absorption
Absorption pulses near liquidity pools are among the strongest signals. High volume + small body + near a pool = passive institutional orders absorbing the flow. The direction of the absorption candle hints at which side the institution is on.
Step 5: Respect Exhaustion
When 3+ exhaustion factors align, the current move is overextended by multiple independent measures. These are high-conviction reversal zones — not guaranteed reversals, but areas where the probability of a pullback is elevated.
Step 6: Use Voids as Targets
Unfilled voids act as magnets. When price is trending toward an open void, expect it to fill. The void fill rate in the dashboard tells you whether the market is efficiently filling gaps or leaving them open.
Limitations
Liquidity pool detection is based on swing highs and lows, which are lagging by the swing detection length. Pools appear after the swing is confirmed, not in real-time.
Not all swing highs/lows have significant stop-loss orders above/below them. The indicator maps potential liquidity based on structure, not actual order book data.
Absorption detection uses volume and body ratio as proxies for passive institutional orders. True absorption can only be confirmed with Level 2 order book data, which is not available in Pine Script.
Exhaustion signals are intentionally rare (require 3+ factors). In fast-moving markets, exhaustion may not fire before a reversal occurs.
Volume data quality varies by instrument. Forex tick volume approximates but does not equal true institutional volume.
Phantom sweeps can be false signals — sometimes price sweeps a level and continues in the sweep direction rather than reversing.
The indicator maps historical and current liquidity dynamics. It does not predict which pool will be swept next or when.
Originality Statement
This indicator is original in its comprehensive liquidity-centric approach to market analysis. While swing detection and basic sweep concepts exist in other scripts, this indicator is justified because:
It treats liquidity pools as tracked entities with full lifecycle management (creation at swing detection, extension as dashed levels, removal on sweep, with array-based cleanup)
The Phantom Sweep Detector uses dual filtering (ATR wick threshold + cooldown) for precision that basic "price crossed level" detection lacks
The Liquidity Void Mapper tracks gaps in price delivery with fill monitoring — a concept distinct from Fair Value Gaps, focused on single-candle delivery failures
The Gravity Index provides a quantitative measure of liquidity pull that no standard indicator offers — inverse-distance-weighted scoring of all nearby pools
Absorption Pulse detection combines volume analysis, body ratio, and pool proximity to identify passive institutional orders — a multi-factor approach not available in standard volume indicators
Exhaustion Spectra uses four independent factors (BB extension, volume climax, RSI extreme, pool proximity) for high-conviction reversal detection
Liquidity Density Candles create a unique heatmap visualization based on pool concentration rather than any price-based metric
The combination of pool tracking, sweep detection, void mapping, gravity scoring, absorption detection, exhaustion spectra, density candles, and drift lines creates a unified liquidity analysis system not available in any single existing indicator
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.
Liquidity analysis reveals where stop orders likely cluster based on market structure. It does not access actual order book data and cannot confirm the presence or absence of real orders at any level. Sweep signals, absorption pulses, and exhaustion markers are probabilistic observations, not certainties.
Always use proper risk management. 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

Confluence Ledger [JOAT]Confluence Ledger
Introduction
The Confluence Ledger is an advanced open-source multi-timeframe confluence scoring engine that evaluates eight independent analytical dimensions across five configurable timeframes, producing a unified directional bias score from 0 to 100. It answers the question every trader asks: "Do the timeframes agree, and how strongly?" Rather than checking multiple indicators on multiple charts, this single tool synthesizes trend alignment, momentum phase, volatility state, market structure, volume conviction, RSI regime, VWAP bias, and ATR expansion into one actionable number.
The indicator overlays on the price chart with gradient-colored candles, confluence pressure zones, regime transition lines, divergence detection boxes, and institutional confluence signals - all backed by a compact 12-row dashboard that displays every metric in real-time.
Why This Indicator Exists
Multi-timeframe analysis is widely recognized as essential for high-probability trading, but executing it manually is tedious and error-prone. A trader might check the daily trend, the 4H momentum, the 1H structure, and the 15m entry — but doing this across eight different analytical dimensions is impractical without automation.
The Confluence Ledger automates this entire process by:
Scoring eight distinct analytical dimensions on each of five timeframes, producing 40 individual data points per bar
Weighting higher timeframes more heavily (Daily gets 2x the weight of the 5-minute chart), reflecting the institutional reality that higher timeframe trends dominate
Mapping the weighted aggregate to a 0-100 scale where 50 is perfectly neutral, above 60 is bullish, and below 40 is bearish
Adding institutional features that analyze the score itself: pressure zones where extreme confluence persisted, regime transitions where the bias flipped, and divergences between price and the confluence score
The Eight Scoring Dimensions
Each dimension returns a score from -1 (maximum bearish) to +1 (maximum bullish). Here is what each measures and why it matters:
1. Trend Alignment
Combines EMA slope direction with price position relative to the adaptive moving average. If price is above a rising EMA, the trend score is +1. If price is below a falling EMA, it is -1. Mixed conditions produce intermediate scores. This captures the most fundamental question: is the trend up or down?
2. Momentum Phase
A composite of three normalized oscillators — Bollinger %B, CCI, and ROC. Each is scored independently and averaged. This measures whether momentum is bullish, bearish, or neutral, using three different mathematical approaches to reduce the chance of a single oscillator giving a misleading signal.
3. Volatility State
Measures Bollinger Band width relative to its 50-bar average. Expanding volatility scores positive (in the direction of price), compressing volatility scores near zero. This dimension captures whether the market is in expansion (trending) or compression (range-bound).
4. Structure Bias
Uses an oscillator-based swing detection method to track whether the market is making higher highs/higher lows (bullish structure, score +1) or lower highs/lower lows (bearish structure, score -1). This is the structural backbone of Smart Money analysis.
5. Volume Conviction
Calculates current volume relative to the 20-bar average and weights it by candle direction. A bullish candle on 2x average volume scores strongly positive. A bearish candle on low volume scores weakly negative. This measures whether volume confirms the directional move.
6. RSI Regime
RSI position relative to 50 provides the base score, with additional weight for extreme readings (above 70 or below 30). This captures overbought/oversold conditions and the general momentum regime.
7. VWAP Bias
Price distance from VWAP normalized by ATR. When price is significantly above VWAP, institutional flow is net bullish. Below VWAP, net bearish. The ATR normalization ensures the score adapts to the instrument's volatility.
8. ATR Expansion
The rate of change of ATR itself, weighted by candle direction. When ATR is expanding in the direction of price, it confirms the move has volatility behind it. Contracting ATR suggests the move is losing energy.
Multi-Timeframe Aggregation
All eight dimensions are calculated on each of five timeframes (default: 5m, 15m, 1H, 4H, Daily) using request.security(). The per-timeframe scores are then weighted:
TF1 (5m): weight 1.0
TF2 (15m): weight 1.2
TF3 (1H): weight 1.5
TF4 (4H): weight 1.8
TF5 (Daily): weight 2.0
This weighting reflects the institutional principle that higher timeframe trends are more significant. A strong daily bias overrides conflicting 5-minute noise.
The weighted aggregate is mapped from to :
float confluence_score = math.round((raw_agg + 1.0) / 2.0 * 100)
Score interpretation:
80-100: EXTREME LONG — near-unanimous multi-TF bullish agreement
70-79: STRONG LONG — clear bullish bias across most timeframes
60-69: LEAN LONG — moderate bullish tilt
41-59: NEUTRAL — no clear directional consensus
31-40: LEAN SHORT — moderate bearish tilt
21-30: STRONG SHORT — clear bearish bias
0-20: EXTREME SHORT — near-unanimous bearish agreement
Institutional Analytics Engine
Beyond the core score, the indicator calculates several advanced metrics:
TF Agreement: Counts how many of the five timeframes are bullish vs bearish. When 4+ timeframes agree, a "Full Alignment" signal fires — these are the highest-conviction directional setups.
Score Velocity: The rate of change of the confluence score itself. "ACCEL UP" means the score is rising and accelerating. "FALLING" means directional conviction is weakening. This is the first derivative of confluence — it tells you whether agreement is building or fading.
Conviction Meter: Measures how tightly aligned the five timeframe scores are using standard deviation. Low variance (high conviction) means all timeframes agree closely. High variance (low conviction) means timeframes are giving conflicting signals.
Cross-TF Momentum Divergence: Compares the average of lower timeframes (TF1+TF2) against higher timeframes (TF4+TF5). When lower TFs are leading (diverging bullish while higher TFs lag), it can signal an early trend change. When upper TFs are leading, the higher timeframe trend is asserting dominance.
HTF Dominance: Identifies which higher timeframe is currently driving the overall bias the most. This tells you whether the daily, 4H, or 1H is the primary force behind the score.
Dimension Consensus: Averages each of the eight dimensions across all five timeframes to find which dimension is the strongest driver. If "TREND" is the strongest dimension, the trend alignment across timeframes is the primary force. If "VOLUME" is strongest, volume conviction is driving the bias.
Chart Features
1. Confluence Pressure Zones
When the confluence score stays extreme (above 70 or below 30) for a configurable minimum number of bars (default 5), the indicator draws a dashed box marking the price range during that period. These "pressure zones" represent areas where sustained multi-timeframe agreement created institutional accumulation or distribution. They often act as future support/resistance.
2. Regime Transition Lines
When the confluence score crosses from bullish to bearish territory (or vice versa), a labeled dashed line is drawn at the transition price. These lines show the exact price where the multi-timeframe consensus shifted — they act as institutional support/resistance levels that are derived from confluence rather than price structure.
3. Confluence Divergence Detector
When price makes a new 20-bar high but the confluence score is declining (or price makes a new low but the score is rising), the indicator marks a confluence divergence. This is a unique concept — it detects divergence between a multi-timeframe composite score and price action, which is fundamentally different from single-oscillator divergence.
4. Institutional Confluence Signals
Multi-condition filtered signals that fire when confluence score exceeds thresholds, velocity confirms, and a cooldown period has elapsed. These are the highest-conviction signals the indicator produces.
5. Gradient Confluence Candles
Candles are colored on a gradient from the bearish color (score near 0) to the bullish color (score near 100). This creates an instant visual read of confluence strength on every candle.
Input Parameters
Timeframes:
TF 1 through TF 5 (defaults: 5m, 15m, 60m, 240m, Daily) — all configurable
Scoring Parameters:
MA Length (27), ATR Length (14), BB Length (20), BB Mult (2.0)
CCI Length (23), ROC Length (50), RSI Length (14), Swing Length (10)
Institutional Features:
Gradient Confluence Candles, Confluence Pressure Zones, Regime Transition Lines
Confluence Divergence Boxes, Institutional Confluence Signals
Signal Cooldown (20 bars), Pressure Zone Min Bars (5)
How to Use This Indicator
Step 1: Read the Score
The confluence score (0-100) is your primary directional gauge. Above 60 = bullish bias. Below 40 = bearish bias. 40-60 = no clear edge — consider staying flat or reducing position size.
Step 2: Check TF Agreement
The dashboard shows how many timeframes agree. 4/5 or 5/5 agreement in one direction is a high-conviction setup. 2B/3S or similar splits suggest conflicting signals — proceed with caution.
Step 3: Monitor Score Velocity
A score of 72 that is "ACCEL UP" is more bullish than a score of 72 that is "FALLING." Velocity tells you whether the consensus is strengthening or weakening.
Step 4: Use Pressure Zones as S/R
When price returns to a previous pressure zone, expect a reaction. These zones represent areas where sustained multi-timeframe agreement existed — institutional memory.
Step 5: Watch for Confluence Divergences
If price is making new highs but the confluence score is declining, the multi-timeframe consensus is not confirming the move. This is a warning sign that the advance may stall or reverse.
Step 6: Trade Regime Transitions
When the score crosses from bearish to bullish territory (or vice versa), the regime transition line marks the pivot price. These transitions often produce sustained directional moves.
Limitations
The indicator uses request.security() to fetch data from five timeframes. On very low timeframes (1m), the higher timeframe data updates less frequently, which can create lag in the score.
The weighting system (higher TFs get more weight) is a design choice that works well for trend-following. Scalpers who trade against the higher timeframe trend may find the score misleading for their style.
Confluence score is a composite of mathematical calculations. A score of 80 does not mean "80% chance of going up" — it means 80% of the weighted analytical dimensions agree on a bullish reading.
The indicator evaluates current conditions, not future ones. A high confluence score can reverse quickly on unexpected news or institutional repositioning.
VWAP calculations may behave differently on instruments without continuous trading sessions.
Past confluence patterns do not guarantee future confluence patterns.
Originality Statement
This indicator is original in its systematic multi-dimensional, multi-timeframe confluence approach. While individual components (EMA trend, RSI, VWAP, etc.) are established concepts, this indicator is justified because:
It evaluates eight independent analytical dimensions simultaneously — not just trend and momentum, but also volatility state, market structure, volume conviction, RSI regime, VWAP bias, and ATR expansion
Each dimension is scored on five timeframes with weighted aggregation, producing 40 data points synthesized into a single actionable score
The Confluence Pressure Zone concept — marking areas where extreme multi-TF agreement persisted — creates institutional S/R levels derived from confluence rather than price structure
Regime Transition Lines mark the exact price where multi-timeframe consensus shifted, providing a unique form of dynamic support/resistance
Confluence Divergence Detection compares a multi-TF composite score against price action — fundamentally different from single-oscillator divergence
Score Velocity, Conviction Meter, Cross-TF Momentum Divergence, HTF Dominance, and Dimension Consensus provide meta-analysis of the confluence score itself
The integration of all these features with gradient candle coloring and a comprehensive dashboard creates a unified confluence analysis system not available in any single existing indicator
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.
The confluence score is a mathematical composite of current market conditions across multiple timeframes. It does not predict future price movement. High confluence does not guarantee profitable trades. Market conditions can change rapidly, and past confluence patterns do not guarantee future patterns.
Always use proper risk management. 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

Imbalance Cartograph [JOAT]Imbalance Cartograph
Introduction
The Imbalance Cartograph is an advanced open-source price imbalance mapping engine that identifies, tracks, and manages Fair Value Gaps (FVGs) and Supply/Demand zones across multiple layers. It goes far beyond basic FVG detection by adding auto-mitigation, volume filtering, transparency fade for aging zones, stacked imbalance detection, confluence highlighting, nearest zone radar, imbalance density scoring, and a comprehensive 15-row dashboard. Every zone is non-repainting and drawn only on confirmed bars.
The core idea is simple but powerful: institutional order flow creates imbalances in price delivery. These imbalances — gaps where price moved too fast for the market to fill, and zones where large orders were placed — act as magnets that price tends to revisit. By mapping all active imbalances and tracking their lifecycle, traders can identify high-probability areas where institutional interest exists.
Why This Indicator Exists
Fair Value Gaps and Supply/Demand zones are among the most discussed concepts in Smart Money methodology, yet most indicators that detect them are simplistic: they draw a box when a gap forms and leave it there indefinitely, with no lifecycle management, no volume confirmation, and no way to assess how many imbalances are clustered near current price.
The Imbalance Cartograph solves these problems by treating imbalances as living entities with a full lifecycle:
Creation: FVGs are detected using the standard three-candle gap pattern, but filtered by volume (only gaps formed on above-average volume qualify by default). Supply/Demand zones are created at swing pivots using configurable pivot lengths.
Aging: Older zones progressively fade in transparency, giving visual priority to fresh zones while keeping historical context visible.
Testing: When price returns to a zone, it transitions from "fresh" to "tested" with a color change, indicating the zone has been challenged but not broken.
Mitigation: FVGs are automatically deleted when price fills the gap completely. Supply zones broken by price can convert to breaker blocks (polarity flip).
Confluence: When an FVG overlaps with a Supply/Demand zone, the overlap area is highlighted as a high-probability confluence zone.
Layer 1: Fair Value Gaps
FVGs represent gaps in price delivery where the market moved so aggressively that it left unfilled space between candles. The indicator detects both bullish and bearish FVGs:
Bullish FVG: Current candle's low is above the candle-two-bars-ago's high, and the middle candle closed above that high. This creates an upward gap in price delivery.
Bearish FVG: Current candle's high is below the candle-two-bars-ago's low, and the middle candle closed below that low. This creates a downward gap.
Each FVG is drawn as a colored box extending forward (default 50 bars) with optional price labels showing the exact gap range.
Volume Filter: When enabled (default), FVGs only qualify if the middle candle's volume exceeds the 20-bar average. This filters out low-conviction gaps that are less likely to act as institutional reference points.
Auto-Mitigation: When enabled (default), FVGs are automatically deleted when price fills the gap. For bullish FVGs, this means price's low touches the top of the gap. For bearish FVGs, price's high reaches the bottom. The indicator tracks mitigation counts for the dashboard.
Stacked Imbalance Detection: When two or more consecutive FVGs form in the same direction, the indicator marks them as "STACKED" with a count. Stacked FVGs indicate sustained institutional pressure — the market is creating gap after gap in the same direction, which is a strong directional signal.
Layer 2: Supply and Demand Zones
Supply and Demand zones are created at swing pivot points detected using ta.pivothigh() and ta.pivotlow() with a configurable pivot length (default 10 bars).
Supply Zones: Created at swing highs. The zone extends from the swing high candle's high down to the candle body (max of open, close). These represent areas where selling pressure overwhelmed buying.
Demand Zones: Created at swing lows. The zone extends from the swing low candle's low up to the candle body (min of open, close). These represent areas where buying pressure overwhelmed selling.
Zone Lifecycle:
Fresh: Newly created zone, bright color, never tested
Tested: Price has returned to the zone but not broken through. Color shifts to indicate the zone has been challenged.
Broken/Breaker: When price breaks through a zone completely, it can optionally convert to a "breaker block" — the zone flips polarity (old supply becomes potential demand, and vice versa). This is a key Smart Money concept.
Overlap Prevention: New zones are checked against existing zones using an ATR-based threshold. If a new zone would overlap with an existing one, it is not drawn, keeping the chart clean.
BOS Lines: When price breaks through a supply or demand zone, a Break of Structure (BOS) line is drawn at the broken level, marking the structural shift.
Transparency Fade: When enabled, older zones gradually become more transparent based on their age in bars. This creates a natural visual hierarchy where fresh zones stand out and old zones fade into the background.
Advanced Features
Imbalance Confluence Detection:
The indicator checks whether any active FVG overlaps with any active Supply/Demand zone. When they overlap, the confluence area is highlighted with a gold-colored marker. These confluence zones represent areas where two independent institutional concepts agree — a gap in price delivery coincides with a structural supply or demand level. These are among the highest-probability zones on any chart.
Nearest Zone Radar:
The indicator continuously calculates the distance from current price to the nearest active zone (supply or demand). The dashboard displays the zone type, distance in ATR multiples, and direction. This gives traders an instant read on how close they are to the next potential reaction area.
Imbalance Density:
The indicator counts how many active FVGs and S/D zones exist within 3 ATR of current price and produces a density score (0-10). High density means price is surrounded by multiple imbalances — a "thick" area where reactions are likely. Low density means price is in "clean" territory with fewer institutional reference points.
15-Row Dashboard
Rows 1-2: Bull FVG and Bear FVG counts with stacked status
Rows 3-4: Supply and Demand zone counts with lifecycle state (Fresh/Tested)
Row 5: Breaker block count
Row 6: FVG fill rate (percentage of FVGs that have been mitigated)
Row 7: Nearest zone type, distance, and direction
Row 8: Imbalance density score and classification
Row 9: Confluence detection status (active/none)
Row 10: Stacked imbalance status
Row 11: Zone age (average bars since creation for active zones)
Row 12: Supply retest count and demand retest count
Row 13: Market bias based on imbalance distribution (more bull FVGs + demand = bullish)
Rows 14-15: Total FVG and zone statistics
Input Parameters
Fair Value Gaps:
Show FVGs (default on), FVG Extend bars (default 50), Max FVGs Displayed (default 15)
Auto-Mitigate FVGs (default on) — delete when price fills the gap
Volume Filter (default on) — only show FVGs with above-average volume
Supply / Demand Zones:
Show Zones (default on), Pivot Length (default 10), Max Zones (default 15)
Show BOS Lines (default on), Convert to Breaker (default on)
Fade Old Zones (default on) — transparency increases with age
Advanced Features:
Show Confluence Zones (default on), Show Stacked Imbalances (default on)
Show Price Labels on Zones (default on)
How to Use This Indicator
Step 1: Identify Active Imbalances
Look at the chart for active FVG boxes and S/D zones. Fresh zones (brighter colors) are more likely to produce reactions than tested or faded zones.
Step 2: Check Imbalance Density
The dashboard's density score tells you whether price is in a zone-rich or zone-poor area. High density (7+) means multiple imbalances are nearby — expect reactions. Low density (0-2) means price is in clean delivery territory.
Step 3: Watch for Confluence
When the dashboard shows "CONFLUENCE ACTIVE," an FVG overlaps with a S/D zone. These are the highest-probability reaction areas. Consider these zones for entries with tight stops.
Step 4: Monitor Stacked FVGs
Stacked FVGs (2+ consecutive gaps in the same direction) indicate strong institutional pressure. The market is not pausing to fill gaps — it is aggressively displacing price. Trade in the direction of stacked FVGs.
Step 5: Use Nearest Zone for Targets
The nearest zone radar tells you how far price is from the next potential reaction. Use this for setting take-profit targets or anticipating where price may stall.
Step 6: Track Mitigation Rate
The FVG fill rate shows what percentage of gaps have been filled. A high fill rate suggests the market is efficiently filling imbalances (range-bound behavior). A low fill rate suggests strong trending where gaps are being left behind.
Limitations
FVG detection uses a standard three-candle pattern. Not all gaps are created by institutional activity — news events and low-liquidity periods can create gaps that lack institutional significance.
Supply/Demand zones are based on swing pivots, which require a lookback period. The pivot length parameter significantly affects zone placement — shorter lengths create more zones, longer lengths create fewer but more significant zones.
Auto-mitigation deletes FVGs when price touches the gap boundary. In some cases, price may wick into a gap without truly filling it. The indicator treats any touch as mitigation.
Volume filtering uses the 20-bar volume average. On instruments with irregular volume patterns (e.g., crypto on weekends), this filter may be too aggressive or too lenient.
The indicator draws on confirmed bars only (barstate.isconfirmed), so zones appear one bar after the pattern completes. This is intentional to prevent repainting.
Imbalance zones show where institutional interest existed historically. They do not guarantee future price reactions.
Originality Statement
This indicator is original in its comprehensive lifecycle approach to imbalance mapping. While FVG detection and S/D zones exist in other scripts, this indicator is justified because:
It treats imbalances as entities with a full lifecycle (creation, aging, testing, mitigation, breaker conversion) rather than static drawings
The volume filter ensures only institutionally-significant FVGs are displayed, reducing noise from low-conviction gaps
Transparency fade creates a natural visual hierarchy that no static-color indicator provides
Stacked imbalance detection identifies consecutive FVGs as a measure of institutional pressure — a concept not available in standard FVG indicators
Confluence detection between FVGs and S/D zones creates a cross-layer analysis that identifies the highest-probability reaction areas
Nearest zone radar and imbalance density scoring provide quantitative measures of the imbalance environment around current price
The combination of FVG lifecycle management, S/D zone tracking with breaker conversion, confluence detection, density scoring, and a comprehensive dashboard creates a unified imbalance analysis system not available in any single existing indicator
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.
Price imbalances are historical observations about where gaps and zones formed. They do not predict future price movement. While price often revisits imbalances, there is no guarantee that any specific FVG will be filled or that any S/D zone will produce a reaction.
Always use proper risk management. 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

Meridian Zones [JOAT]Meridian Zones
Introduction
Meridian Zones is an advanced open-source session analysis engine built for traders who structure their trading around the Asia, London, and New York sessions. Unlike typical session indicators that clutter the chart with dozens of lines and levels, Meridian Zones takes a deliberately clean approach: session boxes, killzone backgrounds, session-colored candles, and precise liquidity sweep labels live on the chart, while all analytical depth lives in a fully-populated 15-row dashboard. The result is a chart that remains readable at any zoom level while giving you institutional-grade session intelligence at a glance.
The indicator tracks session ranges, calculates session VWAP, monitors volume distribution across sessions, detects liquidity sweeps with wick filtering and cooldown logic, flags volume spikes, grades institutional candles, and reports previous day high/low positioning — all without drawing a single horizontal line on the chart.
Why This Indicator Exists
Session-based trading is a cornerstone of institutional methodology. The Asia session establishes a range, London often breaks that range with directional intent, and New York either continues or reverses the London move. Understanding which session is dominant, where sweeps occur, and how volume distributes across sessions gives traders a significant edge.
Most session indicators fall into two traps: either they are too simple (just drawing boxes) or too cluttered (drawing session highs, lows, midpoints, opens, VWAP lines, and previous session levels all on the chart simultaneously). Meridian Zones avoids both by:
Drawing only the essential visual elements on the chart — session range boxes, killzone background shading, and labeled signals
Moving all analytical data into a comprehensive dashboard where it can be read without visual noise
Adding features that most session indicators lack entirely: session VWAP calculation, volume-weighted session dominance, institutional candle detection within sessions, and precise liquidity sweep identification with ATR-based wick filtering
Core Session Engine
Sessions are defined by UTC hour ranges (all configurable):
Asia: 00:00 - 08:00 UTC (default)
London: 08:00 - 16:00 UTC (default)
New York: 13:00 - 21:00 UTC (default)
The indicator detects session opens and closes, tracks high/low/volume/VWAP within each session, and draws range boxes when sessions close. A timeframe filter ensures the indicator only displays on charts where session analysis is meaningful (up to 4H by default).
Session overlap (London + NY) is automatically detected and reported in the dashboard, as overlap periods often produce the highest-volume, most directional moves of the day.
Session Tracking and Analytics
For each session, the indicator calculates and tracks:
Session Range: High and low of the session, displayed as a colored box
Session VWAP: Volume-weighted average price calculated from session open, updated every bar. This is the true institutional fair value for the session — not a simple midpoint
Session Momentum: The ratio of bullish candles to total candles within the session, giving a quick read on directional bias
Session Volume: Total volume accumulated during the session, used for dominance and volume leader calculations
Session Open/Close Prices: Used to determine session bias (bullish if close > open, bearish if close < open)
Liquidity Sweep Detection
One of the most valuable features is the precise liquidity sweep detector. A sweep occurs when price wicks beyond a session high or low and closes back inside — this is institutional stop hunting.
The sweep detector uses two filters to avoid false signals:
ATR Wick Filter: The wick beyond the session level must exceed a configurable ATR multiple (default 0.4x ATR). This eliminates tiny wicks that barely touch the level.
Cooldown Timer: After a sweep is detected, no new sweep can fire for a configurable number of bars (default 8). This prevents multiple labels from stacking on the same sweep event.
Sweep labels are color-coded: bullish sweeps (wicking below and closing above) in teal, bearish sweeps (wicking above and closing below) in rose.
Volume Spike Detection
When volume exceeds the session's average volume by a configurable multiplier (default 2.0x), a volume spike flag appears. Volume spikes during sessions often coincide with institutional order execution and can confirm the validity of a sweep or directional move.
Institutional Candle Labels
Candles with a body-to-range ratio exceeding the threshold (default 75%) are flagged as institutional candles. These are large-bodied, low-wick candles that indicate strong directional conviction — the kind of candles that institutions create when executing large orders.
Session-Colored Candles
When enabled, candles are tinted by the active session: gold for Asia, blue for London, rose for New York. This provides an instant visual reference for which session produced each candle, making it easy to see session transitions and overlap periods on the chart.
15-Row Dashboard
The dashboard is the analytical heart of the indicator. Every cell is populated — no empty rows. It displays:
Row 1: Active Session — Which session is currently active, or "OFF" between sessions
Row 2: Overlap Status — Whether London and NY are overlapping
Row 3-5: Session Ranges — Asia, London, and NY ranges in price with pip/point size
Row 6-8: Session Bias — Bullish/Bearish for each session based on open vs close
Row 9: Dominance — Which session has the largest range (the "dominant" session)
Row 10: Volume Leader — Which session has the highest total volume
Row 11: VWAP Position — Whether current price is above or below the active session's VWAP
Row 12: Range/ATR — Current session range as a multiple of ATR (shows how extended the session is)
Row 13: PDH/PDL — Previous Day High and Low with current price position relative to them
Row 14: Candle Quality — Current candle's body ratio and institutional grade
Row 15: Sweep Radar — Most recent sweep direction and how many bars ago it occurred
Input Parameters
Session Definitions (UTC):
Asia Start/End Hour (default 0/8)
London Start/End Hour (default 8/16)
NY Start/End Hour (default 13/21)
Features:
Show Session Boxes, Killzone Background, Session-Colored Candles, Session Open Markers
Show Liquidity Sweeps, Volume Spike Markers, Institutional Candle Labels, Dashboard
Sessions to Keep (default 3) — how many past session boxes remain on chart
Sweep Min Wick ATR multiplier (default 0.4), Sweep Cooldown bars (default 8)
Volume Spike Multiplier (default 2.0), Institutional Candle Body % (default 75%)
Timeframe Filter:
Show Up To (default 4H) — prevents the indicator from displaying on higher timeframes where session analysis is not meaningful
How to Use This Indicator
Step 1: Identify the Dominant Session
Check the dashboard for which session has the largest range and highest volume. The dominant session sets the directional tone for the day.
Step 2: Watch for Asia Range Breaks
London often breaks the Asia range. When London's first move sweeps the Asia high or low, the sweep label confirms the liquidity grab. The direction of the break often sets the trend for the day.
Step 3: Monitor Overlap Period
The London-NY overlap (typically 13:00-16:00 UTC) produces the highest volume and most decisive moves. Volume spikes during overlap are particularly significant.
Step 4: Use VWAP Position for Bias
If price is above the session VWAP, institutional flow is net bullish for that session. Below VWAP, net bearish. The dashboard shows this in real-time.
Step 5: Confirm with Institutional Candles
When a sweep occurs and is followed by an institutional candle (large body, high volume), the move has strong institutional backing.
Step 6: Reference PDH/PDL
Previous Day High and Low are key institutional levels. The dashboard shows whether price is above PDH (bullish), below PDL (bearish), or between them (range-bound).
Limitations
Session analysis is most relevant on intraday timeframes (1m to 4H). The timeframe filter prevents display on higher timeframes, but users should understand that session dynamics are inherently intraday concepts.
UTC-based session times may need adjustment for instruments that trade in different time zones or have non-standard trading hours.
Volume data quality varies by instrument. Forex volume on PulseWire is tick volume, which approximates but does not equal true institutional volume.
Session VWAP resets at each session open. It is not a continuous daily VWAP.
Sweep detection relies on wick analysis, which can produce false signals in extremely volatile or illiquid conditions.
The indicator shows session dynamics, not price predictions. A bullish session bias does not guarantee price will continue higher.
Originality Statement
This indicator is original in its clean-chart, dashboard-heavy approach to session analysis. While session boxes and killzone backgrounds exist in other indicators, this indicator is justified because:
It deliberately separates visual elements (chart) from analytical data (dashboard), solving the clutter problem that plagues most session indicators
Session VWAP calculation per session provides institutional fair value that simple midpoint calculations cannot match
The liquidity sweep detector uses dual filtering (ATR wick threshold + cooldown timer) for precision that basic "price crossed level" detection lacks
Volume-weighted session dominance and volume leader tracking provide insights into which session is driving the market — information not available in standard session indicators
Institutional candle grading within sessions identifies the specific candles where large orders were executed
The 15-row dashboard presents all session analytics simultaneously with zero empty cells, creating a true session command center
The combination of session boxes, sweep detection, volume spikes, institutional candle grading, and comprehensive analytics in a single clean-chart indicator is not available in existing public scripts
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.
Session analysis reveals historical patterns in how different trading sessions behave. Past session patterns do not guarantee future session behavior. Market conditions, news events, and institutional positioning can cause sessions to behave atypically at any time.
Always use proper risk management. 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

Displacement Lens [JOAT]Displacement Lens
Introduction
The Displacement Lens is an advanced open-source momentum analysis indicator that measures real-time displacement intensity by fusing four normalized momentum oscillators with volume-weighted candle body analysis. It produces a composite displacement score displayed as a gradient histogram with adaptive threshold bands, designed to separate institutional displacement candles from retail noise. This is not a simple oscillator mashup — it is a unified displacement measurement engine with institutional-grade features built on top of the core signal.
The indicator operates in its own pane (non-overlay) and provides traders with a clear, visual representation of when price is being displaced by institutional force versus when it is drifting on low-conviction retail flow.
Why This Indicator Exists
Standard momentum oscillators like RSI, CCI, or Bollinger %B each capture only one dimension of market momentum. Traders often flip between multiple oscillators trying to get a complete picture. The Displacement Lens solves this by:
Normalizing four independent oscillators (BB %B, CCI, ROC, RSI) to a common scale so they can be meaningfully combined
Weighting the composite by volume intensity and candle body ratio — because a large-bodied candle on high volume is institutional displacement, while a small-bodied candle on low volume is noise
Adding adaptive threshold bands that adjust to the signal's own volatility, rather than using fixed overbought/oversold levels that fail in different market conditions
Layering institutional features on top: decay detection, accumulation phases, divergence scanning, exhaustion markers, and a per-bar institutional candle grade
The result is a single composite signal that tells you not just "is momentum bullish or bearish" but "how strong is the institutional displacement right now, and is it accelerating, decaying, or exhausting?"
Core Signal Construction
The displacement signal is built in three stages:
Stage 1: Oscillator Normalization
Each of the four oscillators is normalized to a range using methods appropriate to each:
Bollinger %B: Measures where price sits within the Bollinger Bands. The raw %B (0 to 1) is remapped to with a soft clamp. When price is above the upper band, the score approaches +1. Below the lower band, it approaches -1.
CCI: The Commodity Channel Index is divided by 200 and clamped. CCI values beyond +/-200 saturate at +/-1, while values near zero produce scores near zero.
ROC: Rate of Change is normalized using adaptive scaling — it divides by twice its own standard deviation over 50 bars. This means the normalization adapts to the instrument's typical momentum range.
RSI: Remapped from the standard 0-100 range to by subtracting 50 and dividing by 50. RSI 70 becomes +0.4, RSI 30 becomes -0.4.
Each oscillator can be individually toggled on or off, and the composite averages only the active ones.
Stage 2: Volume-Weighted Displacement
The oscillator composite is blended with a volume displacement component:
float vol_displacement = disp_direction * body_ratio * vol_intensity
float raw_signal = osc_composite * (1.0 - vol_weight) + vol_displacement * vol_weight
Where:
disp_direction is +1 for bullish candles, -1 for bearish
body_ratio is the candle body size divided by the full range (high-low) — institutional candles have ratios above 0.7
vol_intensity is current volume relative to the 20-bar average, clamped to
vol_weight (default 0.3) controls how much volume influences the final score
This means a strong oscillator reading on a small-bodied, low-volume candle gets dampened, while a moderate oscillator reading on a large-bodied, high-volume candle gets amplified.
Stage 3: Smoothing and Thresholds
The raw signal is smoothed with an EMA (default period 5), and adaptive threshold bands are calculated as the signal's own standard deviation multiplied by a configurable factor (default 1.5x over 100 bars). This creates bands that widen in volatile markets and tighten in calm markets — far more reliable than fixed thresholds.
Institutional Features
1. Displacement Impulse Signals
When the signal crosses above the upper threshold for the first time (with volume and body confirmation), a bullish impulse label appears. Similarly for bearish. These mark the exact moment institutional displacement begins — not after it has already played out.
2. Momentum Divergence Engine
The indicator detects four types of divergence between price pivots and signal pivots:
Regular Bearish: Price makes a higher high, but the displacement signal makes a lower high — momentum is weakening despite price advance
Regular Bullish: Price makes a lower low, but the signal makes a higher low — selling pressure is fading
Hidden Bearish: Price makes a lower high, but the signal makes a higher high — continuation of downtrend likely
Hidden Bullish: Price makes a higher low, but the signal makes a lower low — continuation of uptrend likely
Divergences are detected using configurable pivot lengths and drawn as labeled markers directly on the histogram.
3. Displacement Decay Zones
When the signal was above the upper threshold but starts declining (still positive, but fading), the indicator marks a "decay zone" — a dotted box on the histogram showing where institutional momentum is waning. This is a unique concept: it identifies the transition from impulse to drift before the signal crosses zero. Bear decay zones work identically on the downside.
4. Accumulation Phase Detector
When both the signal and signal line are near zero (below half the standard deviation) for a minimum number of bars, the indicator draws a dashed "accumulation" box. These low-displacement consolidation phases often precede the next major impulse move. The concept is borrowed from Wyckoff methodology but applied to displacement scoring rather than price.
5. Institutional Candle Grading
Every bar receives a grade from D to A+ based on three factors:
Body ratio (how much of the candle is body vs wick) — 33.3% weight
Volume intensity (current volume vs 20-bar average) — 33.3% weight
Displacement alignment (how far the signal is from the threshold) — 33.4% weight
A+ candles (score >= 80) with body ratio > 0.7 and volume > 1.5x average are flagged as true institutional candles. The grade is shown in the dashboard.
6. Velocity Channel
The rate of change of the displacement signal itself is plotted as a velocity line with standard deviation bands. When velocity is expanding (accelerating), the displacement move has conviction. When velocity contracts, the move is losing steam. Optional glow effects make the velocity channel visually distinct.
7. Exhaustion Detection
Bullish exhaustion fires when the signal was above the threshold for 3 consecutive bars and then declines for 3 consecutive bars. Bearish exhaustion is the mirror. These are rare, high-conviction reversal signals that mark the exact point where institutional displacement has peaked and is reversing.
8. HTF Displacement Bias
The indicator calculates the same displacement composite on a higher timeframe (default 4H) using request.security(). When the current timeframe signal aligns with the HTF bias, conviction is higher. The dashboard shows whether HTF is BULLISH, BEARISH, or NEUTRAL and whether it is aligned with the current signal.
9. Displacement Streak Counter
Tracks how many consecutive bars the signal has been above the upper threshold (bull streak) or below the lower threshold (bear streak). Longer streaks indicate sustained institutional pressure.
Visual Elements
Gradient Histogram: The main displacement signal plotted as columns with gradient coloring — bullish bars transition from muted teal to bright teal as strength increases, bearish bars from muted rose to hot rose. Volume spike bars are highlighted in amber.
Signal Line: A further-smoothed version of the signal (3x the smoothing period) plotted as a bright lavender line. Crossovers between the signal and signal line generate diamond markers.
Adaptive Threshold Bands: Upper and lower threshold lines that expand and contract with signal volatility.
Decay Zones: Dotted boxes marking fading institutional momentum.
Accumulation Zones: Dashed boxes marking low-displacement consolidation.
Velocity Channel: Rate-of-change line with glow bands showing displacement acceleration.
15-Row Dashboard: Comprehensive command center showing Signal value, Phase classification, Candle Grade, HTF Bias, Streak, Velocity, Divergence status, and more.
Input Parameters
Oscillator Components:
BB Length (default 20), BB Multiplier (default 2.0)
CCI Length (default 23), ROC Length (default 50), RSI Length (default 14)
Individual toggles for each oscillator
Displacement Engine:
Signal Smoothing (default 5) — EMA period for the final signal
Volume Weight (default 0.3) — how much volume influences the score
Threshold Lookback (default 100) — period for adaptive threshold calculation
Threshold Multiplier (default 1.5) — sensitivity of threshold bands
Institutional Features:
Toggles for Impulse Signals, Divergences, Decay Zones, Accumulation Phases, Signal Crossovers, Velocity Channel, Exhaustion Markers, HTF Bias
HTF Timeframe (default 240 / 4H)
Accumulation Min Bars (default 8), Decay Min Bars (default 5)
Max Boxes (default 30), Divergence Pivot Length (default 5)
How to Use This Indicator
Step 1: Read the Phase
The dashboard shows the current displacement phase: IMPULSE BULL, IMPULSE BEAR, DRIFT BULL, DRIFT BEAR, DECAY, ACCUMULATION, or FLAT. This tells you the market's current displacement state at a glance.
Step 2: Watch for Impulse Signals
When the signal crosses the threshold with volume confirmation, an impulse label appears. These are the highest-conviction displacement events — institutional money is moving price.
Step 3: Monitor Decay and Exhaustion
After an impulse, watch for decay zones forming. If the signal was strong and starts declining, the move is losing institutional backing. Exhaustion markers confirm the reversal point.
Step 4: Confirm with HTF Bias
Check whether the HTF displacement aligns with the current timeframe. Aligned signals have higher follow-through probability.
Step 5: Use Divergences for Reversals
Regular divergences warn of potential reversals. Hidden divergences confirm trend continuation. Both are detected automatically.
Step 6: Identify Accumulation for Breakout Setups
When the indicator marks an accumulation phase (low displacement for extended bars), prepare for the next impulse. The breakout direction is often confirmed by the first impulse signal after accumulation ends.
Limitations
The indicator measures displacement intensity, not price direction prediction. Strong displacement can occur in both breakouts and fakeouts.
Volume data quality varies by instrument and exchange. Forex volume on PulseWire represents tick volume, not true volume.
HTF bias uses request.security() which may produce different results on different chart types.
Divergence detection requires sufficient pivot history — it will not fire on the first few hundred bars of a chart.
Exhaustion signals are intentionally rare (require 3 bars above threshold + 3 bars declining). They may not fire in fast-moving markets.
The indicator works best on liquid instruments with consistent volume patterns.
Past displacement patterns do not guarantee future price movement.
Originality Statement
This indicator is original in its unified displacement measurement approach. While individual oscillators (BB %B, CCI, ROC, RSI) are well-known, this indicator is justified because:
It normalizes four oscillators to a common scale using methods appropriate to each (adaptive scaling for ROC, division-based for CCI, remapping for RSI and BB %B) — not simply averaging raw values
The volume-weighted displacement component integrates candle body analysis with volume intensity, creating a measure that distinguishes institutional candles from retail noise
Adaptive threshold bands based on the signal's own standard deviation replace unreliable fixed thresholds
The Displacement Decay Zone concept — identifying the transition from impulse to drift before the signal crosses zero — is not available in standard oscillators
The Accumulation Phase Detector applies Wyckoff-inspired consolidation detection to a composite momentum score rather than price
The Institutional Candle Grading system scores every bar on three dimensions simultaneously (body, volume, displacement alignment)
The Velocity Channel measures the rate of change of displacement itself — a second derivative that reveals acceleration and deceleration of institutional activity
The combination of all these features with a comprehensive dashboard creates a unified displacement analysis system not available in any single existing indicator
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.
The displacement signal measures momentum intensity based on mathematical calculations of current and historical market data. It does not predict future price movement. High displacement does not guarantee profitable trades. Past displacement patterns do not guarantee future patterns.
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.
The author is not responsible for any losses incurred from using this indicator. Users assume full responsibility for all trading decisions.
-Made with passion by officialjackofalltrades
Indicator

Singularity Convergence Protocol [JOAT]Singularity Convergence Protocol
Introduction
The Singularity Convergence Protocol is an advanced open-source multi-system confluence strategy that combines eight distinct analytical methodologies into a unified trading system. This strategy integrates momentum analysis, Smart Money Concepts, velocity waves, liquidity tracking, trend detection, divergence analysis, volatility measurement, and institutional flow into a comprehensive decision-making engine that generates high-probability trading signals through systematic confluence scoring.
Unlike single-indicator strategies, the Singularity Convergence Protocol provides institutional-grade signal generation through multi-dimensional analysis, weighted confluence scoring, and adaptive risk management. The strategy is designed for traders who understand that the highest probability setups occur when multiple independent analytical systems align simultaneously, creating a "singularity" of confluence.
Why This Strategy Exists
This strategy addresses the critical challenge of signal reliability in algorithmic trading. By requiring confluence across multiple independent systems, it dramatically reduces false signals while identifying the highest probability setups. The strategy reveals:
System 1 - Momentum Analysis: Quantum Flux Oscillator methodology combining VFI, Laguerre RSI, Fisher Transform, TSI, MFI, OBV, and A/D
System 2 - Structure Detection: Smart Money Concepts including Order Blocks, Fair Value Gaps, Liquidity Levels, and Market Structure
System 3 - Velocity Waves: Multi-layer momentum spectrum with five EMA layers and ALMA enhancement
System 4 - Liquidity Tracking: Pivot-based liquidity detection with sweep confirmation
System 5 - Trend Analysis: Hull MA, SuperTrend, ADX, and moving average alignment
System 6 - Divergence Detection: Multi-oscillator divergence with RSI, MACD, TSI, and Stochastic
System 7 - Volatility Analysis: ATR, Bollinger Bands, Keltner Channels, Historical Volatility, and Squeeze detection
System 8 - Institutional Flow: CMF, MFI, OBV, VWAP, and A/D Line integration
Core Strategy Logic
1. Eight Independent Analytical Systems
Each system operates independently and generates binary signals (bullish/bearish):
Momentum System:
Calculates composite momentum from seven components
Generates bullish signal when momentum > 0 and rising
Generates bearish signal when momentum < 0 and falling
Score: +1 for bullish, -1 for bearish, 0 for neutral
Structure System:
Detects order blocks, FVGs, and market structure
Bullish when OB/FVG active + bullish structure + discount zone
Bearish when OB/FVG active + bearish structure + premium zone
Score: +1 for bullish, -1 for bearish, 0 for neutral
Velocity Wave System:
Analyzes five momentum layers with ALMA enhancement
Bullish when Basis 1 > Basis 2 and rising with spread > 5
Bearish when Basis 1 < Basis 2 and falling with spread < -5
Score: +1 for bullish, -1 for bearish, 0 for neutral
Liquidity System:
Tracks liquidity sweeps with volume confirmation
Bullish when SSL swept with volume surge
Bearish when BSL swept with volume surge
Score: +1 for bullish, -1 for bearish, 0 for neutral
Trend System:
Combines Hull MA, SuperTrend, ADX, and MA alignment
Bullish when Hull rising + SuperTrend bullish + ADX > 20 + MA alignment
Bearish when Hull falling + SuperTrend bearish + ADX > 20 + MA alignment
Score: +1 for bullish, -1 for bearish, 0 for neutral
Divergence System:
Detects divergences across RSI, MACD, TSI, and Stochastic
Bullish when regular bullish divergence with 2+ oscillator confluence
Bearish when regular bearish divergence with 2+ oscillator confluence
Score: +1 for bullish, -1 for bearish, 0 for neutral
Volatility System:
Measures volatility through ATR, BB Width, KC, HV, and Squeeze
Bullish when squeeze breakout upward with low volatility index
Bearish when squeeze breakout downward with low volatility index
Score: +1 for bullish, -1 for bearish, 0 for neutral
Institutional Flow System:
Tracks institutional positioning through CMF, MFI, OBV, VWAP, A/D
Bullish when flow index > 10 with CMF > 0 and MFI > 50
Bearish when flow index < -10 with CMF < 0 and MFI < 50
Score: +1 for bullish, -1 for bearish, 0 for neutral
2. Confluence Scoring System
The strategy employs two scoring methods:
Binary Signal Count:
Counts how many systems generate bullish signals (0-8)
Counts how many systems generate bearish signals (0-8)
Minimum signals required (default: 2) filters weak setups
Weighted Confluence Score:
Sums all system scores (range: -8 to +8)
Adds bonus points for extreme conditions:
- Extreme momentum regimes (+1)
- All velocity layers aligned (+1)
- 4/4 divergence confluence (+1)
- Volume surge with strong flow (+1)
Total score can exceed ±8 with bonuses
3. Entry Conditions
Two entry modes are available:
Standard Mode (Binary Count):
Long Entry: Bullish signals >= minimum AND bullish signals > bearish signals
Short Entry: Bearish signals >= minimum AND bearish signals > bullish signals
Simple and straightforward
Confluence Mode (Weighted Score):
Long Entry: Total bullish score >= minimum AND bullish score > bearish score
Short Entry: Total bearish score >= minimum AND bearish score > bullish score
Accounts for bonus conditions and extreme setups
4. Risk Management System
The strategy includes comprehensive risk management:
Position Sizing:
Risk per trade: Percentage of equity (default: 2%)
Position size calculated based on stop distance and risk percentage
Prevents over-leveraging on any single trade
Stop Loss Placement:
ATR-based stops: Stop distance = ATR × multiplier (default: 2.0)
Long stops: Entry price - (ATR × multiplier)
Short stops: Entry price + (ATR × multiplier)
Adapts to current volatility
Take Profit Targets:
Risk:Reward ratio (default: 2.0)
Target distance = Stop distance × R:R ratio
Long targets: Entry price + (Stop distance × R:R)
Short targets: Entry price - (Stop distance × R:R)
Trailing Stops:
Optional trailing stop (default: enabled)
Trail distance = ATR × trailing multiplier (default: 3.0)
Locks in profits as trade moves favorably
Adjusts to volatility changes
5. Visual Features
The strategy includes comprehensive visual elements:
Hull Moving Average: Primary trend line with dynamic coloring
SuperTrend Bands: Dynamic support/resistance levels
EMA Matrix: Three EMAs showing trend alignment
Order Block Boxes: Bullish and bearish OB zones
Fair Value Gap Boxes: FVG zones with dashed borders
Liquidity Lines: BSL and SSL levels with sweep tracking
Equilibrium Line: Premium/discount zone reference
Background Coloring: Regime indication (extreme bull/bear, squeeze, entry signals)
Information Dashboard: Real-time display of all metrics and scores
Dashboard Metrics
The comprehensive dashboard displays:
Bull/Bear Scores: Total confluence scores with signal counts
Volatility Index: Current volatility level and regime
Spread: Velocity wave spread indicating momentum strength
Flow Index: Institutional positioning measurement
Price Zone: Premium/discount position with percentage
Win Rate: Strategy performance with trade count
Position: Current position status (Long/Short/Flat)
Signal: Current signal status with confluence indication
Strategy Settings and Defaults
Backtest Configuration:
Initial Capital: $100,000
Position Size: 100% of equity (adjusted by risk management)
Commission: 0.1% per trade
Slippage: 2 ticks
Pyramiding: Disabled (one position at a time)
Risk Management Defaults:
Risk Per Trade: 2.0% of equity
Stop Loss: 2.0 × ATR
Take Profit: 2.0 × Risk (2:1 R:R)
Trailing Stop: Enabled, 3.0 × ATR
Strategy Defaults:
Minimum Signals: 2 (requires at least 2 systems to agree)
Use Confluence Scoring: Enabled (uses weighted scores)
Show Visual Features: Enabled (displays all chart elements)
How to Use This Strategy
Step 1: Configure Risk Parameters
Set risk per trade, stop loss ATR multiplier, and take profit R:R ratio based on your risk tolerance.
Step 2: Choose Entry Mode
Select standard mode (binary count) for simplicity or confluence mode (weighted scores) for advanced filtering.
Step 3: Set Minimum Signals
Higher minimum (3-4) = fewer but higher quality trades. Lower minimum (2) = more trades but lower quality.
Step 4: Enable Trailing Stops
Trailing stops lock in profits on winning trades. Adjust trailing ATR multiplier based on market volatility.
Step 5: Monitor Dashboard
Watch bull/bear scores in real-time. Scores >= 4 indicate strong confluence. Scores >= 6 indicate exceptional setups.
Step 6: Review Visual Confluence
Check that multiple visual elements align: trend, structure, liquidity, and flow should all confirm signal direction.
Step 7: Backtest Thoroughly
Test on multiple instruments and timeframes. Adjust parameters based on results. Aim for 100+ trades for statistical significance.
Best Practices
Use on liquid instruments (major forex, large-cap stocks, major crypto)
Test on multiple timeframes - higher timeframes generally more reliable
Increase minimum signals in choppy markets, decrease in trending markets
Monitor win rate - aim for 40%+ with 2:1 R:R for profitability
Adjust stop loss ATR multiplier based on instrument volatility
Use confluence mode for highest quality signals
Review dashboard before entering - ensure multiple systems align
Combine with higher timeframe analysis for additional confirmation
Be patient - wait for high confluence scores (4+) for best results
Respect the risk management - never override stop losses
Strategy Limitations
Requires sufficient historical data for all eight systems
May generate fewer signals than single-indicator strategies
Performance varies by instrument and timeframe
Backtesting results do not guarantee future performance
Slippage and commission can significantly impact results
Extreme market conditions may cause all systems to fail simultaneously
Requires regular monitoring and parameter adjustment
Not suitable for very low timeframes (< 5 minutes) due to noise
Input Parameters
Risk Management:
Risk Per Trade %: Percentage of equity to risk (default: 2.0%)
Stop Loss (ATR): ATR multiplier for stops (default: 2.0)
Take Profit (R:R): Risk:reward ratio (default: 2.0)
Use Trailing Stop: Enable trailing stops (default: enabled)
Trailing ATR: ATR multiplier for trailing (default: 3.0)
Strategy Settings:
Minimum Signals: Required system agreements (default: 2)
Use Confluence Scoring: Enable weighted scoring (default: enabled)
Show Visual Features: Display chart elements (default: enabled)
Originality Statement
This strategy is original in its comprehensive multi-system approach. While individual analytical methodologies are established concepts, this strategy is justified because:
It integrates eight distinct analytical systems into a unified decision-making engine
The confluence scoring system measures agreement across independent methodologies
Bonus scoring for extreme conditions identifies exceptional setups
Comprehensive risk management adapts to volatility and account size
Visual integration allows traders to verify confluence across multiple dimensions
The dashboard provides real-time transparency into all system states
Systematic approach removes emotional decision-making from trading
Strategy Performance Notes
When publishing this strategy, ensure you:
Use realistic account size (default: $100,000)
Include realistic commission (0.1%) and slippage (2 ticks)
Generate 100+ trades for statistical significance
Document all default settings in description
Explain risk management parameters clearly
Show results on multiple instruments/timeframes
Discuss limitations and market conditions where strategy works best
Never make unrealistic claims about future performance
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 do not represent actual trading. Actual results may differ significantly from backtested results due to slippage, commission, market conditions, and execution differences.
The strategy combines multiple analytical systems, but no combination of indicators can predict future price movement with certainty. Market conditions change, and strategies that worked historically may not work in the future. Users must conduct their own analysis and risk assessment before using this strategy.
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.
-Made with passion by officialjackofalltrades Strategy

Phantom Whale Hunter [JOAT]Phantom Whale Hunter
Introduction
The Phantom Whale Hunter is an advanced open-source institutional footprint tracking system that combines Chaikin Money Flow, Money Flow Index, On-Balance Volume, VWAP analysis, and Accumulation/Distribution to detect institutional buying and selling pressure. This indicator reveals when large institutional players (whales) are accumulating or distributing positions, providing traders with insights into smart money positioning before major price moves occur.
Unlike basic volume indicators, the Phantom Whale Hunter provides multi-dimensional institutional flow analysis through money flow calculations, volume-weighted analysis, cumulative volume tracking, and phase detection. The indicator is designed for traders who understand that institutional money moves markets and that detecting whale footprints early provides significant trading advantages.
Why This Indicator Exists
This indicator addresses the need for systematic institutional flow analysis. By combining five distinct money flow methodologies with phase detection, it reveals:
Chaikin Money Flow (CMF): Measures buying/selling pressure based on close position within range
Money Flow Index (MFI): Volume-weighted RSI showing money flow strength
On-Balance Volume (OBV): Cumulative volume indicator tracking institutional accumulation/distribution
VWAP Analysis: Volume-weighted average price with deviation bands
Accumulation/Distribution (A/D): Cumulative indicator measuring money flow into/out of security
Institutional Flow Index: Composite measure combining all five components
Phase Detection: Classifies market as Strong Accumulation, Accumulation, Neutral, Distribution, or Strong Distribution
Smart Money Divergence: Detects when price and flow move in opposite directions
Core Components Explained
1. Chaikin Money Flow (CMF)
CMF measures the relationship between close position and volume:
Money Flow Volume: ((Close - Low) - (High - Close)) / (High - Low) × Volume
CMF Calculation: Sum of MFV over period / Sum of volume over period
CMF Smoothing: 7-period EMA for noise reduction
Interpretation: CMF > 0 = buying pressure, CMF < 0 = selling pressure
CMF values above +0.1 indicate strong buying pressure, while values below -0.1 indicate strong selling pressure.
2. Money Flow Index (MFI)
MFI is a volume-weighted momentum indicator:
Typical Price: (High + Low + Close) / 3
Raw Money Flow: Typical Price × Volume
Positive Flow: Money flow when typical price rises
Negative Flow: Money flow when typical price falls
Money Ratio: Sum of positive flow / Sum of negative flow
MFI: 100 - (100 / (1 + Money Ratio))
MFI above 80 indicates overbought with high volume (potential distribution), while MFI below 20 indicates oversold with high volume (potential accumulation).
3. On-Balance Volume (OBV)
OBV tracks cumulative volume flow:
Calculation: Add volume on up days, subtract volume on down days
Cumulative: Running total from start of data
Normalization: Scaled to 0-100 range using 100-bar high/low
Zero-Centering: Subtract 50 for composite integration
Rising OBV with rising price confirms uptrend (accumulation). Falling OBV with rising price warns of distribution.
4. VWAP (Volume-Weighted Average Price)
VWAP calculates the average price weighted by volume:
Calculation: Sum(Typical Price × Volume) / Sum(Volume)
Daily Reset: VWAP resets at start of each trading day
Standard Deviation: Measures price dispersion from VWAP
Deviation Bands: VWAP ± (StdDev × Multiplier)
Price vs VWAP: Percentage distance from VWAP
Price above VWAP indicates bullish institutional positioning. Price below VWAP indicates bearish institutional positioning. Large deviations often mean-revert.
5. Accumulation/Distribution (A/D) Line
A/D measures cumulative money flow:
Money Flow Multiplier: ((Close - Low) - (High - Close)) / (High - Low)
Money Flow Volume: Multiplier × Volume
A/D Line: Cumulative sum of money flow volume
Smoothing: EMA smoothing (default 14) for trend identification
Normalization: Scaled to 0-100 range, then zero-centered
Rising A/D with rising price confirms accumulation. Falling A/D with rising price signals distribution (bearish divergence).
6. Institutional Flow Index Calculation
All five components are combined into a unified flow index:
Flow Index = (CMF × 50 + (MFI - 50) + (OBV - 50) + (A/D - 50)) / 4
This composite index ranges from approximately -50 to +50, with:
Flow Index > 30 = Strong institutional buying
Flow Index > 10 = Institutional buying
Flow Index -10 to +10 = Neutral/balanced
Flow Index < -10 = Institutional selling
Flow Index < -30 = Strong institutional selling
7. Phase Detection System
The indicator classifies institutional positioning into five phases:
Strong Accumulation (Phase 2): Flow Index > 30, CMF > 0.1, MFI > 50
Accumulation (Phase 1): Flow Index > 10, CMF > 0
Neutral (Phase 0): Flow Index between -10 and +10
Distribution (Phase -1): Flow Index < -10, CMF < 0
Strong Distribution (Phase -2): Flow Index < -30, CMF < -0.1, MFI < 50
Phase classification helps identify when institutions are actively positioning.
8. Smart Money Divergence Detection
Divergences occur when price and flow move in opposite directions:
Price Momentum: 14-period rate of change in price
Flow Momentum: 14-period rate of change in Flow Index
Bullish Divergence: Price falling (momentum < 0), Flow rising (momentum > 0)
Bearish Divergence: Price rising (momentum > 0), Flow falling (momentum < 0)
Smart money divergences indicate institutions positioning against current price trend, often preceding reversals.
9. Institutional Pressure Detection
The indicator identifies strong institutional buying/selling:
Buy Pressure: CMF > 0, MFI > 50, OBV > 50, Volume Surge
Sell Pressure: CMF < 0, MFI < 50, OBV < 50, Volume Surge
Volume Surge: Current volume > average volume × 2.25
Anti-Overlap: Minimum 25 bars between pressure signals
Institutional pressure with volume confirmation indicates significant whale activity.
10. Flow Velocity and Acceleration
The indicator tracks flow momentum:
Flow Velocity: Change in Flow Index (first derivative)
Flow Acceleration: Change in velocity (second derivative)
Accelerating flow indicates increasing institutional participation. Decelerating flow warns of waning institutional interest.
Visual Elements
Institutional Flow Line: Main line showing composite flow with phase-based coloring (green = accumulation, red = distribution, yellow = neutral)
Component Lines: Four thin lines showing CMF, MFI, OBV, and A/D (all normalized)
Zero Line: Horizontal line at zero
Threshold Lines: Dashed lines at +30 (strong accumulation), +10 (accumulation), -10 (distribution), -30 (strong distribution)
Zone Fills: Shaded areas above +30 (green) and below -30 (red)
Volume Surge Background: Purple background when volume surges occur
Smart Money Divergence Circles: Small circles marking divergence points
Institutional Pressure Triangles: Triangles marking strong buy/sell pressure
Flow Velocity Histogram: Shows rate of change in flow
Information Dashboard: Displays phase, flow index, CMF, MFI, OBV, A/D, volume ratio, price vs VWAP, flow velocity, and signal status
How to Use This Indicator
Step 1: Check Current Phase
Monitor the dashboard for institutional phase (Strong Accumulation, Accumulation, Neutral, Distribution, Strong Distribution).
Step 2: Analyze Flow Index
Flow Index > 20 = institutional buying, Flow Index < -20 = institutional selling. Trade in direction of institutional flow.
Step 3: Confirm with Components
Check CMF, MFI, OBV, and A/D for confirmation. All four positive = strongest accumulation signal.
Step 4: Monitor Volume Ratio
Volume surges (> 2x average) with positive flow confirm institutional buying. Volume surges with negative flow confirm institutional selling.
Step 5: Check Price vs VWAP
Price above VWAP with positive flow = bullish institutional positioning. Price below VWAP with negative flow = bearish institutional positioning.
Step 6: Watch for Smart Money Divergences
Divergences at extreme flow levels often precede reversals. Purple circles mark these critical points.
Step 7: Look for Institutional Pressure
Triangles mark strong institutional buy/sell pressure with volume confirmation. These are high-probability signals.
Best Practices
Trade in direction of institutional phase - don't fight whale positioning
Wait for Strong Accumulation/Distribution phases for highest conviction
Confirm flow signals with volume surges - flow without volume may be weak
Use smart money divergences as early reversal warnings
Monitor flow velocity - accelerating flow indicates increasing institutional participation
Combine with price action and support/resistance for entry timing
Be patient - institutional accumulation/distribution can take time
Use higher timeframe flow for stronger significance
Input Parameters
Chaikin Money Flow:
CMF Length: Period for CMF calculation (default: 20)
Money Flow Index:
MFI Length: Period for MFI calculation (default: 14)
MFI Overbought: Threshold for overbought (default: 80)
MFI Oversold: Threshold for oversold (default: 20)
Volume Configuration:
Volume MA Length: Period for average volume (default: 20)
Surge Threshold: Multiplier for volume surges (default: 2.0x)
Show Volume Profile: Toggle volume display (default: enabled)
VWAP Analysis:
VWAP Std Dev: Standard deviation multiplier (default: 2.0)
Accumulation/Distribution:
A/D Smoothing: EMA smoothing period (default: 14)
Phase Threshold: Threshold for phase classification (default: 0.5)
Visual Configuration:
Accumulation/Distribution/Neutral/Smart Money Colors: Customizable colors
Originality Statement
This indicator is original in its comprehensive institutional flow approach. While individual components (CMF, MFI, OBV, VWAP, A/D) are established concepts, this indicator is justified because:
It combines five distinct money flow methodologies into a unified institutional flow index
The phase detection system classifies institutional positioning systematically
Smart money divergence detection identifies when institutions position against price
Institutional pressure detection with volume confirmation reveals whale activity
Flow velocity and acceleration tracking predict institutional momentum changes
Integration of VWAP analysis provides institutional price positioning context
The comprehensive dashboard presents all institutional flow metrics simultaneously
Disclaimer
This indicator is provided for educational and informational purposes only. It is not financial advice. Trading involves substantial risk of loss. Institutional flow analysis does not guarantee profitable trades. Whale activity does not guarantee price direction. Always use proper risk management and never risk more than you can afford to lose.
-Made with passion by officialjackofalltrades Indicator
