All indicators

Bollinger Bands + Supertrend

Mar 9, 2025

Static chart image
SignalsChannelsMoving AveragesVolatility

The Bollinger Bands + Supertrend indicator is a versatile technical analysis tool that combines volatility-based bands with an adaptive trend-following mechanism to provide a comprehensive view of market direction and potential price reversals.

Usage

The tool is primarily used to identify trend alignment and potential entry points by observing the interaction between price, the Supertrend line, and the Bollinger Bands.

  • Trend Confirmation: When the price is above the Supertrend line (indicated in green), the market is considered to be in an uptrend. Conversely, when the price is below the Supertrend line (indicated in red), the market is in a downtrend.
  • Volatility Analysis: The Bollinger Bands expand during high volatility and contract during low volatility. Traders often look for "squeezes" followed by breakouts or price interaction with the outer bands for reversal signals.
  • Combined Signals: A high-probability long setup might occur when the price touches the lower Bollinger Band while the Supertrend remains bullish. A short setup might be identified when the price touches the upper Bollinger Band during a bearish Supertrend phase.
  • Buy/Sell Labels: The script can display "Buy" and "Sell" labels on the chart when the Supertrend direction flips, providing clear visual cues for trend changes.

Details

The indicator calculates Bollinger Bands using a Simple Moving Average (SMA) as the basis, with outer bands set at a user-defined number of standard deviations. The Supertrend component utilizes the Average True Range (ATR) to calculate a trailing threshold. This threshold stays below the price during uptrends and above the price during downtrends, adjusting dynamically based on market volatility. By merging these two concepts, the script helps filter out noise and provides a clearer picture of whether a move is a significant trend change or a minor volatility spike.

Settings

Bollinger Bands

  • Length: The lookback period used for the Simple Moving Average and standard deviation calculations.
  • Multiplier: The number of standard deviations for the width of the upper and lower bands.
  • Source: The price data used for the calculations (e.g., Close, Open, HL2).

Supertrend

  • ATR Period: The lookback period for the Average True Range calculation.
  • ATR Multiplier: The factor applied to the ATR value to set the distance of the Supertrend line from the price.
  • Different ATR Calculation?: Toggles between using a standard ATR or a Simple Moving Average of the True Range.
  • Buy/Sell Signals?: Enables or disables the visibility of the on-chart trend labels.

FAQ

How do I access the Bollinger Bands + Supertrend indicator?

You can get access on the LuxAlgo Library for charting platforms like TradingView, MetaTrader (MT4/MT5), and NinjaTrader for free.

Can I use this for intraday trading?

Yes, the indicator is effective across various timeframes, provided the settings (Length and ATR Multiplier) are adjusted to suit the specific asset's volatility.

What do the "Buy" and "Sell" labels represent?

The labels indicate a change in the Supertrend direction. A "Buy" label appears when the price crosses above the bearish threshold, and a "Sell" label appears when the price falls below the bullish threshold.

Free indicator

Get free access to this indicator on the platforms below.

TradingView
NinjaTrader
MetaTrader 4/5

Unlock the entire LuxAlgo Library

Every indicator, every strategy, full charts, and complete access to Quant — our AI agent.