indicator · own pane · open source
Chaikin Volatility
Running…
Loading chart…
About
Chaikin Volatility is the percent change of the smoothed high-low range — turns positive on a volatility expansion, negative on a contraction.
- Crosses above zero = range is widening (trend regime opening).
- Crosses below zero = range is narrowing (squeeze candidate).
Source code
//@version=5
indicator("Chaikin Volatility", overlay=false)
len = input.int(10, "Rate-of-change length", minval=1, maxval=100)
e1 = ta.rma(high - low, 10)
cv = 100 * (e1 - e1[len]) / e1[len]
hline(0, "Zero", color=color.gray)
p_Chaikin_Vol = plot(cv, "Chaikin Vol", color=color.purple, linewidth=2)
alertcondition(ta.crossover(cv, 0), "Vol expanding", "Chaikin Volatility crossed above zero")
alertcondition(ta.crossunder(cv, 0), "Vol contracting", "Chaikin Volatility crossed below zero")
No comments yet.
Sign in to comment.