Laguerre Filter is developed by John EHLERS. change alpha coefficient to increase/decrease lag and smoothness.
This is a four element Laguerre Filter derived from Finite Impulse Response (FIR) filter by changing the relative amplitudes of the samples.
However, the lag of a FIR filter is approximately half the filter length. The result is that if we want greater smoothing we must accept the additional lag in conventional filters. Laguerre is the method says EHLERS in one of his articles about Laguerre Filter.
"The FIR filter has a lag of only 1.5 bars and only moderately smoothes the price data. On the other hand, the Laguerre filter is dramatically smoother and also has significant lag. You can decrease the smoothing and the lag by decreasing the damping factor. When the damping factor is reduced to zero, the Laguerre filter is identical to the FIR filter. This is a simple way to control the action of a moving average and still use only a few data samples in the calculation."
Thank you. Great translation of Ehlers' genius.
Upgrade to //@version=4 seems straightforward.
Make function input() pass type=input.float and type=input.bool
Also object orientate the color variables: Color = colorchange ? (LagF > LagF[1] ? color.green : color.red) : color.yellow
ICEKI
⋅
Hey long time haven't seen your posting, how recently?
Thanks for your posting KivancOzbilgic =D
Finansal_Ozgurluk_Yolculugu
⋅
Ellerinize sağlık hocam teşekkürler. @tayfun26 bilgine.
dos32101
⋅
Gracias ya lo he encontrado. Correcto
Om3gatrad3r
⋅
very cool! thanks Kivan
IBOBI
⋅
formulu kopyalayarak hallettım
Nihasvioo7
⋅
Hi sir.. how to add alert on color changing..? please give code thank u
I use this combined with the adaptive filter and get good trend signals. But I face an issue for IPOs where it really messes up the charts.. I was wondering if there's a way to fix it and skip plotting it for first few candles? thanks.
Upgrade to //@version=4 seems straightforward.
Make function input() pass type=input.float and type=input.bool
Also object orientate the color variables: Color = colorchange ? (LagF > LagF[1] ? color.green : color.red) : color.yellow