peacefulLizard50262

Brown's Exponential Smoothing Tool (BEST)

Brown's Exponential Smoothing Tool (BEST) is a script for technical analysis in financial markets. It is designed to smooth out price fluctuations and identify trends in a given time series data.

The script begins by defining the "BEST" indicator, which will be overlaid on top of the chart. The user can then specify the source of the data (e.g. close price) and set the values for the smoothing factor (alpha) and the style of exponential smoothing (BES, DBES, or TBES).

The script then defines three functions for calculating the exponential smoothing: "bes", "tbes", and "dbes". The "bes" function applies a single iteration of exponential smoothing to the input data, using the specified alpha value. The "tbes" function applies three iterations of exponential smoothing, using the triple exponential moving average (TEMA) formula to smooth out the data even further. The "dbes" function applies two iterations of exponential smoothing, using the double exponential moving average (DEMA) formula to smooth out the data.

Finally, the script defines a "ma" function, which returns the exponential smoothing result based on the style selected by the user. The script plots the result of the "ma" function on the chart, using the color orange.

In summary, Brown's Exponential Smoothing Tool is a script for smoothing out financial time series data and identifying trends. It allows the user to choose from three different styles of exponential smoothing, each of which has its own strengths and weaknesses. By applying exponential smoothing to financial data, traders and analysts can better understand the underlying trends and make more informed decisions.

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?