JSterz

Realized Volatility

JSterz Actualizado   
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 prensa:
- 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 prensa:
Changed color and chart
Notas de prensa:
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 prensa:
Minor bugfix
Notas de prensa:
Changed default plot and added a tooltop.

Script de código abierto

Siguiendo el verdadero espíritu de TradingView, el autor de este script lo ha publicado en código abierto, para que los traders puedan entenderlo y verificarlo. ¡Un hurra por el autor! Puede utilizarlo de forma gratuita, aunque si vuelve a utilizar este código en una publicación, debe cumplir con lo establecido en las Normas internas. Puede añadir este script a sus favoritos y usarlo en un gráfico.

Exención de responsabilidad

La información y las publicaciones que ofrecemos, no implican ni constituyen un asesoramiento financiero, ni de inversión, trading o cualquier otro tipo de consejo o recomendación emitida o respaldada por TradingView. Puede obtener información adicional en las Condiciones de uso.

¿Quiere utilizar este script en un gráfico?