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 :)
從喜愛的腳本中移除 添加到喜愛的腳本
@alexgrover sir superb.
回覆
@alexgrover , Impressive script !! Thanks for sharing.
+1 回覆
alexgrover jsmehra
@jsmehra, You are welcome :)
回覆
Hi Alex,

Thanks for sharing!!!! It is Great!!!!
+1 回覆
alexgrover sudhir.mehta
@sudhir.mehta, Thank you :)
回覆
Great Indicator!!
+1 回覆
alexgrover icrypto1
@icrypto1, Thank your very much for your support :)
回覆
Thanks Alex... definitely smoother and quicker to alert … !!
+1 回覆
alexgrover idrisbengali
@idrisbengali, Right ? I'am glad you like the indicator :)
回覆
Thank you for sharing Alex :)
+1 回覆
首頁 股票篩選器 外匯篩選器 加密貨幣篩選器 全球財經日曆 如何運作 圖表功能 價格 網站規則 版主 網站 & 經紀商解決方案 小工具 圖表解決方案 尋求幫助 功能請求 部落格 & 新聞 常見問題 維基 推特
概述 個人資料設定 賬戶和賬單 TradingView幣 我的客服工單 尋求幫助 發表的想法 粉絲 正在關注 私人訊息 在線聊天 登出