Trend / Reference
alerta.ta.alma
TradingView-compatible spelling: ta.alma, runs without warnings
Calculates the Arnaud Legoux Moving Average.
alerta.ta.alma(source, length, offset, sigma, floor) → series floatParameters
| Name | Type | Required | Default | Description |
|---|---|---|---|---|
source | series | Yes | — | Series of values to process. |
length | int | Yes | — | Number of bars (length). |
offset | float | No | — | Offset (default 0.85). |
sigma | float | No | — | Sigma (default 6). |
floor | bool | No | — | Pine v6: floor the offset position offset * (length - 1) before the weights are computed (default false). |
Returns
series floatExample
alerta.ta.alma
plot(alma(close, 9, 0.85, 6))Names and aliases
Guides and navigation are localized. Built-in reference descriptions and code examples are maintained in English.