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
| Name | Type | Description |
|---|---|---|
sourceoptional | series default close | Series to use. Omit it when the first argument is a number — ema(9) means ema(close, 9). |
length | int default 9 | Lookback in bars. Default 9. |
offsetoptional | float default 0.85 | 0 = centered, 1 = fully toward the newest bar. |
sigmaoptional | float 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"