OPEN-SOURCE SCRIPT
Aggiornato Confluence Levels Pro

Confluence Levels Pro is a multi-timeframe market-structure indicator designed to identify meaningful Support and Resistance levels while adding higher-timeframe reference levels and Premium/Discount context in one compact framework.
The objective is not to predict where price must reverse. Instead, the indicator highlights areas where price has demonstrated structural significance so traders can focus their analysis, confirmation and risk management around technically relevant locations.
Adaptive Multi-Timeframe Support & Resistance
The S/R engine derives levels from confirmed swing structure and can operate across up to six independently configurable timeframe slots.
Each slot can be enabled or disabled and assigned its own timeframe. If all timeframe slots are disabled, the indicator automatically falls back to the current chart timeframe.
Swing sensitivity adapts to market volatility using ATR-based volatility regimes. This allows the engine to become more selective during high-volatility conditions and more responsive when volatility contracts.
Nearby structural levels can be clustered into a single confluence level rather than producing multiple nearly identical lines. Multi-timeframe agreement, structural reactions, higher-timeframe significance, volume behaviour, freshness and confirmed role reversals contribute to the internal strength ranking.
Intelligent Level Management
The indicator does not permanently discard a valid level simply because it is temporarily far from price.
A larger internal S/R pool is maintained while only the most relevant Support and Resistance levels are displayed. Hidden levels can automatically become visible again if price approaches them or their relative importance increases.
A configurable minimum separation filter also prevents multiple nearby S/R lines from overlapping on the chart.
Support and Resistance lines are displayed as clean 1-pixel horizontal levels to keep the chart compact.
S/R Strength Score
Displayed S/R strength is a relative quality score from 0–100, not a probability of reversal.
The score considers factors including:
A higher score means the level has stronger supporting evidence within the indicator's framework. It does not mean price has the same percentage probability of reversing there.
Breaks and Role Reversal
A level is not automatically converted from Support to Resistance, or vice versa, simply because price trades through it.
Breaks require close-based confirmation with an ATR-adjusted tolerance. When role reversal is enabled, a broken level must subsequently be retested from the opposite side before it is confirmed as a flipped S/R level.
This helps reduce premature Support-to-Resistance and Resistance-to-Support classifications.
Previous Highs and Lows
The indicator also provides important objective higher-timeframe reference levels:
When levels overlap within the selected tolerance, their labels can be combined to highlight higher-timeframe confluence while each underlying price level remains anchored to its actual value.
Unsupported lower-timeframe reference levels are automatically hidden when the chart timeframe is too high to reconstruct them reliably.
Premium / Discount Context
The Premium/Discount module provides location context within a selected structural range:
The range can be calculated from either the current chart structure or a user-selected timeframe.
Two selected-timeframe modes are available:
Confirmed HTF uses the last completed higher-timeframe state for stable analysis.
Developing HTF follows the currently forming higher-timeframe structure and therefore may change until that higher-timeframe candle closes.
If the selected Premium/Discount timeframe is lower than the chart timeframe, the module is safely hidden rather than displaying incomplete lower-timeframe information. The main S/R engine and previous high/low levels remain operational.
Alerts
Optional alerts are available for:
Typical Workflow
A practical way to use the indicator is:
Repainting / Data Behaviour
The Adaptive MTF Support & Resistance engine uses confirmed higher-timeframe structural data for level creation.
Previous Daily, Weekly and Monthly levels are based on completed periods.
The default Confirmed HTF Premium/Discount mode uses completed higher-timeframe information.
The optional Developing HTF Premium/Discount mode updates during the active higher-timeframe candle and may change until that candle closes. This behaviour is intentional and is provided for traders who want developing context.
Why These Modules Are Combined
The three components address different parts of the same market-location problem:
Adaptive MTF S/R identifies structurally important reaction levels.
Previous D/W/M highs and lows provide objective liquidity and reference levels.
Premium/Discount provides positional context within the broader structural range.
Used together, they provide a structured view of where price is, which levels matter nearby, and where confluence exists without turning the indicator into an entry-signal system.
Important
This indicator is a technical-analysis tool and does not guarantee future price behaviour. Support and Resistance can fail, break or be traded through. The strength score represents relative structural quality within the indicator's model and should not be interpreted as a statistical win rate or reversal probability.
The objective is not to predict where price must reverse. Instead, the indicator highlights areas where price has demonstrated structural significance so traders can focus their analysis, confirmation and risk management around technically relevant locations.
Adaptive Multi-Timeframe Support & Resistance
The S/R engine derives levels from confirmed swing structure and can operate across up to six independently configurable timeframe slots.
Each slot can be enabled or disabled and assigned its own timeframe. If all timeframe slots are disabled, the indicator automatically falls back to the current chart timeframe.
Swing sensitivity adapts to market volatility using ATR-based volatility regimes. This allows the engine to become more selective during high-volatility conditions and more responsive when volatility contracts.
Nearby structural levels can be clustered into a single confluence level rather than producing multiple nearly identical lines. Multi-timeframe agreement, structural reactions, higher-timeframe significance, volume behaviour, freshness and confirmed role reversals contribute to the internal strength ranking.
Intelligent Level Management
The indicator does not permanently discard a valid level simply because it is temporarily far from price.
A larger internal S/R pool is maintained while only the most relevant Support and Resistance levels are displayed. Hidden levels can automatically become visible again if price approaches them or their relative importance increases.
A configurable minimum separation filter also prevents multiple nearby S/R lines from overlapping on the chart.
Support and Resistance lines are displayed as clean 1-pixel horizontal levels to keep the chart compact.
S/R Strength Score
Displayed S/R strength is a relative quality score from 0–100, not a probability of reversal.
The score considers factors including:
- Structural validation and repeated swing evidence
- Independent price reactions
- Multi-timeframe confluence
- Higher-timeframe significance
- Reaction quality
- Volume confirmation
- Level freshness and age
- Confirmed Support/Resistance role reversal
A higher score means the level has stronger supporting evidence within the indicator's framework. It does not mean price has the same percentage probability of reversing there.
Breaks and Role Reversal
A level is not automatically converted from Support to Resistance, or vice versa, simply because price trades through it.
Breaks require close-based confirmation with an ATR-adjusted tolerance. When role reversal is enabled, a broken level must subsequently be retested from the opposite side before it is confirmed as a flipped S/R level.
This helps reduce premature Support-to-Resistance and Resistance-to-Support classifications.
Previous Highs and Lows
The indicator also provides important objective higher-timeframe reference levels:
- PDH / PDL — Previous Day High / Low
- PWH / PWL — Previous Week High / Low
- PMH / PML — Previous Month High / Low
When levels overlap within the selected tolerance, their labels can be combined to highlight higher-timeframe confluence while each underlying price level remains anchored to its actual value.
Unsupported lower-timeframe reference levels are automatically hidden when the chart timeframe is too high to reconstruct them reliably.
Premium / Discount Context
The Premium/Discount module provides location context within a selected structural range:
- Premium — upper portion of the range
- Equilibrium — central balance area
- Discount — lower portion of the range
The range can be calculated from either the current chart structure or a user-selected timeframe.
Two selected-timeframe modes are available:
Confirmed HTF uses the last completed higher-timeframe state for stable analysis.
Developing HTF follows the currently forming higher-timeframe structure and therefore may change until that higher-timeframe candle closes.
If the selected Premium/Discount timeframe is lower than the chart timeframe, the module is safely hidden rather than displaying incomplete lower-timeframe information. The main S/R engine and previous high/low levels remain operational.
Alerts
Optional alerts are available for:
- New Support / Resistance formation
- Confirmed S/R break
- Confirmed Support / Resistance role reversal
Typical Workflow
A practical way to use the indicator is:
- Location — identify nearby MTF Support/Resistance and previous D/W/M levels.
- Context — evaluate whether price is trading in Premium, Discount or around Equilibrium.
- Confluence — give additional attention to levels supported by multiple timeframes or overlapping higher-timeframe references.
- Confirmation — use your preferred execution methodology such as rejection, liquidity sweep, displacement, structure shift, candlestick confirmation or volume behaviour.
- Risk Management — use S/R as a decision location rather than assuming every touch must produce a reversal.
Repainting / Data Behaviour
The Adaptive MTF Support & Resistance engine uses confirmed higher-timeframe structural data for level creation.
Previous Daily, Weekly and Monthly levels are based on completed periods.
The default Confirmed HTF Premium/Discount mode uses completed higher-timeframe information.
The optional Developing HTF Premium/Discount mode updates during the active higher-timeframe candle and may change until that candle closes. This behaviour is intentional and is provided for traders who want developing context.
Why These Modules Are Combined
The three components address different parts of the same market-location problem:
Adaptive MTF S/R identifies structurally important reaction levels.
Previous D/W/M highs and lows provide objective liquidity and reference levels.
Premium/Discount provides positional context within the broader structural range.
Used together, they provide a structured view of where price is, which levels matter nearby, and where confluence exists without turning the indicator into an entry-signal system.
Important
This indicator is a technical-analysis tool and does not guarantee future price behaviour. Support and Resistance can fail, break or be traded through. The strength score represents relative structural quality within the indicator's model and should not be interpreted as a statistical win rate or reversal probability.
Note di rilascio
The zones now get their alpha from two integer sliders instead of the colour picker. In Settings → Inputs → 11 • Premium & Discount Logic, below the three colours:Zone Fill Opacity % — default 15. Drives the Premium/EQ/Discount box fills. 0 = invisible, 100 = solid.
Zone Label Opacity % — default 50. Drives the "Premium" / "EQ · PREMIUM" / "Discount" text, kept separate so labels stay readable at a light fill.
Script open-source
Nello spirito di TradingView, l'autore di questo script lo ha reso open source, in modo che i trader possano esaminarne e verificarne la funzionalità. Complimenti all'autore! Sebbene sia possibile utilizzarlo gratuitamente, ricordiamo che la ripubblicazione del codice è soggetta al nostro Regolamento.
Declinazione di responsabilità
Le informazioni e le pubblicazioni non sono intese come, e non costituiscono, consulenza o raccomandazioni finanziarie, di investimento, di trading o di altro tipo fornite o approvate da TradingView. Per ulteriori informazioni, consultare i Termini di utilizzo.
Script open-source
Nello spirito di TradingView, l'autore di questo script lo ha reso open source, in modo che i trader possano esaminarne e verificarne la funzionalità. Complimenti all'autore! Sebbene sia possibile utilizzarlo gratuitamente, ricordiamo che la ripubblicazione del codice è soggetta al nostro Regolamento.
Declinazione di responsabilità
Le informazioni e le pubblicazioni non sono intese come, e non costituiscono, consulenza o raccomandazioni finanziarie, di investimento, di trading o di altro tipo fornite o approvate da TradingView. Per ulteriori informazioni, consultare i Termini di utilizzo.