All indicators

DEnvelope [Better Bollinger Bands]

Jul 11, 2014

Static chart image
Price Action BasedChannelsVolatility

The DEnvelope [Better Bollinger Bands] indicator is a volatility-based channel tool that aims to provide a more responsive alternative to standard Bollinger Bands by using modified centerline and band calculations.

Usage

The DEnvelope [Better Bollinger Bands] can be used to identify trend direction, potential reversals, and volatility cycles. Unlike standard Bollinger Bands, which often contract slowly after periods of high volatility, the DEnvelope is designed to follow price action more closely and respond faster to volatility drops.

Traders can use this script to:

  • Identify overextended market conditions when price touches or breaks the upper or lower bands.
  • Determine trend bias based on price positioning relative to the basis (center line).
  • Gauge volatility shifts more accurately, as the bands are engineered to react quicker than traditional standard deviation-based envelopes.

Details

The concept for this indicator is based on Dennis McNicholl's article "Better Bollinger Bands," published in the October 1998 issue of "Futures" magazine. The primary objective of the modification is to resolve the lag issues inherent in standard Bollinger Bands.

The script implements this by:

  1. Modifying the center line formula: Instead of a simple moving average, it uses a specialized smoothing calculation involving multiple passes of an alpha-based multiplier (derived from the lookback length).
  2. Different band equations: Rather than using standard deviation, the bands are calculated based on the absolute difference between the source price and the modified center line, which is then smoothed using a similar recursive process.

This results in a channel that adheres more tightly to the price trend and narrows significantly faster when market volatility subsides.

Settings

  • DEnvelope lookback length: The period used to calculate the basis and the volatility envelope. Increasing this value smooths the bands further, while decreasing it makes them more reactive to short-term price movements.
  • DEnvelope band deviation: A multiplier applied to the volatility component to determine the width of the bands. Higher values create a wider channel.
  • Source: The price input used for the calculations (default is HLC3).

FAQ

How do I interpret the DEnvelope compared to standard Bollinger Bands?

The DEnvelope will generally appear more "fitted" to the price action. You will notice that after a volatility spike, the bands contract toward the mean much faster than standard Bollinger Bands, potentially providing earlier signals for mean reversion or trend consolidation.

Can I use this for breakout strategies?

Yes, the DEnvelope is well-suited for breakout strategies. Because the bands react faster to volatility changes, a breakout beyond the bands may signify a more significant shift in momentum compared to lagging indicators.

How can I access the DEnvelope [Better Bollinger 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.

TradingView
NinjaTrader
MetaTrader 4/5

Unlock the entire LuxAlgo Library

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