peacefulLizard50262

Brown's Exponential Smoothing Volatility Adjusted (BESVA)

Introduction:

This script is a technical indicator for financial markets, designed to provide traders with a smoothed version of an asset's price using Brown's exponential smoothing method. The indicator adjusts the smoothing parameter based on the volatility of the asset, resulting in a smoother plot with less volatility and a quicker response to price changes with higher volatility.

Methodology:

The indicator begins by defining a length parameter, which determines the number of bars used in a volatility calculation. The user can input a value for this parameter, with a default of 20 bars.

Next, the script calculates the standard deviation of the asset's close price over the defined length, which serves as a measure of volatility. The standard deviation is then normalized by dividing it by the maximum standard deviation and adding a minimum value (set to 0.00005 by default). This normalization technique ensures that the indicator is comparable across different asset classes and time frames.

The normalized volatility measure is then used to adjust the smoothing parameter for the exponential moving average. Specifically, the smoothing parameter is set to the normalized volatility measure, with the minimum value used when the volatility is at its minimum. As the volatility increases, the smoothing parameter decreases, resulting in a quicker response to price changes.

The resulting smoothed price plot is then plotted on the chart.

Conclusion:

This script provides a useful tool for traders looking to analyze the trends in an asset's price while taking into account its volatility. The adjustable smoothing parameter ensures that the indicator responds appropriately to changes in volatility, making it a valuable addition to a trader's toolkit.
Notas de Lançamento:
added double smoothing option

Script de código aberto

Dentro do verdadeiro espírito TradingView, o autor deste script publicou ele como um script de código aberto, para que os traders possam compreender e checar ele. Um viva ao autor! Você pode usá-lo gratuitamente, mas a reutilização deste código em uma publicação é regida pelas Regras da Casa. Você pode favoritá-lo para usá-lo em um gráfico.

Aviso legal

As informações e publicações não devem ser e não constituem conselhos ou recomendações financeiras, de investimento, de negociação ou de qualquer outro tipo, fornecidas ou endossadas pela TradingView. Leia mais em Termos de uso.

Quer usar esse script no gráfico?