Indicator · Pine Script v6 · On the chart

StealthTrail SuperTrend ML Pro

by vedkanani123

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.

View on GitHub

GitHub stars1on the repository
Pine versionv6current
Lines of code1,005
Settings40inputs
LicenceNone stated
Last update2 months ago23 Aug 2026

Add It to Your TradingView Chart

  1. 1Copy the scriptPress Copy script above. It reads the file straight from GitHub.
  2. 2Open the Pine EditorOpen a TradingView chart and choose Pine Editor at the bottom of the screen.
  3. 3Paste over the templateCreate a new indicator, select all of the template text and paste. Press Save and give it a name.
  4. 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.

Details

Published by

vedkanani123 on GitHub

Type

Indicator, Pine Script v6

Draws

On the price chart

Category

Trend, Volatility & bands, AI / machine learning

Markets

Any symbol

Timeframes

Any timeframe

Risk Notes

No repainting, lookahead or stacked entries were found in its code or README. That says nothing about how well it works: test it first.

Settings

The inputs you can change from the gear icon on the chart. Defaults are the author's.

SettingTypeDefaultVariable
Auto-Tune ParametersbooltrueautoTuneInput
ATR Length (manual)int13atrLengthInput
Base Multiplier (manual)float2.5baseMultInput
Profiling Lookbackint100profileLookback
Regime Sensitivityfloat1.0regimeSensitivity
Show Instrument ProfilebooltrueshowProfileInput
Multi-Timeframe ConfluencebooltrueuseMTF
HTF SelectionstringAutomtfMode
Manual HTFtimeframe240mtfManual
MTF StrictnessstringModeratemtfStrictness
Enable ML Signal FilterboolfalseuseMLFilter
Confidence Gatefloat21.0mlGateInput
Show all 40 settings
SettingTypeDefaultVariable
Self-Learning GatebooltrueselfLearnInput
Evaluation Horizon (bars)int15evalHorizon
Show ML Score on SignalsboolfalseshowMLDebug
W1: Momentum (RSI)float0.15w1_momentum
W2: Volume Surgefloat0.08w2_volume
W3: Trend (ER)float0.15w3_trend
W4: Vol Shockfloat-0.08w4_volatility
W5: Band Distancefloat0.10w5_distance
W6: MACDfloat0.08w6_macd
W7: Price Structurefloat0.08w7_structure
W8: Regimefloat0.04w8_regime
W9: MTF Confluencefloat0.12w9_mtf
W10: ADX Strengthfloat0.10w10_adx
W11: RSI Divergencefloat0.08w11_divergence
W12: Vol Profile Zonefloat0.06w12_volprofile
W13: Session Qualityfloat0.04w13_session
Biasfloat0.0w_bias
Flip Cushion ×ATRfloat0.15cushionInput
Signal Cooldownint3cooldownInput
Momentum Filter (RSI)booltrueuseMomentumInput
RSI Lengthint13rsiLengthInput
RSI Thresholdfloat45.0rsiThreshInput
Volume FilterboolfalseuseVolumeInput
Volume Multiplierfloat1.2volMultInput
Enable Session FilterboolfalseuseSessionFilter
TimezonestringUTCsessionTimezone
Kill Zone Start (hour)int21sessionKillStart
Kill Zone End (hour)int1sessionKillEnd
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.

Similar Pine Scripts

46 stars

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

Indicator v5 AI / machine learningTrend
Updated 7 weeks ago · None stated GitHub repository of HMM Enhanced: Regime Probability

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

Indicator v6 TrendVolatility & bands
Updated 4 months ago · MIT GitHub repository of ML SuperTrend (Ultimate) - Auto-Optimized AI with LSTM

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

Indicator v6 TrendVolatility & bands
Updated 2 days ago · MIT GitHub repository of Chandelier Flip Radar [WavesUnchained]

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

Indicator v5 TrendVolatility & bands
Updated 8 months ago · None stated GitHub repository of Machine Learning Adaptive SuperTrend [AlgoAlpha]
1 stars

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

Indicator v6 TrendVolatility & bands
Updated 9 months ago · None stated GitHub repository of Adaptive ML Trailing Stop

More indicators

Trade Your Charts With a Regulated Broker

Compare brokers that connect to TradingView, with spreads, minimum deposits and leverage side by side.

Compare brokers