Home/Dovee/Function reference

alma

Arnaud Legoux moving average.

Reference/Moving averages/Function

alma(source, length, offset, sigma)

Gaussian weights. offset (0–1) shifts the window toward recent bars; sigma controls smoothness. Short form alma(9) uses close, offset 0.85, sigma 6.

Parameters

NameTypeDescription
sourceoptionalseries
default close
Series to use. Omit it when the first argument is a number — ema(9) means ema(close, 9).
lengthint
default 9
Lookback in bars. Default 9.
offsetoptionalfloat
default 0.85
0 = centered, 1 = fully toward the newest bar.
sigmaoptionalfloat
default 6
Larger is smoother.

Return value

series

Short form: if the first argument is a number, Dovee uses close as the source.

Example

line = alma(close, 9)
plot line as "ALMA"

See also