OPEN-SOURCE SCRIPT
SuperTrend AI + PVSRA Full Dashboard

I tried to combine various indicators already created in a single version that can also guarantee a certain customization on colors, intensity of tables, etc. etc. The functioning, the operation is similar to the previous ones, I won't go into detail, at most take a look at the previous versions.
1. The "AI" Component: Multi-SuperTrend Clustering
Instead of using a single SuperTrend with a fixed multiplier, this script:
Simultaneously runs multiple SuperTrends with different sensitivities (multipliers).
Evaluates Performance: It tracks which multiplier would have been most profitable in recent bars.
K-Means Clustering: It uses an AI algorithm to group these multipliers into "Best," "Average," and "Worst" clusters.
Adaptive Trailing Stop: It automatically selects the "Best" multiplier to plot the AI Trailing Stop line on your chart, making it more responsive to changing market volatility than a standard indicator.
2. PVSRA Logic (Institutional Volumes)
PVSRA stands for Price Volume Support Resistance Analysis. The script re-colors candles based on volume intensity:
Climax Bull (Bright Green): Extremely high volume on a bullish candle. Usually indicates institutional buying or a trend climax.
Climax Bear (Magenta/Purple): Extremely high volume on a bearish candle. Usually indicates institutional selling or a panic bottom.
Rising (Grey/Silver): Above-average volume, showing increasing interest.
3. The "Super Confluence" Signal
This is the "Golden Signal" of the script. It triggers a BUY or SELL label only when several conditions align:
AI Trend Switch: The AI Trailing Stop flips direction.
SMA 20 Cross: The AI line crosses the 20-period Simple Moving Average.
Volume Confirmation: A PVSRA Climax or Rising volume must occur on that specific bar.
Directional Alignment: The candle color must match the trend direction.
4. Summary Dashboard (Top Right)
The dashboard provides a "Quick Glance" at the market structure:
AI Trend: Shows if the machine learning model is currently Bullish or Bearish.
PVSRA Vol: Identifies the current volume signature (Normal vs. Climax).
SMA 20/50: Shows medium-term momentum (Bullish if 20 > 50).
Trend 200: Shows the macro trend. ABOVE means long-term bullish; BELOW means long-term bearish.
How to Trade with This Script
Signal Strategy
"SUPER CONFLUENCE BUY" Look for entries. High probability if Trend 200 is "ABOVE".
"SUPER CONFLUENCE SELL" Look for shorts. High probability if Trend 200 is "BELOW".
Magenta/Green Candles Caution: These are "Stop Hunts" or "Institutional Entries." Do not
trade against these candles without a clear reversal pattern.
Technical Tip
The variable target_f is the "AI-optimized multiplier." If you see this value changing frequently in the dashboard, it means the market is volatile, and the AI is struggling to find a stable trend. If it stays consistent, the trend is likely solid.
Thanks everyone and happy trading
1. The "AI" Component: Multi-SuperTrend Clustering
Instead of using a single SuperTrend with a fixed multiplier, this script:
Simultaneously runs multiple SuperTrends with different sensitivities (multipliers).
Evaluates Performance: It tracks which multiplier would have been most profitable in recent bars.
K-Means Clustering: It uses an AI algorithm to group these multipliers into "Best," "Average," and "Worst" clusters.
Adaptive Trailing Stop: It automatically selects the "Best" multiplier to plot the AI Trailing Stop line on your chart, making it more responsive to changing market volatility than a standard indicator.
2. PVSRA Logic (Institutional Volumes)
PVSRA stands for Price Volume Support Resistance Analysis. The script re-colors candles based on volume intensity:
Climax Bull (Bright Green): Extremely high volume on a bullish candle. Usually indicates institutional buying or a trend climax.
Climax Bear (Magenta/Purple): Extremely high volume on a bearish candle. Usually indicates institutional selling or a panic bottom.
Rising (Grey/Silver): Above-average volume, showing increasing interest.
3. The "Super Confluence" Signal
This is the "Golden Signal" of the script. It triggers a BUY or SELL label only when several conditions align:
AI Trend Switch: The AI Trailing Stop flips direction.
SMA 20 Cross: The AI line crosses the 20-period Simple Moving Average.
Volume Confirmation: A PVSRA Climax or Rising volume must occur on that specific bar.
Directional Alignment: The candle color must match the trend direction.
4. Summary Dashboard (Top Right)
The dashboard provides a "Quick Glance" at the market structure:
AI Trend: Shows if the machine learning model is currently Bullish or Bearish.
PVSRA Vol: Identifies the current volume signature (Normal vs. Climax).
SMA 20/50: Shows medium-term momentum (Bullish if 20 > 50).
Trend 200: Shows the macro trend. ABOVE means long-term bullish; BELOW means long-term bearish.
How to Trade with This Script
Signal Strategy
"SUPER CONFLUENCE BUY" Look for entries. High probability if Trend 200 is "ABOVE".
"SUPER CONFLUENCE SELL" Look for shorts. High probability if Trend 200 is "BELOW".
Magenta/Green Candles Caution: These are "Stop Hunts" or "Institutional Entries." Do not
trade against these candles without a clear reversal pattern.
Technical Tip
The variable target_f is the "AI-optimized multiplier." If you see this value changing frequently in the dashboard, it means the market is volatile, and the AI is struggling to find a stable trend. If it stays consistent, the trend is likely solid.
Thanks everyone and happy trading
Open-source script
In true TradingView spirit, the creator of this script has made it open-source, so that traders can review and verify its functionality. Kudos to the author! While you can use it for free, remember that republishing the code is subject to our House Rules.
Disclaimer
The information and publications are not meant to be, and do not constitute, financial, investment, trading, or other types of advice or recommendations supplied or endorsed by TradingView. Read more in the Terms of Use.
Open-source script
In true TradingView spirit, the creator of this script has made it open-source, so that traders can review and verify its functionality. Kudos to the author! While you can use it for free, remember that republishing the code is subject to our House Rules.
Disclaimer
The information and publications are not meant to be, and do not constitute, financial, investment, trading, or other types of advice or recommendations supplied or endorsed by TradingView. Read more in the Terms of Use.