Back to Docs
Traderoid

GMA Pass

Geometric Moving Average — Series Input

IndicatorTrendOverlay

Overview

GMA Pass applies the Geometric Moving Average to any upstream numeric series. It computes the nth root of the product of n values, which is appropriate for multiplicative (e.g. ratio or return) series and is less influenced by extreme values than the arithmetic mean.

Formula

GMA[t] = (Π x[t−i])^(1/period) for i = 0..period−1 = exp( Σ ln(x[t−i]) / period )

Parameters

ParameterTypeDefaultDescription
periodnumber10Window length in bars.

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.