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
| Parameter | Type | Default | Description |
|---|---|---|---|
| period | number | 14 | Outer SMA window length in bars. |
Inputs & Outputs
| Port | Direction | Type | Description |
|---|---|---|---|
| input | Input | (number | null)[] | Any numeric series (values + timestamps). |
| values | Output | (number | null)[] | Smoothed output series, null for warm-up bars. |
| timestamps | Output | number[] | Bar timestamps aligned with values. |