OPEN-SOURCE SCRIPT
Adaptive Supertrend+ [MAB]

Adaptive SuperTrend+ is an adaptive trend-following indicator that eliminates the guesswork of manually tuning a SuperTrend multiplier. Instead of relying on a single fixed factor, it continuously tests a range of multipliers in parallel and automatically selects the one that has been performing best on recent price action — giving you a SuperTrend that self-optimizes to current market conditions.
🔶 HOW IT WORKS
Traditional SuperTrend indicators require the user to pick a multiplier and stick with it, regardless of whether market conditions favor a tight or wide band. Adaptive SuperTrend+ solves this by running multiple SuperTrend instances simultaneously across a user-defined factor range. Each instance is scored using an exponential performance metric that tracks how well that particular multiplier has aligned with directional price movement. On every bar, the highest-scoring factor is selected to render the final SuperTrend line — fully automatic, no manual tuning required.
🔶 USAGE
🔹 Trend Direction
Teal line below price — Bullish trend is active. The line acts as a dynamic trailing support level.
Red line above price — Bearish trend is active. The line acts as a dynamic trailing resistance level.
🔹 Trade Signals
Teal triangle (▲) below bar — Bullish signal. Price has crossed above the band, indicating a potential long entry or trend reversal to the upside.
Red triangle (▼) above bar — Bearish signal. Price has crossed below the band, indicating a potential short entry or trend reversal to the downside.
Because the active multiplier adapts to recent performance, signals generated by Adaptive SuperTrend+ reflect a band that has been validated against current volatility conditions rather than a static parameter chosen arbitrarily.
🔶 SETTINGS
🔹 ATR Settings
ATR Length — The lookback period used to calculate Average True Range. Controls how quickly the volatility measurement responds to recent price swings.
🔹 Factor Range
Min Factor — The smallest SuperTrend multiplier included in the tested range.
Max Factor — The largest SuperTrend multiplier included in the tested range.
Factor Step — The increment between each tested multiplier. Smaller steps produce a finer search across the range but increase computation.
🔶 NOTES
Suitable for any market and timeframe.
Best used as a trend filter or trailing stop reference alongside your existing entry and exit criteria.
Past performance of any selected factor does not guarantee future results. Always apply proper risk management.
🔶 HOW IT WORKS
Traditional SuperTrend indicators require the user to pick a multiplier and stick with it, regardless of whether market conditions favor a tight or wide band. Adaptive SuperTrend+ solves this by running multiple SuperTrend instances simultaneously across a user-defined factor range. Each instance is scored using an exponential performance metric that tracks how well that particular multiplier has aligned with directional price movement. On every bar, the highest-scoring factor is selected to render the final SuperTrend line — fully automatic, no manual tuning required.
🔶 USAGE
🔹 Trend Direction
Teal line below price — Bullish trend is active. The line acts as a dynamic trailing support level.
Red line above price — Bearish trend is active. The line acts as a dynamic trailing resistance level.
🔹 Trade Signals
Teal triangle (▲) below bar — Bullish signal. Price has crossed above the band, indicating a potential long entry or trend reversal to the upside.
Red triangle (▼) above bar — Bearish signal. Price has crossed below the band, indicating a potential short entry or trend reversal to the downside.
Because the active multiplier adapts to recent performance, signals generated by Adaptive SuperTrend+ reflect a band that has been validated against current volatility conditions rather than a static parameter chosen arbitrarily.
🔶 SETTINGS
🔹 ATR Settings
ATR Length — The lookback period used to calculate Average True Range. Controls how quickly the volatility measurement responds to recent price swings.
🔹 Factor Range
Min Factor — The smallest SuperTrend multiplier included in the tested range.
Max Factor — The largest SuperTrend multiplier included in the tested range.
Factor Step — The increment between each tested multiplier. Smaller steps produce a finer search across the range but increase computation.
🔶 NOTES
Suitable for any market and timeframe.
Best used as a trend filter or trailing stop reference alongside your existing entry and exit criteria.
Past performance of any selected factor does not guarantee future results. Always apply proper risk management.
오픈 소스 스크립트
트레이딩뷰의 진정한 정신에 따라, 이 스크립트의 작성자는 이를 오픈소스로 공개하여 트레이더들이 기능을 검토하고 검증할 수 있도록 했습니다. 작성자에게 찬사를 보냅니다! 이 코드는 무료로 사용할 수 있지만, 코드를 재게시하는 경우 하우스 룰이 적용된다는 점을 기억하세요.
Pine Script Developer • Market Analysis
면책사항
해당 정보와 게시물은 금융, 투자, 트레이딩 또는 기타 유형의 조언이나 권장 사항으로 간주되지 않으며, 트레이딩뷰에서 제공하거나 보증하는 것이 아닙니다. 자세한 내용은 이용 약관을 참조하세요.
오픈 소스 스크립트
트레이딩뷰의 진정한 정신에 따라, 이 스크립트의 작성자는 이를 오픈소스로 공개하여 트레이더들이 기능을 검토하고 검증할 수 있도록 했습니다. 작성자에게 찬사를 보냅니다! 이 코드는 무료로 사용할 수 있지만, 코드를 재게시하는 경우 하우스 룰이 적용된다는 점을 기억하세요.
Pine Script Developer • Market Analysis
면책사항
해당 정보와 게시물은 금융, 투자, 트레이딩 또는 기타 유형의 조언이나 권장 사항으로 간주되지 않으며, 트레이딩뷰에서 제공하거나 보증하는 것이 아닙니다. 자세한 내용은 이용 약관을 참조하세요.