talib.alma
An Arnaud Legoux moving average of source over length bars.
Two further arguments, offset and sigma, shape the weighting. Both accept an int or a float.
talib.alma(series float source, series int length, series float offset, series float sigma) → series float| Parameter | Type | Required | Description |
|---|---|---|---|
source | series float | yes | The series to average. |
length | series int | yes | How many bars the window covers. An int. |
offset | series float | yes | Shape argument of the weighting. Int or float. |
sigma | series float | yes | Second shape argument of the weighting. Int or float. |
Returns series float — A series float: one average per bar.
indicator("Arnaud Legoux moving average")
plot(talib.alma(close, 20, 0.85, 6))See also talib.atr · talib.barssince · talib.bb
Part of the function index.
Ready to put this into practice?
Try GoCharting Premium
Unlock advanced orderflow, market profile, options desk, and real-time data — everything you just read about, live in your charts.