TradingView
saolof
Dec 4, 2019 7:24 PM

Volume weighted LSMA 

SPDR S&P 500 ETF TRUSTArca

Description

Quick script made by reusing some functions written for other projects. This is a variation on the least squares moving average, but with custom weights on the linear regression. This gives higher weights to recent values and values with high volume.

Behaves very similarly to my volume weighted Hull moving average, especially with the hull smoothing option turned on.
Comments
robn28
hello, can you make an option where you can add deviation bands? That would be great! Thanks
arslankureshi9
hi
More