Gaussian Channel
Apr 8, 2018

The Gaussian Channel indicator provides a comprehensive trend analysis tool by utilizing Ehlers Gaussian Filters combined with lag reduction techniques and a volatility-based channel. It helps traders identify trend direction and potential exhaustion levels through a smoothed, multi-pole filtering process.
Usage
The Usage section describes how the script can be used to identify market trends and volatility boundaries. Traders typically look for the slope of the center filter line; an upward slope indicates a bullish trend, while a downward slope indicates a bearish trend. The indicator also provides custom bar coloring to visualize price momentum relative to the channel.
- Trend Direction: The center filter line changes color based on its slope, offering a clear visual cue of the current trend.
- Volatility Bands: The upper and lower bands are calculated using a filtered True Range. Prices breaking outside these bands can indicate overextended conditions or strong momentum.
- Reduced Lag Mode: When enabled, this feature applies a truncation technique to the source data to compensate for the inherent delay found in moving average calculations.
- Fast Response Mode: This setting averages a single-pole filter with the multi-pole filter, creating a more reactive output that follows price action more closely.
Details
The Gaussian Channel is based on John Ehlers' work with Gaussian filters, which are essentially exponential moving averages applied multiple times (poles) to create a sharper roll-off in the frequency domain. This script supports up to 9 poles. The calculation involves determining alpha and beta coefficients based on the user-defined sampling period.
The indicator also filters the True Range of the asset using the same Gaussian process. By adding and subtracting this filtered volatility from the main Gaussian filter, the script creates a dynamic channel. For optimal performance, the sampling period should generally be greater than the number of poles + 1 to avoid equation truncation.
Settings
- Source: The price data point used for calculations (default is HLC3).
- Poles: Determines the number of times the filter is applied (1 to 9). Higher values increase smoothness but also increase lag.
- Sampling Period: The lookback period used to calculate the filter coefficients.
- Filtered True Range Multiplier: Controls the width of the channel bands based on the filtered volatility.
- Reduced Lag Mode: A boolean toggle to enable data truncation for faster response times.
- Fast Response Mode: A boolean toggle that averages the N-pole filter with a 1-pole filter to reduce total lag.
FAQ
How do I interpret the bar colors? The bar colors are determined by the price's position relative to the filter and the bands, as well as the price's momentum. Generally, bright colors indicate strong trends, while faded colors indicate potential weakening or retracements.
What is the "Poles" setting? Poles refer to the number of stages in the Gaussian filter. More poles result in a smoother line with a steeper "cutoff" of high-frequency noise, but they introduce more lag into the output.
How can I access this indicator? You can get access on the LuxAlgo Library for charting platforms like TradingView, MetaTrader (MT4/MT5), and NinjaTrader for free.
Free indicator
Get free access to this indicator on the platforms below.
Unlock the entire LuxAlgo Library
Every indicator, every strategy, full charts, and complete access to Quant — our AI agent.