Rolling Donchian Channels.
Window size:
period
N; output length = highs.length - N + 1.Middle line:
High prices.
Low prices.
Window length.
Array of [lower, middle, upper] per window.
Rolling Ichimoku Cloud.
Effective window:
max(conversionPeriod, basePeriod, spanBPeriod)
as the effective N.Output tuple:
High prices (length L).
Low prices (length L).
Close prices (length L).
Tenkan-sen period.
Kijun-sen period.
Senkou Span B period.
Array of [spanA, spanB, base, conversion, displacedClose] per window.
Rolling Keltner Channel using ATR and a central moving constant.
Window size:
period
N; output length = highs.length - N + 1.Notes:
constantModelType
defines the moving average for the typical price center.atrConstantModelType
defines the ATR's smoothing model.High prices.
Low prices.
Close prices.
Central model (for typical price).
Model for ATR calculation.
Multiplier for ATR width.
Window length.
Array of [lower, middle, upper] per window.
Rolling McGinley Dynamic bands using a deviation model and multiplier.
Window size:
period
N; output length = prices.length - N + 1.Seeding:
previousMcGinleyDynamic
seeds the first window's McGinley; use 0.0 if none.Close prices.
Deviation model (StdDev, MAD, etc.).
Multiplier applied to the deviation (e.g., 2.0).
Previous McGinley value to seed the first window (0.0 if unknown).
Window length.
Array of [lower, mcginley, upper] per window.
Rolling McGinley Dynamic envelopes (±percentage of McGinley value).
Window size:
period
N; output length = prices.length - N + 1.Seeding:
previousMcGinleyDynamic
seeds the first window's McGinley; use 0.0 if none.Close prices.
Percent band width (e.g., 3.0 for ±3%).
Previous McGinley value to seed the first window (0.0 if unknown).
Window length for the McGinley computation.
Array of [lower, mcginley, upper] per window.
Rolling generalized bands (e.g., Bollinger) around a moving constant using a deviation model.
Window size:
period
N; output length = prices.length - N + 1.Band formula:
Close prices.
Central model (SMA, EMA, median, etc.).
Deviation model (StdDev, MAD, MedianAD, ModeAD, UlcerIndex).
Multiplier applied to the deviation (e.g., 2.0).
Window length for both the constant and deviation.
Array of [lower, middle, upper] per window.
Rolling envelopes around a moving constant (±percentage of the central line).
Window size:
period
N; output length = prices.length - N + 1.Close prices.
Central model (SMA, EMA, median, etc.).
Percent band width (e.g., 3.0 for ±3%).
Window length for the moving constant.
Array of [lower, middle, upper] per window.
Rolling Supertrend values.
Window size:
period
N; output length = highs.length - N + 1.High prices.
Low prices.
Close prices.
Model used by ATR.
Multiplier for ATR.
Window length for ATR and bands.
Array of supertrend values per window.
Bulk/rolling candle indicators: operate over a sliding window and return arrays.
General behavior: