alexgrover

Kaufman Adaptive Least Squares Moving Average

Introduction

It is possible to use a wide variety of filters for the estimation of a least squares moving average , one of the them being the Kaufman adaptive moving average ( KAMA ) which adapt to the market trend strength, by using KAMA in an lsma we therefore allow for an adaptive low lag filter which might provide a smarter way to remove noise while preserving reactivity.

The Indicator

The lsma aim to minimize the sum of the squared residuals, paired with KAMA we obtain a great adaptive solution for smoothing while conserving reactivity. Length control the period of the efficiency ratio used in KAMA , higher values of length allow for overall smoother results. The pre-filtering option allow for even smoother results by using KAMA as input instead of the raw price.


The proposed indicator without pre-filtering in green, a simple moving average in orange, and a lsma with all of them length = 200. The proposed filter allow for fast and precise crosses with the moving average while eliminating major whipsaws.


Same setup with the pre-filtering option, the result are overall smoother.

Conclusion

The provided code allow for the implementation of any filter instead of KAMA , try using your own filters. Thanks for reading :)
Supprimer des scripts favoris Ajouter aux scripts favoris
@alexgrover sir superb.
+1 Répondre
alexgrover shreyasimijo
@shreyasimijo, Thx for your comment :)
Répondre
@alexgrover , Impressive script !! Thanks for sharing.
+1 Répondre
alexgrover jsmehra
@jsmehra, You are welcome :)
Répondre
Hi Alex,

Thanks for sharing!!!! It is Great!!!!
+1 Répondre
alexgrover sudhir.mehta
@sudhir.mehta, Thank you :)
Répondre
Great Indicator!!
+1 Répondre
alexgrover icrypto1
@icrypto1, Thank your very much for your support :)
Répondre
Thanks Alex... definitely smoother and quicker to alert … !!
+1 Répondre
alexgrover idrisbengali
@idrisbengali, Right ? I'am glad you like the indicator :)
Répondre
Accueil Filtre d'actions Filtre Forex Filtre Crypto Calendrier économique Comment ça marche Caractéristiques du graphique Prix Règles de conduite Modérateurs Solutions site web & courtier Widgets Solutions de cartographie Obtenir de l'aide Demande de fonctionnalité Blog & News Questions Fréquentes Wiki Twitter
Profil Paramètres du Profil Compte et Facturation TradingView Coins Mes tickets au support Obtenir de l'aide Idées Publiées Suiveurs Suivi Messages privés dialogue en ligne Se Déconnecter