JSterz

Realized Volatility

JSterz Atualizado   
Realized / Historical Volatility
Calculates historical, i.e. realized volatility of any underlying. If frequency is not the daily, but for example 6h, 30min, weeks or months, it scales the initial setting to be suitable for the different time frame.

Examples with default settings (30 day volatility, 365 days per year):

A) Frequency = Daily:
Returns 30 day historical volatility, under the assumption that there are 365 trading days in a year.

B) Frequency = 6h:
Still returns 30 day historical volatility, under the assumption that there are 365 trading days in a year. However, since 6h granularity fits 4 times in 24 hours, it rescales the look back period to rather 30*4 = 120 units to still reflect 30 day historical volatility.
Notas de Lançamento:
- there is originally by TradingView a mean adjustment in the stdev function (normal mean adjusted std deviation), now we use absolute variance
- now it is possible to use EWMA vol, which introduces a decay factor, this reduces the weight of price jumps in the past
Notas de Lançamento:
Changed color and chart
Notas de Lançamento:
Implemented multiple design and default changes. In particular now it selects basis = 365 automatically if the underlying is "crypto" and else uses a basis of 255. Please let me know if you want any other changes.
Notas de Lançamento:
Minor bugfix
Notas de Lançamento:
Changed default plot and added a tooltop.

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?