ta.alma
Arnaud Legoux moving average: Gaussian weights centred at offset * (length - 1), width length / sigma.
ta.alma(series: float, length: simple int, offset: float = 0.85, sigma: float = 6, floor: bool = false) -> series float
Parameters
seriesfloat: The values to use, usually close or another price; a series that may change on every bar.lengthsimple int: Number of bars, a whole number from 1 to 5000 (a fraction is cut off). Known before the first bar: a literal or an input, never a series. Outside 1 to 5000 the script stops with a runtime error. na until length bars exist.offsetfloat: Where the weights peak inside the window: 0 is the oldest bar, 1 the newest (default 0.85).sigmafloat: How narrow the bell of weights is: its standard deviation is length / sigma bars (default 6).floorbool: true rounds offset * (length - 1) down to a whole bar before weighting (default false).
Example
ta.alma(close, 9, 0.85, 6)