OPEN-SOURCE SCRIPT
Aggiornato SuperTrend Cluster (Zeiierman)

█ Overview
SuperTrend Cluster (Zeiierman) is a weighted multi-SuperTrend regime indicator that combines 5 differently configured SuperTrend models into a single consensus view. Instead of relying on a single ATR length and a single factor, the script builds a cluster of fast, medium, and slow SuperTrend members, measures how strongly they agree, and then plots the dominant bullish or bearish regime as a weighted trend line. The result is a cleaner trend map built from internal SuperTrend agreement rather than a single trend line.

█ How It Works
For each bar, the script does 3 main things:
⚪ Build 5 SuperTrend members
Each member first smooths the source with the selected moving average type and length, then applies its own SuperTrend calculation using the chosen ATR Length and Factor.
That gives 5 outputs:
⚪ Measure weighted agreement
Each member contributes its assigned weight to either the bullish side or the bearish side.
The script sums:
Those are converted into:
So the final regime is based on weighted internal agreement rather than on a single member.
⚪ Filter through the Base SuperTrend
Even if the cluster is bullish or bearish enough, the selected Base SuperTrend must also align with that side before the final regime flips.
That means:
This keeps the final output more structured and avoids cluster flips that are not confirmed by the chosen anchor member.
█ How to Use
Use this for trend trading with SuperTrend.
The % shows how strong the trend is:
Use the weighted SuperTrend line as your guide:
Best trades happen when direction and score are both strong.

█ How to Read the Cluster Scores
Bull Cluster Score
Measures how much of the total weighted cluster is currently bullish.
Bear Cluster Score
Measures how much of the total weighted cluster is currently bearish.

█ Settings
-----------------
Disclaimer
The content provided in my scripts, indicators, ideas, algorithms, and systems is for educational and informational purposes only. It does not constitute financial advice, investment recommendations, or a solicitation to buy or sell any financial instruments. I will not accept liability for any loss or damage, including without limitation any loss of profit, which may arise directly or indirectly from the use of or reliance on such information.
All investments involve risk, and the past performance of a security, industry, sector, market, financial product, trading strategy, backtest, or individual's trading does not guarantee future results or returns. Investors are fully responsible for any investment decisions they make. Such decisions should be based solely on an evaluation of their financial circumstances, investment objectives, risk tolerance, and liquidity needs.
SuperTrend Cluster (Zeiierman) is a weighted multi-SuperTrend regime indicator that combines 5 differently configured SuperTrend models into a single consensus view. Instead of relying on a single ATR length and a single factor, the script builds a cluster of fast, medium, and slow SuperTrend members, measures how strongly they agree, and then plots the dominant bullish or bearish regime as a weighted trend line. The result is a cleaner trend map built from internal SuperTrend agreement rather than a single trend line.
█ How It Works
For each bar, the script does 3 main things:
⚪ Build 5 SuperTrend members
Each member first smooths the source with the selected moving average type and length, then applies its own SuperTrend calculation using the chosen ATR Length and Factor.
That gives 5 outputs:
- 5 direction states
- 5 active SuperTrend lines
⚪ Measure weighted agreement
Each member contributes its assigned weight to either the bullish side or the bearish side.
The script sums:
- Bullish cluster weight
- Bearish cluster weight
Those are converted into:
- Bull Cluster Score
- Bear Cluster Score
- Cluster Strength
So the final regime is based on weighted internal agreement rather than on a single member.
⚪ Filter through the Base SuperTrend
Even if the cluster is bullish or bearish enough, the selected Base SuperTrend must also align with that side before the final regime flips.
That means:
- A bullish cluster only becomes active if the base member is bullish
- A bearish cluster only becomes active if the base member is bearish
This keeps the final output more structured and avoids cluster flips that are not confirmed by the chosen anchor member.
█ How to Use
Use this for trend trading with SuperTrend.
- Bull Cluster → look for longs.
- Bear Cluster → look for shorts.
The % shows how strong the trend is:
- Higher % = stronger agreement
- Low % = weak/mixed market
Use the weighted SuperTrend line as your guide:
- Above it → bullish bias
- Below it → bearish bias
- Pullbacks to the line = potential entries
Best trades happen when direction and score are both strong.
█ How to Read the Cluster Scores
Bull Cluster Score
Measures how much of the total weighted cluster is currently bullish.
Bear Cluster Score
Measures how much of the total weighted cluster is currently bearish.
█ Settings
- Consensus Threshold — minimum weighted agreement required before the bullish or bearish cluster becomes valid.
- Base SuperTrend Index — selects which of the 5 members acts as the base reference for flip markers, label placement, and final alignment.
- ATR Length — controls how fast or slow the volatility band reacts.
- Factor — controls how far the SuperTrend line sits from the price.
- Smoothing — selects the moving average used before the SuperTrend is calculated.
- Length — controls how much smoothing is applied.
- Weight — controls that member’s influence inside the final weighted cluster.
Key effect:
Lower ATR Length + lower Factor = faster, more reactive member
Higher ATR Length + higher Factor = slower, more stable member
Higher Weight = greater impact on cluster direction
Higher Consensus Threshold = fewer but stronger regime flips
-----------------
Disclaimer
The content provided in my scripts, indicators, ideas, algorithms, and systems is for educational and informational purposes only. It does not constitute financial advice, investment recommendations, or a solicitation to buy or sell any financial instruments. I will not accept liability for any loss or damage, including without limitation any loss of profit, which may arise directly or indirectly from the use of or reliance on such information.
All investments involve risk, and the past performance of a security, industry, sector, market, financial product, trading strategy, backtest, or individual's trading does not guarantee future results or returns. Investors are fully responsible for any investment decisions they make. Such decisions should be based solely on an evaluation of their financial circumstances, investment objectives, risk tolerance, and liquidity needs.
Note di rilascio
Cloud AddedScript 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.
Access my indicators at: zeiierman.com
Join Our Free Discord: discord.gg/zeiiermantrading
Join Our Free Discord: discord.gg/zeiiermantrading
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.
Access my indicators at: zeiierman.com
Join Our Free Discord: discord.gg/zeiiermantrading
Join Our Free Discord: discord.gg/zeiiermantrading
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.