Bands, Envelopes, and Squeezes
13 algorithms in Technical Indicators · 13 with asserted arithmetic.
In this family#
-
Bollinger %B verified
Bollinger Bands together with %B, the close's position between the lower and upper band. The band arithmetic is delegated to the already-shipped
bollingerBandsimplementation.bollingerPercentB(input) -
Moving Average Envelope verified
Moving Average Envelope: a simple moving average of close with bands set a fixed percentage above and below it.
movingAverageEnvelope(input) -
ATR Bands verified
ATR Bands: a simple moving average of close with bands
multiplierAverage True Ranges above and below it.atrBands(input) -
Standard Deviation Channel verified
Standard Deviation Channel: a simple moving average of close with bands
multiplierpopulation standard deviations above and below it.standardDeviationChannel(input) -
Regression Channel verified
Regression Channel: the end point of a rolling least-squares fit of close over
periodbars, with bandsmultiplierroot-mean-square residuals above and below that fitted point.regressionChannel(input) -
Raff Regression Channel verified
Raff Regression Channel: the same rolling least-squares centre line as the regression channel, but the channel half-width is the largest absolute residual in the window rather than its root mean square.
raffRegressionChannel(input) -
STARC Bands verified
STARC Bands: a simple moving average of close with bands
multiplierAverage True Ranges above and below it.starcBands(input) -
Fractal Chaos Bands verified
Fractal Chaos Bands: carries forward the most recent confirmed five-bar fractal high and fractal low, each held flat until a new fractal of that side confirms.
fractalChaosBands(input) -
Projection Bands verified
Projection Bands: fits a least-squares slope to the highs and to the lows of the last
periodbars, projects every bar in the window forward along that slope, and takes the highest projected high and the lowest projected low.projectionBands(input) -
Dynamic Zone Bands verified
Dynamic Zone Bands: a quantile envelope of close -- the upper band is the
1 - qquantile of the lastperiodcloses and the lower band theqquantile -- drawn around a simple moving average.dynamicZoneBands(input) -
TTM Squeeze verified
TTM Squeeze: flags the bars on which the Bollinger band pair sits entirely inside the Keltner channel pair, the conventional sign of a volatility contraction.
ttmSqueeze(input) -
Squeeze Momentum verified
Squeeze Momentum: the TTM squeeze flag and its two band pairs, plus a momentum line -- the regression slope of the close's distance from the midpoint of the
period-bar high-low range.squeezeMomentum(input) -
Adaptive Price Zone verified
Adaptive Price Zone: a double-smoothed EMA of close as the centre line, with bands
multiplierdouble-smoothed EMAs of the high-low range above and below it.adaptivePriceZone(input)
What they share#
Every topic here is a series-transform, so once you have
called one the rest follow the same shape. Import paths differ only in the final segment:
import { bollingerPercentB } from "fintech-algorithms/technical-indicators/bands-envelopes-and-squeezes/bollinger-percent-b";
import { movingAverageEnvelope } from "fintech-algorithms/technical-indicators/bands-envelopes-and-squeezes/moving-average-envelope";Read them in the order above — the sequence is pedagogical, not alphabetical.
Where this sits#
Technical Indicators collects 137 algorithms across 9 families. For the concept behind this family rather than the call signatures, see the concept guides.