Gaussian Filter
A Gaussian filter smooths price with a weighting that follows the Gaussian bell curve, the shape of the normal distribution named for Carl Friedrich Gauss. It is a Trend concept. The Library holds 1 implementation, ready to run on Vela.
Top Gaussian Filter indicator
The top custom implementation, built on the original standard Gaussian Filter formula.
1 total
From studying Gaussian Filter to trading it: open the implementation below on Vela, then build a strategy on it with Quant and backtest it.
What is a Gaussian Filter?
A Gaussian filter smooths price with a weighting that follows the Gaussian bell curve, the shape of the normal distribution named for Carl Friedrich Gauss. In the direct form, a windowed FIR smoother with bell-curve weights, each bar's weight falls off exponentially with the squared distance from the window's center, so the middle of the lookback dominates and the edges taper smoothly toward zero. In the recursive form common on charting platforms, price is run through several identical one-pole smoothing stages in series; by the central limit theorem, cascading identical smoothers pushes the combined response toward that same bell shape.
Traders reach for it because of how it degrades noise. An SMA's rectangular window treats the oldest bar the same as the newest and drops it abruptly, which lets ripple through and makes the average lurch when a large bar exits the window; the Gaussian taper removes both effects, and its step response is essentially free of overshoot and ringing. The price is the universal one: lag. Period and pole count set the trade-off, with each extra pole adding smoothness and delay, and a one-pole version behaving much like an EMA.
How to calculate a Gaussian Filter
Two constructions are common, one direct and one recursive. Both take a period; the recursive form adds a pole count.
- 1Direct (FIR) form: choose a window length and a width parameter (sigma). Weight each bar by the bell curve evaluated at its distance from the window's center, normalize the weights to sum to one, and output the weighted average of price.
- 2Recursive form: choose a cutoff period and a pole count N (a small integer; each pole is one smoothing stage). Derive the per-stage smoothing coefficient from the cutoff and N, then pass price through N identical one-pole stages in series.
- 3Tune to purpose: longer periods and higher pole counts give a rounder, slower line; shorter periods and fewer poles track price more closely but let more noise through.
How it's calculated
The Gaussian filter smooths price by passing it through N identical one-pole stages whose combined impulse response approximates a normal curve.
This is John Ehlers' recursive Gaussian filter; expanding the cascade gives the published binomial forms, e.g. 2 poles: GF_t = alpha^2 × x_t + 2 × (1 - alpha) × GF_{t-1} - (1 - alpha)^2 × GF_{t-2}.
More poles mean more smoothing and more lag at the same period.
A separate FIR variant weights the last few bars by a sampled normal curve and divides by the weight sum; the recursive version above is the common TA implementation.
How traders use it
- As a trend baseline: the filter's slope and price's position relative to it give a bias read with fewer flips than a raw moving average of similar length.
- As the centerline of a channel: bands drawn a volatility multiple around the filter turn it into a mean-plus-envelope system for riding trends or fading extremes.
- As a pre-smoother: running price or an indicator input through a Gaussian stage before computing momentum reduces false crossings, at the cost of added delay.
- In crossover logic: pairs of Gaussian filters of different lengths, or price crossing the filter, reuse the standard moving average crossover grammar with smoother lines.
Gaussian Filter vs related filters
Ehlers SuperSmoother: Both come from the DSP tradition John Ehlers brought to trading. The SuperSmoother is a specific two-pole recursive design aimed at removing very short cycle noise with minimal lag; a Gaussian filter targets the bell-shaped response and grows smoother, and slower, as poles are added.
ALMA: ALMA is a Gaussian-weighted average with an offset parameter that shifts the bell's peak toward recent bars to cut lag. A plain Gaussian filter keeps the kernel centered or uses the recursive cascade, so it is more symmetric but laggier at the same length.
SMA: The SMA is the rectangular-window case: equal weights with hard edges. The Gaussian's taper suppresses the ripple and the exit-jump an SMA shows when a large bar leaves its window.
Gaussian Filter FAQ
Turn Gaussian Filter into a trading strategy.
Open the implementation from this page in Vela. Quant, our coding agent, builds the strategy with you and backtests it on real data.
Browse this familyTrend104 concepts mapped · 104 in the Library
- Adaptive-lookback MA
- ADX / DMI System
- Alligator
- ALMA
- Anchored MA
- Andrews' Pitchfork
- Aroon
- ATR Trailing Regime
- Bessel Filter
- Breakout
- Butterworth Filter
- Chande Kroll Stop
- Chandelier Stop
- Chebyshev Filters
- Climactic Moves
- Continuation
- Coral Trend
- Correlation Trend Indicator
- Death Cross
- DEMA
- Displaced MA
- Donchian Trend Rules
- Dynamic S/R Via MA
- Ehlers Instantaneous Trendline
- Ehlers SuperSmoother
- Elastic Volume-weighted MA
- Elliptic Filter
- EMA
- Fan Principle
- FRAMA
- Gann Box
- Gann Fan & Angles
- Gann HiLo Activator
- Gann Method
- Gann Square of 9
- Gaussian Filter
- Geometric MA
- Golden Cross
- Guppy GMMA
- Halftrend
- Harmonic MA
- Higher-timeframe Trend Filter
- HMA
- Ichimoku Signals
- Ichimoku System
- Ichimoku Theories
- JMA
- KAMA
- Kaufman Efficiency Ratio
- Laguerre Filter
- Linear-regression Channel
- LSMA
- MA Envelope
- MA of MA
- MA Ribbon
- MA Slope Filter
- MAMA/FAMA
- McGinley Dynamic
- MLMA
- Moving Average Crossovers
- NRTR
- Order-statistic Filters
- Parabolic SAR
- Parallel Channel
- Polynomial Regression Band
- Pullback
- R-squared Trend Fit
- Rainbow MA Stack
- Random Walk Index
- Range Filter
- Retest
- Reversal
- RMA
- Savitzky-Golay Filter
- Sine-weighted MA
- SMA
- Speed Resistance Lines
- Standard-error Channel
- Supertrend
- Swiss Army Knife Filter
- SWMA
- T3
- TEMA
- TRAMA
- Trend Acceleration/inflection
- Trend Exhaustion
- Trend Intensity Index
- Trend Magic
- Trend Regime Label
- Trend-quality Composites
- Trendline
- Triangular MA
- UHL Adaptive MA
- Ultimate Smoother
- Vertical Horizontal Filter
- VIDYA
- Volume-adjusted MA
- Vortex
- VWMA
- Weinstein Stage Analysis
- Whittaker–Henderson Smoother
- Windowed FIR Smoothing
- WMA
- ZLEMA
