OPEN-SOURCE SCRIPT

Adaptive SuperTrend Oscillator [AlgoAlpha]

Updated
Adaptive SuperTrend Oscillator [AlgoAlpha] 🤖📈

Introducing the Adaptive SuperTrend Oscillator, an innovative blend of volatility clustering and SuperTrend logic designed to identify market trends with precision! 🚀 This indicator uses K-Means clustering to dynamically adjust volatility levels, helping traders spot bullish and bearish trends. The oscillator smoothly tracks price movements, adapting to market conditions for reliable signals. Whether you're scalping or riding long-term trends, this tool has got you covered! 💹✨

🔑 Key Features:
  • 📊 Volatility Clustering with K-Means: Segments volatility into three levels (high, medium, low) using a K-Means algorithm for precise trend detection.
  • 📈 Normalized Oscillator: Allows for customizable smoothing and normalization, ensuring the oscillator remains within a fixed range for easy interpretation.
  • 🔄 Heiken Ashi Candles: Optionally visualize smoothed trends with Heiken Ashi-style candlesticks to better capture market momentum.
  • 🔔 Alert System: Get notified when key conditions like trend shifts or volatility changes occur.
  • 🎨 Customizable Appearance: Fully customizable colors for bullish/bearish signals, along with adjustable smoothing methods and lengths.


📚 How to Use:
  1. ⭐ Add the indicator to favorites by pressing the star icon. Customize settings to your preference:
    snapshotsnapshot
  2. 👀 Watch the chart for trend signals and reversals. The oscillator will change color when trends shift, offering visual confirmation.
    snapshotsnapshot
  3. 🔔 Enable alerts to be notified of critical trend changes or volatility conditions
    snapshot


⚙️ How It Works:
This script integrates SuperTrend with volatility clustering by analyzing ATR (Average True Range) to dynamically identify high, medium, and low volatility clusters using a K-Means algorithm. The SuperTrend logic adjusts based on the assigned volatility level, creating adaptive trend signals. These signals are then smoothed and optionally normalized for clearer visual interpretation. The Heiken Ashi transformation adds an additional layer of smoothing, helping traders better identify the market's true momentum. Alerts are set to notify users of key trend shifts and volatility changes, allowing traders to react promptly.
Release Notes
Made table smaller.
algoalphakmeansmachinelearningmeanreversionOscillatorsreversalTechnical AnalysisTrend AnalysistrendfollowertrendfollowingVolatility

Open-source script

In true TradingView spirit, the author of this script has published it open-source, so traders can understand and verify it. Cheers to the author! You may use it for free, but reuse of this code in publication is governed by House rules. You can favorite it to use it on a chart.

Want to use this script on a chart?


🔶15% OFF CODE FOR VIP BUNDLE: 'ALPH4' 🔶(ends soon.)

🚨Get premium: algoalpha.io

🛜Get FREE signals: discord.gg/xCmqTVRexz

❓Do you have feedback or indicator ideas? Join our server to tell us about it!
Also on:

Disclaimer