A SuperTrend-style indicator on the price chart that can tune its ATR length and multiplier automatically from a profile of the instrument over a lookback window.
1Copy the scriptPress Copy script above. It reads the file straight from GitHub.
2Open the Pine EditorOpen a TradingView chart and choose Pine Editor at the bottom of the screen.
3Paste over the templateCreate a new indicator, select all of the template text and paste. Press Save and give it a name.
4Add it to the chartPress Add to chart, then adjust the settings with the gear icon next to its name.
Source Code
The code stays on GitHub. The author has not published this script under an open licence, so ForexR does not show its code. Copy script reads the file straight from GitHub into your clipboard, so you can still try it on your own chart. Ask the author before reusing the code anywhere else.
Overview
StealthTrail SuperTrend ML Pro adds multi-timeframe confluence with selectable strictness and an optional machine-learning signal filter, off by default, that scores signals from weighted features such as RSI, volume surge, trend efficiency, MACD, ADX, divergence and session quality. A self-learning gate, flip cushion, stops and targets are included.
The inputs you can change from the gear icon on the chart. Defaults are the author's.
Setting
Type
Default
Variable
Auto-Tune Parameters
bool
true
autoTuneInput
ATR Length (manual)
int
13
atrLengthInput
Base Multiplier (manual)
float
2.5
baseMultInput
Profiling Lookback
int
100
profileLookback
Regime Sensitivity
float
1.0
regimeSensitivity
Show Instrument Profile
bool
true
showProfileInput
Multi-Timeframe Confluence
bool
true
useMTF
HTF Selection
string
Auto
mtfMode
Manual HTF
timeframe
240
mtfManual
MTF Strictness
string
Moderate
mtfStrictness
Enable ML Signal Filter
bool
false
useMLFilter
Confidence Gate
float
21.0
mlGateInput
Show all 40 settings
Setting
Type
Default
Variable
Self-Learning Gate
bool
true
selfLearnInput
Evaluation Horizon (bars)
int
15
evalHorizon
Show ML Score on Signals
bool
false
showMLDebug
W1: Momentum (RSI)
float
0.15
w1_momentum
W2: Volume Surge
float
0.08
w2_volume
W3: Trend (ER)
float
0.15
w3_trend
W4: Vol Shock
float
-0.08
w4_volatility
W5: Band Distance
float
0.10
w5_distance
W6: MACD
float
0.08
w6_macd
W7: Price Structure
float
0.08
w7_structure
W8: Regime
float
0.04
w8_regime
W9: MTF Confluence
float
0.12
w9_mtf
W10: ADX Strength
float
0.10
w10_adx
W11: RSI Divergence
float
0.08
w11_divergence
W12: Vol Profile Zone
float
0.06
w12_volprofile
W13: Session Quality
float
0.04
w13_session
Bias
float
0.0
w_bias
Flip Cushion ×ATR
float
0.15
cushionInput
Signal Cooldown
int
3
cooldownInput
Momentum Filter (RSI)
bool
true
useMomentumInput
RSI Length
int
13
rsiLengthInput
RSI Threshold
float
45.0
rsiThreshInput
Volume Filter
bool
false
useVolumeInput
Volume Multiplier
float
1.2
volMultInput
Enable Session Filter
bool
false
useSessionFilter
Timezone
string
UTC
sessionTimezone
Kill Zone Start (hour)
int
21
sessionKillStart
Kill Zone End (hour)
int
1
sessionKillEnd
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 calculates a volatility-adaptive SuperTrend by applying k-means clustering to ATR values over a user-defined training period. It segments historical volatility into high, medium, and low clusters to dynamically adjust the SuperTrend bands to shi
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