Hamming Windowed Volume Weighted Moving Average

Applying a window to the filter weights provides sometimes extra control over the characteristics of the filter.In this script an hamming window is applied to the volume before being used as a weight.In general this process smooth the frequency response of a filter.

Lets compare the classic vwma with hamming windowed vwma

Something i noticed is that windowed filters depending on their period (high ones in general) tend to make less bad crosses with the price (at least with the hamming window)

Here are some data regarding number of crosses with period 50 with the hamming vwma in orange and the classic vwma in purple

Feel free to use the hamming window when using weighted filter.
從喜愛的腳本中移除 添加到喜愛的腳本
I think this hamming window should be precomputed in an array of the window length. I think this implementation creates an oscillating hamming filter oscillates rather than being a sliding window over the volume. Sadly TV doesnt have arrays :'(
+1 回覆
alexgrover 1996anoojpatel
@1996anoojpatel, You are correct, will be fixed in an update.
+2 回覆
alexgrover 1996anoojpatel
@1996anoojpatel, I decided to introduce new windows, this time it is done the right way.

Thanks for your comment !
+1 回覆
beautiful work
+1 回覆
首頁 股票篩選器 外匯篩選器 加密貨幣篩選器 全球財經日曆 節目 如何運作 圖表功能 價格 推薦朋友 網站規則 幫助中心 網站 & 經紀商解決方案 小工具 圖表解決方案 輕量圖表庫 部落格 & 新聞 推特
概覽 個人資料設定 賬戶和賬單 推薦朋友 我的客服工單 幫助中心 發表的想法 粉絲 正在關注 私人訊息 在線聊天 登出