Back to Docs
Traderoid

TRIMA Pass

Triangular Moving Average — Series Input

IndicatorTrendOverlay

Overview

TRIMA Pass applies the Triangular Moving Average to any upstream numeric series. TRIMA is a double-smoothed SMA (SMA of SMA), giving a triangular weight distribution that places the highest weight on the middle of the window.

Formula

half = ⌈period/2⌉ TRIMA[t] = SMA( SMA(x, half), half )

Parameters

ParameterTypeDefaultDescription
periodnumber14Outer SMA window 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.