This indicator represents the improved version of Adaptive Laguerre Filter in which is applied the Laguerre Polynomial of any order(default value = 4). Parameters AdaptiveSmooth (default 5) and AdaptiveSmooth (default 4) serve to smooth a variable Gamma factor which is based on how well the filter is tracking a past N bars prices.
Also there is an option to plot the non-adaptive Laguerre filter using Length in bars and AdaptiveMode=0.
Attachment 1245Code:extern int TimeFrame = 0; //Time Frame in min extern int Price = 0; //Applied Price: 0-C,1-O,2-H,3-L,4-Median,5-Typical,6-Weighted extern int Length = 10; //Length extern int Order = 4; //Laguerre Filter Order extern int AdaptiveMode = 1; //Adaptive Mode:0-off,1-on extern int AdaptiveSmooth = 5; //Adaptive Factor Smoothing Period extern int AdaptiveSmoothMode = 4; //Adaptive Factor Smoothing Mode:0-SMA,1-EMA,2-Wilder,3-LWMA,4-Median extern int ColorMode = 1; //Color Mode(0-off,1-on)
On the picture you can see 2 filters with Order=2(fast) and Order=4(slow).
Bookmarks