themocrew

Gaussian Average Convergence Divergence

What exactly is the Ehlers Gaussian filter?
This filter is useful for smoothing. It rejects higher frequencies (fast movements) more effectively than an EMA and has less lag. John F. Ehlers published it in "Rocket Science For Traders." Dr. René Koch was the first to implement it in Wealth-Lab.

The transfer response of a Gaussian filter is described by the well-known Gaussian bell-shaped curve. Only the upper half of the curve describes the filter in the case of low-pass filters. The use of gaussian filters is a step toward achieving the dual goals of lowering lag and lowering the lag of high-frequency components relative to lower-frequency components.

From Ehlers Book: "The first objective of using smoothers is to eliminate or reduce the undesired high-frequency components in the price data. Therefore these smoothers are called low-pass filters, and they all work by some form of averaging. Butterworth low-pass filters can do this job, but nothing comes for free. A higher degree of filtering is necessarily accompanied by a larger amount of lag. We have come to see that is a fact of life."

References John F. Ehlers: "Rocket Science For Traders, Digital Signal Processing Applications", Chapter 15: "Infinite Impulse Response Filters"
Release Notes:
- Made some changes that optimized the code
- Added different customization options
- Chart Updated
Release Notes:
- Fixed bug with colors
- Added custom band settings
Release Notes:
- Updated more customization options for vertical line
Release Notes:
- Updated bug with band fill
Open-source script

In true TradingView spirit, the author of this script has published it open-source, so traders can understand and verify it. Cheers to the author! You may use it for free, but reuse of this code in a publication is governed by House Rules. You can favorite it to use it on a chart.

Disclaimer

The information and publications are not meant to be, and do not constitute, financial, investment, trading, or other types of advice or recommendations supplied or endorsed by TradingView. Read more in the Terms of Use.

Want to use this script on a chart?