alexgrover

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.

Check out the indicators we are making at luxalgo: www.tradingview.com/u/LuxAlgo/
סקריפט קוד פתוח

ברוח TradingView אמיתית, מחבר הסקריפט הזה פרסם אותו בקוד פתוח, כך שסוחרים יכולים להבין ולאמת אותו. כל הכבוד למחבר! אתה יכול להשתמש בו בחינם, אך שימוש חוזר בקוד זה בפרסום כפוף לכללי הבית. אתה יכול להכניס אותו למועדפים כדי להשתמש בו בגרף.

כתב ויתור

המידע והפרסומים אינם אמורים להיות, ואינם מהווים, עצות פיננסיות, השקעות, מסחר או סוגים אחרים של עצות או המלצות שסופקו או מאושרים על ידי TradingView. קרא עוד בתנאים וההגבלות.

רוצה להשתמש בסקריפ זה בגרף?