Syndicate Confluence [JOAT]Syndicate Confluence
Introduction
Syndicate Confluence is an open-source overlay indicator that unifies three independent analytical engines into a single spatially organized visual system. Engine 1 is an adaptive Kalman filter with a Supertrend ratchet trail — it classifies the macro directional regime and generates a triple-glow neon trail on the chart. Engine 2 is an institutional order block zone mapper — it identifies swing-pivot order blocks, classifies them by trading session, and renders them as persistent box-based zones with session-colored borders and labeled displacement ratios. Engine 3 is an HMA pressure trail paired with a custom volume-weighted MFI — it classifies each bar into bull pressure, bear pressure, or neutral states.
The three-layer visual architecture ties all three engines together: an outer ATR cloud communicates the macro volatility context of the Kalman filter; a corridor fill between the Kalman Supertrend line and the HMA trail communicates whether both engines are aligned in the same direction; and a core gradient fill between the HMA trail and the candle mid-body communicates the intensity of the current pressure state. When all three layers are saturated in the same color, the confluence is at its strongest. When they are fragmented, the market is transitioning.
The highest-confidence signal — the starred HC Long or HC Short label — fires only when a trail flip, Kalman direction, and order block proximity all coincide simultaneously. This triple-engine intersection is the indicator's primary setup, and the remaining visual layers exist to help traders evaluate whether conditions are building toward or away from that state.
Core Concepts
1. Adaptive Kalman Regime Engine
The Kalman filter maintains a running estimate and error variance. Each bar, the gain is computed as err / (err + noise), where noise = alpha * period. The estimate is updated toward close proportional to the gain, and the error variance self-adjusts — expanding when prediction is poor (high responsiveness), contracting when the filter tracks well (high smoothness). A Supertrend ratchet is applied to the Kalman value: ATR-scaled upper and lower bands drift with a direction-persistence rule — the upper band can only fall, the lower band can only rise. Direction flips when the Kalman value closes through the active band. Applying the ratchet to a Kalman-smoothed price removes the micro-fluctuations that cause excessive flips in price-based systems.
2. Session-Colored Order Block Zones
When a swing pivot low is confirmed, the indicator searches back for the last bearish candle before the pivot. If the subsequent displacement exceeds ATR * dispMult, that candle becomes a bull order block. The zone is drawn at the candle's midpoint with ATR-scaled height. Zone border color is determined by the birth session: London = blue (#60a5fa), NY = pink (#f472b6), Asia = green (#34d399). The label shows type, session, displacement ratio (e.g., "▲ BULL LON 1.8x 5030.41"), and updates its x-position every bar to track the right edge of the chart. Border thickness scales with displacement ratio — zones from 2x+ displacement moves get thicker borders.
3. HMA Pressure Trail and Volume-Weighted MFI
An HMA ratchet trail determines directional commitment. The custom volume-weighted MFI sums volume * hlc3 on rising bars (positive flow) and volume * hlc3 on falling bars (negative flow), normalizes with the RSI formula, and smooths with an HMA. Bull pressure is active when the trail is bullish AND the smoothed MFI exceeds the bull threshold. Bear pressure when trail is bearish AND MFI below the bear threshold. The pressure strength percentage tracks the rolling 50-bar proportion of bars spent in an active pressure state.
4. Three-Layer Visual Architecture
Outer ATR Cloud: k_val ± cloudMult * ATR filled with directional color at near-full transparency — communicates macro volatility context and Kalman regime at a glance
Corridor Fill: The zone between the Kalman Supertrend line and the HMA trail — fills cyan when both agree bullish, rose when both agree bearish, neutral gray when diverging. When the corridor narrows and both trails converge in the same direction, confluence is building
Core Pressure Gradient: Between the HMA trail and the candle mid-body — transparent at the HMA, saturated at the body, colored by pressure state. Deep color indicates active, volume-backed directional pressure
5. Signal Hierarchy
★ HC Long / ★ HC Short: Trail flip + Kalman direction + OB proximity — the highest-confidence setup. Starred label with colored background
Trail flip arrows: Triangle up/down when trail flips in Kalman direction with MFI above/below 50 — standard entry signal
MFI cross-50 triangles: Small triangles on the Kalman trail when MFI crosses the 50 level in the trail direction — momentum regime shift marker
TP labels: Fire when MFI reaches overbought or oversold extremes in the trail direction
K▲ / K▼ labels: Mark the exact bar where the Kalman Supertrend direction flips
Squeeze diamond / circle: Diamond on squeeze start, circle on squeeze release
Volume impulse labels: "1.8x vol" label on high-volume directional bars above the configured multiple
Proximity diamonds: Fire on the first bar where price enters the OB proximity buffer
Features
Adaptive Kalman Filter: Self-calibrating gain updates noise estimate each bar — faster during impulses, smoother during consolidation
Supertrend Ratchet on Kalman: Direction-persistent bands applied to the filtered price — stable, low-whipsaw regime signal
Triple-Layer Kalman Glow: Widths 9/5/2 with decreasing transparency create a neon halo effect on the Supertrend trail
Outer ATR Volatility Cloud: Wide envelope around the Kalman value, gradient-filled by regime direction
Corridor Fill (Kalman ST ↔ HMA Trail): The alignment region between both trails — fills directionally when confluent, neutral when diverging
Core Pressure Gradient Fill: HMA-to-mid-body gradient colored by active pressure state
Session-Colored OB Zone Borders: London blue / NY pink / Asia green borders encode session context directly in the zone visual
OB Zone Labels: Type, session, displacement ratio, and price level — updated live at right chart edge
★ HC Long / HC Short Labels: Triple-confluence signal fired when trail flip, Kalman direction, and OB proximity align
Trail Flip Arrows: Triangle up/down entry signals when trail flips in Kalman direction with MFI midline confirmation
MFI Cross-50 Markers: Small triangles on the trail at momentum regime shifts
TP Overbought/Oversold Labels: Fire at MFI extremes in trail direction
K▲/K▼ Kalman Flip Labels: Pinpoint the exact bar of each Kalman regime change
Squeeze Detection: Diamond on Kalman band compression start, circle on release
K-Velocity Dots: Brightness-scaled dots on the trail communicating momentum acceleration
Volume Impulse Labels: Ratio labels on high-volume directional bars
Proximity Diamonds: Alert when price first enters the OB proximity buffer
Regime Transition Circles: Fire at every Kalman regime change on the trail line
Gradient Bar Coloring: Saturates with MFI intensity when Kalman and trail agree, fades to neutral otherwise
13-Row Dashboard: K-Regime, Trail, Pressure state, Zone proximity, Confluence, MFI, P-Strength %, Squeeze state, Band Width, Trend Bars, K-Velocity %, ATR
9 Alertconditions: Long/short signals, HC signals, TP signals, squeeze release, Kalman flips
Input Parameters
Regime Engine:
Kalman Alpha: Base noise smoothing — lower = smoother, more lag (default 0.02)
Kalman Beta: Error variance recovery rate (default 0.10)
Kalman Period: Gain magnitude scaler (default 50)
ST Factor: ATR multiplier for Supertrend bands on Kalman (default 1.5)
ST ATR Length: ATR lookback for band calculation (default 10)
Cloud ATR Width: Outer cloud multiplier (default 2.5)
Squeeze Threshold %: Band width below this % of SMA triggers squeeze (default 80%)
Zone Engine:
Swing Length: Pivot confirmation lookback (default 5)
OB Lookback: Bars searched for qualifying order block candle (default 20)
Displacement ATR Mult: Minimum move to validate an OB (default 0.8)
Zone ATR Width: Zone height as ATR fraction (default 0.75)
Max Active OBs / Side: Oldest zones trimmed beyond this limit (default 8)
Proximity Buffer (ATR): Approach detection radius (default 1.5)
Momentum Engine:
MFI Length: Volume-weighted money flow lookback (default 14)
MFI Smooth: HMA smoothing on raw MFI (default 5)
Trail HMA Length: HMA period for pressure trail (default 14)
Trail ATR Mult: Trail band width (default 1.5)
MFI Bull/Bear Thresholds: Pressure activation levels (default 58/42)
Signals:
TP Overbought / Oversold: MFI extremes for TP labels (default 78/22)
Impulse Vol Multiplier: Volume multiple for impulse labels (default 1.5)
How to Use This Indicator
HC Signal Setup:
The ★ HC Long / HC Short label is the primary setup. It fires when the trail flips in the Kalman direction while price is within proximity of an active order block. Enter on the labeled bar. Trail your stop at the HMA trail line. Look for the TP label or pressure state deactivation as an exit reference.
Corridor Fill as Trend Quality Gauge:
When the corridor between the Kalman trail and HMA trail is narrow and saturated with color, both trend systems are locked in the same direction — this is the highest-confidence trending condition. When the corridor is wide or neutral gray, the two systems are diverging — reduce size or wait for re-alignment.
Reading the Signal Hierarchy:
Start with the Kalman regime (K▲/K▼ label and trail color) for macro direction. Add the trail flip arrow for timing. Confirm with MFI cross-50 triangle. Check if an OB zone is nearby for HC bonus. Exit on TP label or when the corridor fill turns neutral.
Squeeze Breakout Setup:
When the golden diamond squeeze marker fires, the Kalman bands are compressing. Wait for the circle squeeze release marker. If the trail is aligned with the Kalman regime at release, the first trail flip after the release is a high-quality breakout entry.
Indicator Limitations
Order block detection requires a confirmed swing pivot, which in Pine Script v6 is offset by swingLen bars — zones are created after the fact relative to the actual pivot candle
The corridor fill between the Kalman trail and HMA trail can produce wide fills on instruments with large spread between the two systems — this is informational, not a defect, but may visually dominate the chart on some timeframes
HC signals require all three conditions simultaneously. On instruments with sparse order block formation, HC signals may be infrequent compared to standard trail flip arrows
The volume-weighted MFI requires volume data. On instruments with unreliable volume reporting, the pressure engine may be less meaningful than on equities or futures
Squeeze detection uses 80% of the 20-bar SMA as the threshold. On instruments that are persistently low-volatility, this threshold may trigger continuously — adjust the squeeze percentage parameter upward for such instruments
Originality Statement
This indicator is original in its three-engine confluence architecture, the corridor fill system between the Kalman Supertrend and HMA trail, and the session-colored OB zone integration with the starred HC signal. The publication is justified because:
The corridor fill between the Kalman Supertrend trail and the HMA pressure trail creates a novel visual quality gauge — the width and saturation of the corridor communicates alignment strength between macro regime and near-term pressure in a single spatial layer
Session-colored OB zone borders encode institutional session context directly into the zone visual without requiring a separate session indicator, making the chart self-contained for context-aware zone evaluation
The HC signal requires three independent engine conditions to coincide: Kalman regime direction, trail flip timing, and OB proximity. This triple-gate structure is a more restrictive and higher-quality filter than any two-condition confluence approach
The three-layer visual architecture (outer cloud, corridor fill, core pressure gradient) creates a spatially organized picture where the distance between layers communicates regime context, trail alignment, and pressure intensity at different spatial scales simultaneously
The K-velocity dot brightness system embeds momentum acceleration directly into the trail visualization without requiring a separate panel — the trail itself communicates direction, state, and rate of change simultaneously
Disclaimer
This indicator is provided for educational and informational purposes only and does not constitute financial advice or a recommendation to buy or sell any financial instrument. Past performance of any pattern or signal does not guarantee future results. All trading involves substantial risk. Always use proper risk management and conduct your own independent analysis.
— Made with passion by officialjackofalltrades
อินดิเคเตอร์ Pine Script®






















