OPEN-SOURCE SCRIPT
Multi Anchor Confluence Engine

A price-chart ribbon indicator that lets you choose how the trend anchor and its surrounding envelope are calculated, while a 16-instrument, 4-benchmark cross-asset engine determines how much to trust what's showing — via a Signal Strength score that controls the ribbon's color, opacity, and width in real time.
How it works
The core visual is a single anchor line with a multi-layer gradient ribbon around it, plus optional lean-colored candles. Two independent dropdowns control the shape of that visual:
Anchor Mode — 11 selectable algorithms for the centerline itself: Session VWAP, KNN Trend (nearest-neighbor smoothed regression), Dynamic Flow Ribbons' adaptive trailing band, Hull MA, Twin Range Filter, Ichimoku Kijun, a long EMA trend, a momentum-scaled "Quantum Field" center, a harmonic RMA baseline, a Wilder's-ATR chandelier trail, and a session-adaptive SuperTrend whose multiplier reacts to how current volatility compares to the prior session's.
Envelope Mode — 9 selectable algorithms for the band shape around that anchor: statistical standard deviation, K-means price clustering, ATR deviation bands, Ichimoku's Kumo cloud, a momentum-scaled amplitude band, Donchian channel, prior-day high/low, a dual-timeframe auction corridor, and a classic Keltner Channel.
Underneath, 16 futures/instruments (indices, metals, energy, crypto, agriculturals, and volatility) are each scored for relative strength against a user-weighted blend of four macro benchmarks (equity index, dollar index, and two Treasury yields). Two outputs from that engine feed back into the ribbon:
Composite — the net bullish/bearish lean across all enabled instruments, which sets the ribbon and candle color direction.
Confluence — what fraction of instruments are simultaneously reading a strong signal, blended with Composite magnitude into a single Signal Strength score. Low strength renders as a faded, wider ribbon (low conviction — don't over-read it); high strength renders as vivid and tighter (broad agreement across markets).
Every one of the 20 algorithms has its own dedicated, clearly labeled settings group, so tuning one doesn't require hunting through unrelated options.
Settings overview
Display: text scale, dashboard toggle
Ribbon: colors, layer count, dynamic width/layer behavior
Benchmark 1–4: symbol, price source, and blend weight for each macro benchmark
Anchor: one settings group per algorithm (11 total)
Envelope: one settings group per algorithm (9 total)
Instruments: enable, symbol, price source, and weight for each of the 16 tracked markets
Notes
This is a discretionary confluence tool, not a signal generator — it's designed to help you gauge whether current price action is broadly corroborated across markets, not to produce buy/sell calls on its own.
Running many instruments and algorithms simultaneously is computationally heavy; if you hit Pine's memory limit, reducing the number of enabled instruments is the most direct fix.
Default symbols for a few of the 16 tracked instruments are best-guess placeholders — verify they match what you intend to track before relying on the readings.
Credits
This indicator adapts concepts and, in places, code structure from several publicly shared scripts. With thanks to:
LuxAlgo — AI Channels (K-means clustering envelope), CC BY-NC-SA 4.0
BigBeluga — Dynamic Flow Ribbons (adaptive trailing band, iridescent ribbon rendering), CC BY-NC-SA 4.0
Zeiierman — AI Trend Navigator (KNN nearest-neighbor trend line)
J. Ehlers / PineCoders — SuperSmoother filter concept
BCeyhan / Hassonya — Hull MA system
The Twin Range Filter, Blackflag FTS, HAFT Acceleration, Ichimoku [LucF], VIX Bars, UCS Snapback, Foundry Range Ledger, Sequences of Fibonacci, ScalpMaster Pro, CSVWAP, and CoffeeShopCrypto Supertrend Liquidity Engine authors, whose published concepts informed individual anchor/envelope options.
How it works
The core visual is a single anchor line with a multi-layer gradient ribbon around it, plus optional lean-colored candles. Two independent dropdowns control the shape of that visual:
Anchor Mode — 11 selectable algorithms for the centerline itself: Session VWAP, KNN Trend (nearest-neighbor smoothed regression), Dynamic Flow Ribbons' adaptive trailing band, Hull MA, Twin Range Filter, Ichimoku Kijun, a long EMA trend, a momentum-scaled "Quantum Field" center, a harmonic RMA baseline, a Wilder's-ATR chandelier trail, and a session-adaptive SuperTrend whose multiplier reacts to how current volatility compares to the prior session's.
Envelope Mode — 9 selectable algorithms for the band shape around that anchor: statistical standard deviation, K-means price clustering, ATR deviation bands, Ichimoku's Kumo cloud, a momentum-scaled amplitude band, Donchian channel, prior-day high/low, a dual-timeframe auction corridor, and a classic Keltner Channel.
Underneath, 16 futures/instruments (indices, metals, energy, crypto, agriculturals, and volatility) are each scored for relative strength against a user-weighted blend of four macro benchmarks (equity index, dollar index, and two Treasury yields). Two outputs from that engine feed back into the ribbon:
Composite — the net bullish/bearish lean across all enabled instruments, which sets the ribbon and candle color direction.
Confluence — what fraction of instruments are simultaneously reading a strong signal, blended with Composite magnitude into a single Signal Strength score. Low strength renders as a faded, wider ribbon (low conviction — don't over-read it); high strength renders as vivid and tighter (broad agreement across markets).
Every one of the 20 algorithms has its own dedicated, clearly labeled settings group, so tuning one doesn't require hunting through unrelated options.
Settings overview
Display: text scale, dashboard toggle
Ribbon: colors, layer count, dynamic width/layer behavior
Benchmark 1–4: symbol, price source, and blend weight for each macro benchmark
Anchor: one settings group per algorithm (11 total)
Envelope: one settings group per algorithm (9 total)
Instruments: enable, symbol, price source, and weight for each of the 16 tracked markets
Notes
This is a discretionary confluence tool, not a signal generator — it's designed to help you gauge whether current price action is broadly corroborated across markets, not to produce buy/sell calls on its own.
Running many instruments and algorithms simultaneously is computationally heavy; if you hit Pine's memory limit, reducing the number of enabled instruments is the most direct fix.
Default symbols for a few of the 16 tracked instruments are best-guess placeholders — verify they match what you intend to track before relying on the readings.
Credits
This indicator adapts concepts and, in places, code structure from several publicly shared scripts. With thanks to:
LuxAlgo — AI Channels (K-means clustering envelope), CC BY-NC-SA 4.0
BigBeluga — Dynamic Flow Ribbons (adaptive trailing band, iridescent ribbon rendering), CC BY-NC-SA 4.0
Zeiierman — AI Trend Navigator (KNN nearest-neighbor trend line)
J. Ehlers / PineCoders — SuperSmoother filter concept
BCeyhan / Hassonya — Hull MA system
The Twin Range Filter, Blackflag FTS, HAFT Acceleration, Ichimoku [LucF], VIX Bars, UCS Snapback, Foundry Range Ledger, Sequences of Fibonacci, ScalpMaster Pro, CSVWAP, and CoffeeShopCrypto Supertrend Liquidity Engine authors, whose published concepts informed individual anchor/envelope options.
Script de código abierto
Fiel al espíritu de TradingView, el creador de este script lo ha convertido en código abierto, para que los traders puedan revisar y verificar su funcionalidad. ¡Enhorabuena al autor! Aunque puede utilizarlo de forma gratuita, recuerde que cualquier republicación del código está sujeta a nuestras Normas internas.
Exención de responsabilidad
La información y las publicaciones no constituyen, ni deben considerarse como, asesoramiento o recomendaciones financieras, de inversión, de trading u otro tipo, proporcionadas o respaldadas por TradingView. Obtenga más información en Condiciones de uso.
Script de código abierto
Fiel al espíritu de TradingView, el creador de este script lo ha convertido en código abierto, para que los traders puedan revisar y verificar su funcionalidad. ¡Enhorabuena al autor! Aunque puede utilizarlo de forma gratuita, recuerde que cualquier republicación del código está sujeta a nuestras Normas internas.
Exención de responsabilidad
La información y las publicaciones no constituyen, ni deben considerarse como, asesoramiento o recomendaciones financieras, de inversión, de trading u otro tipo, proporcionadas o respaldadas por TradingView. Obtenga más información en Condiciones de uso.