Back to Docs
Traderoid

Gaussian MA Pass

Gaussian-Weighted Moving Average — Series Input

IndicatorTrendOverlay

Overview

Gaussian MA Pass applies a Gaussian (normal distribution) kernel weighting to any upstream numeric series. Bars near the centre of the window receive the highest weights, resulting in a very smooth output with minimal ringing or overshoot.

Formula

w[i] = exp(−(i − μ)² / (2·σ²)) where μ = (period−1)/2 GMA[t] = Σ w[i]·x[t−i] / Σ w[i]

Parameters

ParameterTypeDefaultDescription
periodnumber14Window length in bars.
sigmanumber4Gaussian spread. Higher values produce a flatter, wider kernel.

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.