OPEN-SOURCE SCRIPT

Volatility % (Standard Deviation of Returns)

Actualizado
This script takes closing prices of candles to measure the Standard Deviation (σ) which is then used to calculate the volatility by taking the stdev of the last 30 candles and multiplying it by the root of the trading days in a year, month and week. It then multiplies that number by 100 to show a percentage.

Default settings are annual volatility (252 candles, red), monthly volatility (30 candles, blue) and weekly volatility (5 candles, green) if you use daily candles. It is open source so you can increase the number of candles with which the stdev is calculated, and change the number of the root that multiplies the stdev.
Notas de prensa
Updates:
- Changed default levels of the monthly factor from 30 to 21
- Made inputs so it is now possible to change the sample period for the standard deviation and the factor that will multiply the standard deviation. default multipliers are the roots of 5 for weekly, 21 for monthly and 252 for annual volatility.
-Changed default colors and line thickness to make it more bold.
Historical VolatilityhistoricalvolatityVolatilityvolatilityindicatorvolatilityspikevolatilty

Script de código abierto

Siguiendo fielmente el espíritu de TradingView, el autor de este script lo ha publicado en código abierto, permitiendo que otros traders puedan entenderlo y verificarlo. ¡Olé por el autor! Puede utilizarlo de forma gratuita, pero tenga en cuenta que la reutilización de este código en la publicación se rige por las Normas internas. Puede añadir este script a sus favoritos y usarlo en un gráfico.

¿Quiere utilizar este script en un gráfico?

Exención de responsabilidad