All indicators

Bollinger Bands Deviation

Apr 9, 2020

Static chart image
SignalsChannelsMoving AveragesVolatility

The Bollinger Bands Deviation indicator identifies price action that moves outside the standard statistical range of Bollinger Bands to highlight potential exhaustion or reversal points. By capturing price movements that deviate from the standard two deviations—where price theoretically resides 95% of the time—it provides actionable signals for profit-taking or trend shifts.

Usage

The indicator can be used to spot overextended market conditions. When price action opens outside the bands and closes back within them, a signal label is plotted on the chart.

  • Buy Signal (B): Occurs when the candle opens below the lower band and closes back above it, suggesting a potential bullish recovery.
  • Sell Signal (S): Occurs when the candle opens above the upper band and closes back below it, suggesting a potential bearish correction.

Traders often use these signals as a confluence for exiting existing positions or identifying counter-trend opportunities in volatile markets.

Details

The tool is built upon the classic Bollinger Band framework, which consists of a central moving average and two outer bands based on standard deviation. This implementation allows users to toggle between a Simple Moving Average (SMA) and an Exponential Moving Average (EMA) for the baseline calculation. The core logic focuses on the "tail ends" of the distribution—the 5% of price movement that exceeds the multiplier—marking the moment price returns to its statistically expected range.

Settings

  • Use EMA?: Toggles the basis of the bands between an Exponential Moving Average and a Simple Moving Average.
  • Source: Determines the price data used for the calculations (e.g., Close, Open, High, Low).
  • Length: Sets the lookback period for both the moving average and the standard deviation calculation.
  • Multiplier: Adjusts the width of the bands by setting the number of standard deviations from the mean.

FAQ

How do I access the Bollinger Bands Deviation 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 trend following?

While primarily designed for reversals and mean reversion, these signals can also identify the start of a new trend if price holds the mean after a signal.

What is the recommended timeframe for this tool?

The indicator is versatile and can be applied to any timeframe, though it is most commonly used on higher timeframes to filter out market noise.

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.