Bollinger Bands Signals
Feb 7, 2023

The Bollinger Bands Signals indicator is a versatile trend-following and mean-reversion tool that generates actionable trading signals based on volatility bands and width-based filtering. It aims to identify potential entry points in trending markets while providing robustness across various timeframes.
Usage
The Bollinger Bands Signals tool is used to identify trend reversals and continuations by monitoring price interactions with volatility bands.
- Long Signals: Occur when the price crosses under the lower band or remains above the basis/lower band, provided the volatility (width) exceeds a user-defined threshold.
- Short Signals: Occur when the price crosses over the upper band or remains below the basis/upper band, provided the volatility (width) exceeds the threshold.
Users are encouraged to apply this indicator on higher timeframes (e.g., 3H or higher) to minimize market noise. During consolidation periods, the tool may exhibit "jigsaw-like" behavior; therefore, it is recommended to pair it with range-detection indicators to filter out sideways price action.
Details
This script enhances the standard Bollinger Bands concept by integrating a "width" filter into the signal generation logic. The signal procedure is the core of the script, ensuring that signals are only produced when the market demonstrates sufficient volatility (Bands Width).
The indicator allows for flexibility in the calculation of the basis line, offering four different moving average types. By default, it uses Vidya (Variable Index Dynamic Average), which adapts its speed based on market volatility, potentially offering more responsive signals than traditional SMA-based bands.
Settings
- Dataset: Determines the source price data used for calculations (e.g., Close, Open, HL2).
- Base Moving Average: Selection for the basis line calculation (EMA, SMA, WMA, or Vidya).
- Period [1..n]: Sets the lookback window for the moving average and standard deviation.
- Deviation [0.01..50]: Adjusts the multiplier for the bands' distance from the basis.
- Bands Width [0.0001..0.1]: A volatility filter; signals are only generated if the band width exceeds this value.
- Offset [-500..+500]: Shifts the plots forward or backward on the x-axis.
FAQ
How do I adjust the sensitivity of the signals? Sensitivity can be adjusted by changing the "Period" and "Deviation" settings. Lowering the Period or Deviation will typically increase signal frequency, while increasing them will filter out more noise.
What is the "Bands Width" setting for? The Bands Width setting acts as a volatility filter. If the market is moving sideways with very low volatility (squeezing), this setting prevents the script from firing erratic signals until the width increases.
How can I access Bollinger Bands Signals? 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.