Source: https://fxcodebase.com/code/viewtopic.php?f=17&t=74838
Forum: 17 · Topic 74838 · 9 post(s)
Apprentice · Sat May 04, 2024 3:13 am

This script presents an implementation of the digital smoothing filter introduced by John Ehlers in his article “The Ultimate Smoother” from the April 2024 edition of TASC’s Traders’ Tips.
█ CONCEPTS
The UltimateSmoother preserves low-frequency swings in the input time series while attenuating high-frequency variations and noise. The defining input parameter of the UltimateSmoother is the critical period, which represents the minimum wavelength (highest frequency) in the filter’s pass band. In other words, the filter attenuates or removes the amplitudes of oscillations at shorter periods than the critical period.
According to Ehlers, one primary advantage of the UltimateSmoother is that it maintains zero lag in its pass band and minimal lag in its transition band, distinguishing it from other conventional digital filters (e.g., moving averages). One can apply this smoother to various input data series, including other indicators.
█ CALCULATIONS
Ehlers derived the UltimateSmoother using inspiration from the design principles he learned from his experience with analog filters, as described in the original publication. On a technical level, the UltimateSmoother’s unique response involves subtracting a high-pass response from an all-pass response. At very low frequencies (lengthy periods), where the high-pass filter response has virtually no amplitude, the subtraction yields a frequency and phase response practically equivalent to the input data. At other frequencies, the subtraction achieves filtration through cancellation due to the close similarities in response between the high-pass filter and the input data.
MT4 version. https://fxcodebase.com/code/viewtopic.p … 13#p155913
Apprentice · Sat May 04, 2024 4:02 am

█ OVERVIEW
This script, inspired by the “Ultimate Channels and Ultimate Bands” article from the May 2024 edition of TASC’s Traders’ Tips, showcases the application of the UltimateSmoother by John Ehlers as a lag-reduced alternative to moving averages in indicators based on Keltner channels and Bollinger Bands®.
█ CONCEPTS
The UltimateSmoother, developed by John Ehlers, is a digital smoothing filter that provides minimal lag compared to many conventional smoothing filters, e.g., moving averages. Since this filter can provide a viable replacement for moving averages with reduced lag, it can potentially find broader applications in various technical indicators that utilize such averages.
This script explores its use as the smoothing filter in Keltner channels and Bollinger Bands® calculations, which traditionally rely on moving averages. By substituting averages with the UltimateSmoother function, the resulting channels or bands respond more quickly to fluctuations with substantially reduced lag.
Users can customize the script by selecting between the Ultimate channel or Ultimate bands and adjusting their parameters, including lookback lengths and band/channel width multipliers, to fine-tune the results.
Ultimate Channels and Ultimate Bands.lua
nathanvbasko · Tue May 21, 2024 3:20 pm
I hope there will be an MQL4 version… If none… I kindly request—many thanks.
Apprentice · Wed May 22, 2024 1:44 pm
We have added your request to the development list. Development reference 412
nathanvbasko · Mon Jun 10, 2024 2:57 pm
Apprentice wrote: We have added your request to the development list. Development reference 412
Thanks Apprentice!
Apprentice · Tue Jun 25, 2024 12:37 pm
MT4 version. https://fxcodebase.com/code/viewtopic.p … 13#p155913
Danery69 · Mon Jul 01, 2024 4:28 am
Apprentice wrote: MT4 version. https://fxcodebase.com/code/viewtopic.p … 13#p155913
Ultimate-Channels-and-Ultimate-Bands, does not work with Trade station erreur 80.
Apprentice · Mon Aug 05, 2024 2:46 am

Make sure to install The Ultimate Smoother.lua
Ariel19 · Mon Dec 16, 2024 10:08 pm
Apprentice wrote: MT4 version. https://fxcodebase.com/code/viewtopic.p … 3#p155913/Retro Bowl
Thank you very much!