TradingView
alexgrover
23 Jul 2018 pukul 23.14

Hamming Windowed Volume Weighted Moving Average 

EUR/USDOANDA

Deskripsi

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.
Komentar
anoojpatel
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 :'(
alexgrover
@1996anoojpatel, You are correct, will be fixed in an update.
alexgrover
@1996anoojpatel, I decided to introduce new windows, this time it is done the right way.

tradingview.com/script/hoDB087Q-Windowed-Volume-Weighted-Moving-Average/

Thanks for your comment !
adamli
nice
DanielMinchev
beautiful work
Lebih lanjut