Machine Learning Adaptive SuperTrend [AlgoAlpha] segments historical volatility into high, medium, and low clusters to dynamically adjust the SuperTrend bands to shifting market conditions. Plotted directly on the price chart, it provides directional trend indications with color-coded bands based on bullish and bearish state changes. Configurable inputs include the ATR length, baseline factor, training sample length, and initial percentile guesses.
K-means clustering algorithm applied to ATR volatility
Adaptive SuperTrend trend-following bands
Dynamic volatility regime classification
Configurable training sample length and percentile thresholds
Overlay display with customizable band colors and transparencies
The inputs you can change from the gear icon on the chart. Defaults are the author's.
Setting
Type
Default
Variable
ATR Length
int
10
atr_len
SuperTrend Factor
float
3
fact
Training Data Length
int
100
training_data_period
Initial High volatility Percentile Guess
float
0.75
highvol
Initial Medium volatility Percentile Guess
float
0.5
midvol
Initial Low volatility Percentile Guess
float
0.25
lowvol
Transparency 1
int
70
t1
Transparency 2
int
95
t2
Bullish Color
color
#00ffbb
green
Bearish Color
color
#ff1100
red
Third-party code. ForexR did not write, test or endorse this script, and the summary above was generated automatically from its code and README. Indicators describe the past, and a strategy's backtest can look better than live trading, especially when a script repaints. Check it in the Strategy Tester and on a demo account before you rely on it.
This indicator uses a Hidden Markov Model (HMM) framework combined with an adaptive dual moving average engine and Directional Movement Index (DMI) features to identify market regimes (bullish, bearish, or ranging/chop). It calculates regime probabilities on e
This overlay indicator plots a SuperTrend-style band on the price chart using ATR length, a selectable source, and a base factor. Optional settings enable an adaptive factor driven by rate of change, a volatility filter, K-means clustering, and an LSTM layer w
Chandelier Flip Radar plots an ATR trailing stop on the price chart and tracks a directional trend state. It holds a ratchet stop until an accepted flip, using close or wick extremums and a body filter so weak breaks do not change direction. Distance to the fl
This overlay indicator builds many SuperTrend trailing stops across a user-set ATR length, factor range, and step. Each factor is scored with an exponential performance memory. K-means clustering groups those results, and the user chooses the best, average, or
This indicator plots an oscillator in a separate pane. It builds several SuperTrend series across a user-defined factor range and step, using ATR as the band width. On each bar it measures the distance between the close and each SuperTrend output, then groups
This indicator plots an ATR-based Chandelier Exit trailing stop on the price chart. It tracks a long stop under recent highs and a short stop above recent lows, then switches direction when price crosses the opposite stop. Buy and sell labels mark those flips.