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
ParameterTypeRequiredDescription
sourceseries floatyesThe series to average.
lengthseries intyesHow many bars the window covers. An int.
offsetseries floatyesShape argument of the weighting. Int or float.
sigmaseries floatyesSecond 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.
Upgrade