OPEN-SOURCE SCRIPT
Confluence Flow

Confluence Flow — A multi-layer confluence system combining EVWAP, Adaptive Pivots, Impulse Council & Smart Candles
Confluence Flow unifies five analytical layers — Regime, Momentum, Structure, Pattern, and Confidence — into one powerful overlay. Instead of scattered signals, you get a coherent market narrative through intelligent candle coloring, adaptive levels, and a clean dashboard.
─────────────────────────────────────────────
EVWAP (Exponential Volume Weighted Average Price)
─────────────────────────────────────────────
The heart of the regime filter. This EVWAP dynamically anchors to the most recent significant swing high or low and uses an adaptive half-life that responds to market volatility. Fast markets = faster reaction. Quiet markets = smoother response.
Includes ±1σ and ±2σ bands that clearly show fair value, premium/discount zones, and statistical extremes.
─────────────────────────────────────────────
Adaptive Pivots (S9)
─────────────────────────────────────────────
A next-level dynamic support/resistance system. Band width adapts intelligently using a Trend Quality Index (TQI) based on efficiency, volume, structure, and momentum alignment. High-quality trends get tighter bands. Chop gets wider bands to reduce whipsaws.
─────────────────────────────────────────────
Impulse Council (4-School Voting)
─────────────────────────────────────────────
Four independent schools vote on momentum:
• OBV Flow & Divergence
• Volume Delta (VWMA)
• Wyckoff Springs & Upthrusts
• EMA Confluence (9/21 + 55 filter)
Minimum 2 agreeing schools required for a valid signal.
─────────────────────────────────────────────
Smart Candles
─────────────────────────────────────────────
Candles are colored on a gradient from deep maroon (strong bear) to bright cyan (strong bull) based on the composite bias. Both body and wicks adapt, giving instant visual conviction.
─────────────────────────────────────────────
Pattern Recognition & High-Confidence RR Boxes
─────────────────────────────────────────────
Detects 20 classical patterns with strength scoring and regime alignment filtering. Patterns that conflict with the prevailing regime are automatically dimmed on the chart — keeping your focus on high-probability setups and filtering out counter-trend noise. When a strong pattern aligns with high TQI, strong displacement, and volume — a ★ High Confidence signal triggers automatic 1:2 RR boxes with smart stop placement.
─────────────────────────────────────────────
Dashboard
─────────────────────────────────────────────
Real-time overview of Bias, Council votes, S9 trend, EVWAP direction, and SMA trend.
─────────────────────────────────────────────
Best Used As
─────────────────────────────────────────────
A powerful confluence tool for day traders and swing traders on 5min to 4H timeframes. The strongest setups occur when EVWAP, S9, Council, and Smart Candle bias all align.
Settings default to "Patterns Only" so you can add it without changing your chart's original candle look — toggle to "Candles + Patterns" to enable the full Smart Candle gradient coloring.
Confluence Flow unifies five analytical layers — Regime, Momentum, Structure, Pattern, and Confidence — into one powerful overlay. Instead of scattered signals, you get a coherent market narrative through intelligent candle coloring, adaptive levels, and a clean dashboard.
─────────────────────────────────────────────
EVWAP (Exponential Volume Weighted Average Price)
─────────────────────────────────────────────
The heart of the regime filter. This EVWAP dynamically anchors to the most recent significant swing high or low and uses an adaptive half-life that responds to market volatility. Fast markets = faster reaction. Quiet markets = smoother response.
Includes ±1σ and ±2σ bands that clearly show fair value, premium/discount zones, and statistical extremes.
─────────────────────────────────────────────
Adaptive Pivots (S9)
─────────────────────────────────────────────
A next-level dynamic support/resistance system. Band width adapts intelligently using a Trend Quality Index (TQI) based on efficiency, volume, structure, and momentum alignment. High-quality trends get tighter bands. Chop gets wider bands to reduce whipsaws.
─────────────────────────────────────────────
Impulse Council (4-School Voting)
─────────────────────────────────────────────
Four independent schools vote on momentum:
• OBV Flow & Divergence
• Volume Delta (VWMA)
• Wyckoff Springs & Upthrusts
• EMA Confluence (9/21 + 55 filter)
Minimum 2 agreeing schools required for a valid signal.
─────────────────────────────────────────────
Smart Candles
─────────────────────────────────────────────
Candles are colored on a gradient from deep maroon (strong bear) to bright cyan (strong bull) based on the composite bias. Both body and wicks adapt, giving instant visual conviction.
─────────────────────────────────────────────
Pattern Recognition & High-Confidence RR Boxes
─────────────────────────────────────────────
Detects 20 classical patterns with strength scoring and regime alignment filtering. Patterns that conflict with the prevailing regime are automatically dimmed on the chart — keeping your focus on high-probability setups and filtering out counter-trend noise. When a strong pattern aligns with high TQI, strong displacement, and volume — a ★ High Confidence signal triggers automatic 1:2 RR boxes with smart stop placement.
─────────────────────────────────────────────
Dashboard
─────────────────────────────────────────────
Real-time overview of Bias, Council votes, S9 trend, EVWAP direction, and SMA trend.
─────────────────────────────────────────────
Best Used As
─────────────────────────────────────────────
A powerful confluence tool for day traders and swing traders on 5min to 4H timeframes. The strongest setups occur when EVWAP, S9, Council, and Smart Candle bias all align.
Settings default to "Patterns Only" so you can add it without changing your chart's original candle look — toggle to "Candles + Patterns" to enable the full Smart Candle gradient coloring.
Mã nguồn mở
Theo đúng tinh thần TradingView, tác giả của tập lệnh này đã công bố nó dưới dạng mã nguồn mở, để các nhà giao dịch có thể xem xét và xác minh chức năng. Chúc mừng tác giả! Mặc dù bạn có thể sử dụng miễn phí, hãy nhớ rằng việc công bố lại mã phải tuân theo Nội quy.
Thông báo miễn trừ trách nhiệm
Thông tin và các ấn phẩm này không nhằm mục đích, và không cấu thành, lời khuyên hoặc khuyến nghị về tài chính, đầu tư, giao dịch hay các loại khác do TradingView cung cấp hoặc xác nhận. Đọc thêm tại Điều khoản Sử dụng.
Mã nguồn mở
Theo đúng tinh thần TradingView, tác giả của tập lệnh này đã công bố nó dưới dạng mã nguồn mở, để các nhà giao dịch có thể xem xét và xác minh chức năng. Chúc mừng tác giả! Mặc dù bạn có thể sử dụng miễn phí, hãy nhớ rằng việc công bố lại mã phải tuân theo Nội quy.
Thông báo miễn trừ trách nhiệm
Thông tin và các ấn phẩm này không nhằm mục đích, và không cấu thành, lời khuyên hoặc khuyến nghị về tài chính, đầu tư, giao dịch hay các loại khác do TradingView cung cấp hoặc xác nhận. Đọc thêm tại Điều khoản Sử dụng.