OPEN-SOURCE SCRIPT

Best Volatility Calculator

6852
Hello traders,

This indicator shows the average volatility, of last N Periods, for the selected time frames.

You can select up to 2 timeframes with this version

Volatility is defined as the close of current candle - close of the previous N candle

Presented as Currency, Pip, percentage labels in a panel below.
Will calculate in real-time only for the current instrument on the chart.

The indicator is coded to not be repainting

Example

In the indicator screenshot, I used a lookback period of 1.
That compares the current candle close versus the previous one for the daily and weekly timeframe

Showing how the results are calculated for the weekly calculations

snapshot

Enjoy :)

Best regards
Dave

Disclaimer

The information and publications are not meant to be, and do not constitute, financial, investment, trading, or other types of advice or recommendations supplied or endorsed by TradingView. Read more in the Terms of Use.