Residual Deviation Bands

The Residual Deviation Bands are comparable to Bollinger Bands and our Multi Deviation Bands. However, the deviation is not directly calculated from price data, but it is based on the residuals from the selected moving average. Residual deviation bands do not expand and contract as much as Bollinger or standard deviation bands. They are better at containing price action, but are less suited to determine whether markets are trending or rangebound.

residual deviation bands

Indicator Description

The Residual Deviation Bands consists of a midband and an envelope. You may select one of over 30 different moving averages as the midband. Midband and envelope are colored according to the slope of the midband, which can be upsloping, neutral or downsloping. There is a parameter to adjust the flatness which is considered as neutral. All slope calculations are volatility adjusted. The slope is exposed as public property and can be used as a trend indication. The trend can also be shown via paintbars.

Three different formulas can be used for calculating the deviation bands. The default setting uses the residual mean absolute deviation (RMAD) from the selected moving average. Alternatively, the residual median absolute deviation (RMAD) or the residual root mean square deviation (RRMSD) can be used. The upper band is obtained by adding a multiple of the deviation to the midband. Conversely, the lower band is obtained by subtracting a multiple of the deviation from the midband. Unlike for classical Bollinger Bands or Keltner Channels you may use different lookback periods for calculating the midband and the deviation.

The Residual Deviation Bands give you an indication of the likelyhood that price action may revert. The band width of the Residual Deviation Bands mainly depends on the dispersion of values around the central tendency that has been selected as midband. It does not take into account whether the market is rangebound or trending. Therefore, it should not be used for identifying a squeeze or breakout move. However, it can be used for exiting positions or adjusting stops.

Other Library indicators

Other library indicators that utilize deviation bands for determining trading setups include the Bollinger Bands, Projection Bands, Projection Bandwidth and the Squeeze Indicators. The Current Day Median and the DailyWeeklyMonthly and N Monthly VWAPs also use deviation bands. The Squeeze and VWAP trading setups were furthermore discussed in our Indicator Spotlight.

You may also want to review the Volatility Indicators category, specifically the Daily Range Projections, Weekly Range Projections and the Monthly Range Projections. Our Indicator Spotlight discussed the Daily Range Projections and you may also have a look at the Spotlights on the TDI Indicator, the Current Week VWAP and the daily Pivot Point Indicator.

Finally, our Indicator Spotlight has also reviewed other indicators from our Channel Indicators category, namely the Regression Channel and the Donchian Channel.

Residual Deviation Bands