Editors' picks
OPEN-SOURCE SCRIPT

Function - Weighted Standard Deviation

18 464
Calculates weighted mean, variance, standard deviation, MSE and RMSE from time series variables or arrays.
When calculating from arrays, the function expects index 0 to be the most recent sample and weight values.

Disclaimer

The information and publications are not meant to be, and do not constitute, financial, investment, trading, or other types of advice or recommendations supplied or endorsed by TradingView. Read more in the Terms of Use.