EMA-Deviation-Corrected N-Pole Gaussian Filter [Loxx]

EMA-Deviation-Corrected N-Pole Gaussian Filter is a moving average that uses EMA-deviation correcting to produce signals.

█ EMA-Deviation Correction

The origin of the correcting algorithm can be attributed to Dr. Alexander Uhl, who developed a method to filter the moving average and identify signals. Originally, this method utilized standard deviation as a measure to correct the average values.

However, the current indicator in question employs a modified version of the correcting method. Instead of using standard deviation for calculation, it uses EMA deviation, which stands for Exponential Moving Average deviation. The idea behind using EMA deviation is two-fold:

Efficiency: EMA deviation can be calculated faster than standard deviation, resulting in more efficient code execution.

Signal Reduction: Surprisingly, this modified "correcting" approach generates fewer signals compared to using standard deviation. This is because EMA deviation is more responsive to price changes, making the correcting process less sensitive to whipsaws or false signals.

█ N-Pole Gaussian Filter

N-Pole Gaussian Filter is an advanced Gaussian filter, extending beyond the traditional 4-pole limitation found in Ehlers' original Gaussian Filter formulas. This enhanced version can handle up to 15 poles, but due to precision constraints, going beyond this doesn't yield significantly different results.

A gaussian filter with...
  • One Pole: f = alpha*g + (1-alpha)f
  • Two Poles: f = alpha*2g + 2(1-alpha)f - (1-alpha)2f
  • Three Poles: f = alpha*3g + 3(1-alpha)f - 3(1-alpha)2f + (1-alpha)3f
  • Four Poles: f = alpha*4g + 4(1-alpha)f - 6(1-alpha)2f + 4(1-alpha)3f - (1-alpha)4f
  • and so on...

For an equivalent number of poles the lag of a Gaussian is about half the lag of a Butterworth filters: Lag = N*P / pi^2, where,
N is the number of poles, and
P is the critical period

Ehlers Gaussian filter, a creation of John F. Ehlers, is renowned for its smoothing capabilities. It's adept at sidelining rapid price fluctuations more effectively than the standard Exponential Moving Average (EMA), and it does so with minimal lag. The filter's behavior is akin to the Gaussian bell curve, and its mathematical representation varies based on the number of poles it's designed to handle.

In comparison to other filters like the Butterworth, the Gaussian filter boasts about half the lag for a similar number of poles. This is quantified using a specific formula that considers the number of poles and the critical period. The filter's design ensures it operates efficiently, even with minimal data.

█ Included
  • Loxx's Expanded Source Types
  • Signals
  • Alerts
  • Bar coloring

Public Telegram Group, t.me/algxtrading_public

VIP Membership Info: www.patreon.com/algxtrading/membership
보호된 스크립트입니다
이 스크립트는 클로즈 소스로 게시되며 자유롭게 사용할 수 있습니다. 당신은 스크립트를 차트에 사용하기 위해 그것을 즐겨찾기 할 수 있습니다. 소스 코드는 보거나 수정할 수 없습니다.

이 정보와 게시물은 TradingView에서 제공하거나 보증하는 금융, 투자, 거래 또는 기타 유형의 조언이나 권고 사항을 의미하거나 구성하지 않습니다. 자세한 내용은 이용 약관을 참고하세요.

차트에 이 스크립트를 사용하시겠습니까?