FULL DESCRIPTION
Gaussian Channel [DW] β Adaptive Trend Filter with Volatility Bands for cTrader
A faithful cTrader port of DonovanWall's acclaimed Gaussian Channel indicator. This overlay applies a multi-pole IIR (Infinite Impulse Response) Gaussian filter to price data, producing an ultra-smooth trend line surrounded by volatility-based bands β all with dynamic color that shifts between green and red as the trend direction changes.
The Gaussian filter is mathematically superior to standard moving averages: each additional pole increases the smoothing order, progressively eliminating high-frequency noise while preserving the underlying trend signal with minimal distortion.
π¬ HOW IT WORKS
The Gaussian Filter (Core Engine)
At the heart of this indicator is John Ehlers' IIR Gaussian filter implementation. Instead of a simple moving average, the filter applies an exponential smoothing kernel multiple times in succession (one pass per "pole"). The result is a response curve that closely approximates a true Gaussian distribution in the frequency domain.
The smoothing coefficient (alpha) is derived from the sampling period you choose. It is computed using Ehlers' formula based on the cosine of the angular frequency and a correction factor for the number of poles. The recursive filter equation uses binomial coefficients (Pascal's triangle) to combine past filter values β producing a mathematically exact multi-pole Gaussian response.
In practical terms: more poles means smoother output with less lag per unit of smoothing compared to stacking simple moving averages.
Volatility Bands (The Channel)
The upper and lower bands are constructed by applying the same Gaussian filter to the True Range, then adding/subtracting the filtered TR multiplied by a configurable factor. This creates a channel that dynamically expands during volatile conditions and contracts during quiet markets β similar in concept to Bollinger Bands but with a far smoother, lower-noise envelope.
Dynamic Color
The center line and both bands change color based on the filter's direction: green when the filter is rising, red when it is falling. Color transitions are handled seamlessly β both the outgoing and incoming color series are drawn on the transition bar to prevent visual gaps between segments.
β‘ SPECIAL MODES
Reduced Lag Mode
Standard Gaussian filters introduce phase delay proportional to their smoothing strength. When Reduced Lag is enabled, the indicator pre-processes the input series by adding the difference between the current value and the value N bars ago (where N is the calculated lag). This effectively anticipates the input, significantly reducing the filter's delay while maintaining most of its smoothing properties.
Fast Response Mode
When enabled, the final output is averaged between the full N-pole filter and the 1-pole filter. The 1-pole version reacts faster (with more noise), while the N-pole version is smoother (with more lag). Blending them produces a compromise: faster reaction to trend changes without fully sacrificing smoothness.
Both modes can be combined for maximum responsiveness, or left off for the purest, smoothest Gaussian output.
π WHAT YOU SEE ON THE CHART
- Center Line β The Gaussian-filtered price (HLC3), drawn in green when rising and red when falling. This is your primary trend reference.
- Upper Band β The center line plus the Gaussian-filtered True Range times the multiplier. Acts as a dynamic resistance/overbought zone.
- Lower Band β The center line minus the Gaussian-filtered True Range times the multiplier. Acts as a dynamic support/oversold zone.
- Color Shifts β Seamless transitions between bullish (green) and bearish (red) segments, with no gaps or overlaps at direction changes.
π HOW TO USE
Trend Identification The most immediate use: when the channel is green, the trend is up; when red, the trend is down. Color transitions mark potential trend reversals. This alone replaces multiple moving average crossover systems with a single, cleaner signal.
Support/Resistance from the Bands In an uptrend, the lower band acts as dynamic support β pullbacks that touch or approach it are potential long entries. In a downtrend, the upper band acts as dynamic resistance β rallies into it offer potential short entries.
Breakout Confirmation When price closes outside the channel (above the upper band or below the lower band), it signals strong momentum. Combine this with volume or market structure analysis to confirm breakout trades.
Filtering Other Signals Use the Gaussian Channel as a directional filter: only take long setups from other indicators when the channel is green, and short setups when it is red. This dramatically reduces false signals from oscillators and pattern-based tools.
Tuning the Parameters
- Lower Sampling Period (e.g., 50β80) for intraday scalping on M1βM15.
- Default 144 works well on M30βH4 for swing trading.
- Higher values (200+) on Daily/Weekly for position trading and macro trend identification.
- Increase Poles (5β7) for ultra-smooth output on noisy instruments. Decrease (2β3) for faster, more reactive filtering.
- Adjust TR Multiplier to widen (1.5β2.0) or narrow (0.8β1.2) the channel to match the instrument's volatility profile.
π‘ TIPS
- Start with the defaults (4 poles, period 144, multiplier 1.414) β they are well-calibrated for most forex pairs on H1βH4.
- Enable Reduced Lag if you find the filter lags too much behind sharp moves, but note it can introduce slight overshoot.
- Enable Fast Response when you want quicker color transitions without reducing the number of poles.
- Combining both modes gives maximum responsiveness β useful on lower timeframes but may reduce the filtering quality on higher ones.
- The 1.414 multiplier is not arbitrary β it equals the square root of 2, a value derived from Ehlers' original research on optimal band width for Gaussian-distributed noise.
β οΈ DISCLAIMER
This indicator is a technical analysis tool designed for trend identification and volatility visualization. It does not generate automatic buy/sell signals and should not be used as the sole basis for trading decisions. Always use proper risk management and combine with your own analysis. Past performance does not guarantee future results. Trading involves significant risk of loss.

![Logotipo de "Trend Angle Indicator [Iridio Capital]"](https://cdn.ctrader.com/10679735-dd41-4a43-9a66-ece9bcbdf9b4_trend angle-logo.png)