indicator · on price · open source
Volatility Squeeze Pro indicator
Volatility Squeeze Pro is a free open-source indicator by @deepwick. Volatility Squeeze Pro — Bollinger Bands inside Keltner Channel = squeeze (grey background). Deepwick Script runs a subset of Pine Script.
Running…
Loading chart…
What Volatility Squeeze Pro does
Volatility Squeeze Pro — Bollinger Bands inside Keltner Channel = squeeze (grey background). Histogram shows momentum direction; release of a squeeze in the direction of momentum = high-probability breakout.
- Same logic as TTM Squeeze with cleaner histogram colouring.
Source code
Deepwick Script, a subset of Pine Script · read-only
//@version=6
indicator("Volatility Squeeze Pro", overlay=true)
len = input.int(20, "Length", minval=5, maxval=100)
bbMult = input.float(2, "BB mult", minval=0.5, maxval=5, step=0.1)
kcMult = input.float(1.5, "KC mult", minval=0.5, maxval=5, step=0.1)
colorMid = input.color("color.orange", "Color Mid")
colorLine = input.color("color.blue", "Color Line")
colorNeutral = input.color("color.gray", "Color Neutral")
[bm, bu, bl] = ta.bb(close, len, bbMult)
[km, ku, kl] = ta.kc(close, len, kcMult)
squeeze = bl > kl and bu < ku
mid = math.avg(math.avg(ta.highest(high, len), ta.lowest(low, len)), ta.sma(close, len))
mom = close - mid
p_BBMid = plot(bm, "BBMid", color=colorMid)
p_BBUpper = plot(bu, "BBUpper", color=colorLine)
p_BBLower = plot(bl, "BBLower", color=colorLine)
p_Momentum = plot(mom, "Momentum", color=colorNeutral, style=plot.style_columns)
fill(p_BBUpper, p_BBLower, color=color.new(colorLine, 92))
alertcondition(squeeze[1] and not squeeze, "Squeeze release", "Volatility squeeze released")
alertcondition(ta.crossover(mom, 0) and not squeeze, "Mom flip up", "Squeeze momentum flipped up")
No comments yet.
Sign in to comment.