Back to Docs
Traderoid

PWMA Pass

Pascal-Weighted Moving Average — Series Input

IndicatorTrendOverlay

Overview

PWMA Pass applies the Pascal-Weighted Moving Average to any upstream numeric series. Weights are taken from the corresponding row of Pascal's triangle (binomial coefficients), placing the highest weight on the middle bar of the window.

Formula

w[i] = C(period−1, i) (binomial coefficient) PWMA[t] = Σ w[i]·x[t−i] / Σ w[i]

Parameters

ParameterTypeDefaultDescription
periodnumber10Window length in bars. Determines the Pascal row used.

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.