Adoptive Supertrend - Bands
Jan 13, 2021

The Adoptive Supertrend - Bands indicator provides a dynamic trend-following system that adapts to market volatility by utilizing various channel-based calculations to define trailing stop levels. By integrating standard volatility bands with Average True Range (ATR) offsets, the tool helps traders identify trend continuations and potential reversals across different market regimes.
Usage
The indicator functions by monitoring price action relative to selected channel boundaries. When the price touches or exceeds the upper boundary of the chosen band, the tool identifies a potential start or continuation of an uptrend. Conversely, touching the bottom boundary signals a potential downtrend.
The Supertrend line acts as a trailing stop:
- Uptrend: A green line is plotted below the price, derived from the bottom of the selected band minus an ATR-based offset.
- Downtrend: A red line is plotted above the price, derived from the top of the selected band plus an ATR-based offset.
Traders can use these levels to manage risk or identify entry signals when the trend direction switches.
Details
This script enhances the traditional Supertrend logic by "adopting" the boundaries of four distinct channel types as the basis for its calculation:
- Bollinger Bands: Uses standard deviation-based envelopes.
- Keltner Channels: Uses ATR-based envelopes around an exponential moving average.
- Donchian Channels: Uses highest highs and lowest lows over a set period.
- Donchian - Pivot: A variation using pivot high/low points to establish the channel boundaries rather than every bar's extreme.
The trailing stop is "locked" in the direction of the trend, meaning long stops only move upward and short stops only move downward until a crossover occurs.
Settings
- Channel Type: Selects the underlying calculation method (Bollinger Bands, Keltner Channel, Donchian Channel, or Donchian - Pivot).
- Channel Length: Sets the lookback period for the chosen channel calculation.
- StdDev: Adjusts the multiplier for standard deviation or ATR-based bands (applicable to Bollinger and Keltner).
- Pivot Len: Determines the lookback for pivot point detection used in the Donchian - Pivot mode.
- Wait For Candle Close: If enabled, ensures pivots are confirmed before being used in calculations.
- ATR Periods: The lookback period for the Average True Range used for the stop-loss offset.
- ATR Multiplier: The multiplier applied to the ATR to determine the distance between the band edge and the trailing stop.
- Wicks: When enabled, the script uses high/low prices for trend detection; otherwise, it uses candle closes.
FAQ
How do I change the sensitivity of the trend signals?
You can adjust the "ATR Multiplier" or the "Channel Length." A higher multiplier will create a wider stop, reducing noise but lagging more, while a smaller multiplier will be more sensitive to price fluctuations.
What is the difference between Donchian and Donchian - Pivot?
Standard Donchian Channels use the absolute highest and lowest prices within the lookback period. The Pivot version uses specific swing highs and swing lows (pivots), which can filter out minor price spikes and provide a more structural view of support and resistance.
How can I access the Adoptive Supertrend - Bands?
You can get access on the LuxAlgo Library for charting platforms like TradingView, MetaTrader (MT4/MT5), and NinjaTrader for free.
Free indicator
Get free access to this indicator on the platforms below.
Unlock the entire LuxAlgo Library
Every indicator, every strategy, full charts, and complete access to Quant — our AI agent.