Machine Learning Adaptive SuperTrend [AlgoAlpha] calculates Average True Range over a specified length and applies a K-Means clustering algorithm across a historical training window to categorize market volatility into distinct regimes. The derived cluster centroids dynamically adjust the SuperTrend parameters according to shifting volatility states. User inputs control the ATR length, SuperTrend factor, training period length, volatility percentile initial guesses, and visual parameters.
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.
AI Agent Lens is an overlay indicator designed to package chart data into structured JSON context packets for external AI trading agents via webhooks. It evaluates multiple technical factors including EMA trends, HTF context, RSI, ADX, ATR volatility percentil
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
A chart-overlay trailing stop that adapts to market conditions. It uses Kaufman's adaptive moving average to measure how efficiently price is moving, scales an ATR-based stop distance accordingly, and optionally adds a k-nearest-neighbours pattern layer that n