2026-01-18 19:02:03 -08:00
# Trends (FIR)
2026-01-19 18:25:48 -08:00
> "FIR filters are always stable. The question is how many coefficients you need." Digital Signal Processing folklore
2026-01-18 19:02:03 -08:00
Finite Impulse Response (FIR) trend indicators. These use fixed-length windows with explicit coefficients. No feedback loops, no recursion. Output depends only on current and past inputs. Always stable. Linear phase possible. SIMD-friendly batch computation.
2026-01-19 18:25:48 -08:00
## Indicators
2026-01-18 19:02:03 -08:00
2026-01-19 18:25:48 -08:00
| Indicator | Full Name | Description |
2026-01-18 19:02:03 -08:00
| :--- | :--- | :--- |
2026-02-02 19:47:21 -08:00
| [ALMA ](alma/Alma.md ) | Arnaud Legoux MA | Gaussian window with offset parameter. Smooth with configurable lag. |
| [BLMA ](blma/Blma.md ) | Blackman MA | Blackman window. Excellent side-lobe suppression (-58 dB). |
| [BWMA ](bwma/Bwma.md ) | Bessel-Weighted MA | Bessel window function. Good frequency resolution. |
| [CONV ](conv/Conv.md ) | Convolution MA | Generic convolution with custom kernel. Building block for others. |
| [DWMA ](dwma/Dwma.md ) | Double Weighted MA | WMA of WMA. Smoother than single WMA. Triangular-like response. |
| [GWMA ](gwma/Gwma.md ) | Gaussian Weighted MA | Centered Gaussian bell curve. No overshoot. σ controls width. |
| [HAMMA ](hamma/Hamma.md ) | Hamming MA | Hamming window. -43 dB side lobes. Good general purpose. |
| [HANMA ](hanma/Hanma.md ) | Hanning MA | Hanning (raised cosine). Zero at edges. Smooth roll-off. |
| [HMA ](hma/Hma.md ) | Hull MA | Reduced lag via weighted average differencing. Can overshoot. |
| [HWMA ](hwma/Hwma.md ) | Holt-Winters MA | Triple exponential smoothing. Tracks level, velocity, acceleration. |
| [LSMA ](lsma/Lsma.md ) | Least Squares MA | Linear regression endpoint. Extrapolates trend. |
| [PWMA ](pwma/Pwma.md ) | Pascal Weighted MA | Pascal's triangle coefficients. Binomial distribution weights. |
| [SGMA ](sgma/Sgma.md ) | Savitzky-Golay MA | Polynomial fit. Preserves higher moments. Shape-preserving. |
| [SINEMA ](sinema/Sinema.md ) | Sine-Weighted MA | Sine wave weighting. Smooth bell-shaped emphasis. |
| [SMA ](sma/Sma.md ) | Simple MA | Equal weights. Baseline reference. Lag = (N-1)/2. |
| [TRIMA ](trima/Trima.md ) | Triangular MA | Triangular weights. SMA of SMA. Emphasizes middle. |
| [WMA ](wma/Wma.md ) | Weighted MA | Linear weights. Recent prices weighted more. Lag < SMA. |