OPEN-SOURCE SCRIPT

SV Volatility Indicator Basic

已更新
The SV Volatility Indicator Basic in TradingView calculates and visualizes daily and average volatility over specified periods using three lines. Here’s what it does:

1. Daily Volatility Calculation. The indicator computes daily volatility as the percentage difference between the high and low prices relative to the closing price:
2. 30-day Moving Average of Volatility. A simple moving average (SMA) is applied to the daily volatility values over the last 30 days to smooth short-term fluctuations.
3. 90-day Moving Average of Volatility. Similarly, an SMA is calculated over the last 90 days to provide a longer-term view of volatility trends.
4. Visualization:
  • Three lines are plotted:
  • Red line: Represents the daily volatility in percentage terms.
  • Blue line: Displays the 30-day moving average of volatility.
  • Green line: Shows the 90-day moving average of volatility.


This indicator helps traders analyze market volatility by providing both immediate (daily) and smoothed (30-day and 90-day) measures, aiding in trend identification and risk assessment.
版本注释
Update dailyVolatility formula
Volatility

开源脚本

本着真正的TradingView精神,此脚本的作者已将其开源,以便交易者可以理解和验证它。向作者致敬!您可以免费使用它,但在出版物中重复使用此代码受网站规则约束。 您可以收藏它以在图表上使用。

想在图表上使用此脚本?

免责声明