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
| Parameter | Type | Default | Description |
|---|---|---|---|
| period | number | 10 | Window length in bars. Determines the Pascal row used. |
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. |