indicator · own pane · open source
Historical Volatility indicator
Historical Volatility is a free open-source indicator. Historical Volatility annualises the rolling standard deviation of log returns — the… Deepwick Script runs a subset of Pine Script.
Running…
Loading chart…
What Historical Volatility does
Historical Volatility annualises the rolling standard deviation of log returns — the classic vol number used by options traders and risk managers.
- Read it as expected 1-year move if today's regime persists.
- Useful for sizing stops and comparing implied vs realised vol.
Source code
Deepwick Script, a subset of Pine Script · read-only
//@version=6
indicator("Historical Volatility", overlay=false)
len = input.int(20, "Lookback", minval=2, maxval=252)
src = input.source(close, "Source")
colorMid = input.color("color.orange", "Color Mid")
hv = 100 * ta.stdev(ta.change(src) / src[1], len) * math.sqrt(252)
p_HV__ = plot(hv, "HV %", color=colorMid, linewidth=2)
No comments yet.
Sign in to comment.