Back to Docs
Traderoid

ALMA Pass

Arnaud Legoux Moving Average — Series Input

IndicatorTrendOverlay

Overview

ALMA Pass applies the Arnaud Legoux Moving Average to any upstream numeric series, not just OHLCV candle data. It uses a Gaussian-weighted kernel centred at a configurable offset position to produce a smooth, low-lag average.

Formula

w[i] = exp(-(i − offset·(period−1))² / (2·(sigma/(period−1))²)) ALMA[t] = Σ w[i]·x[t−i] / Σ w[i]

Parameters

ParameterTypeDefaultDescription
periodnumber20Window length in bars.
offsetnumber0.85Kernel centre position (0–1). Higher = more recent bars weighted.
sigmanumber6Gaussian width. Higher = smoother but more lag.

Inputs & Outputs

PortDirectionTypeDescription
inputInput(number | null)[]Any numeric series (values + timestamps).
valuesOutput(number | null)[]Smoothed output series, null for warm-up bars.
timestampsOutputnumber[]Bar timestamps aligned with values.