indicator · own pane · open source
Bollinger Squeeze Histogram indicator
Bollinger Squeeze Histogram is a free open-source indicator. Bollinger Squeeze Histogram is a momentum proxy = close − SMA(close,20) with the… Deepwick Script runs a subset of Pine Script.
Running…
Loading chart…
What Bollinger Squeeze Histogram does
Bollinger Squeeze Histogram is a momentum proxy = close − SMA(close,20) with the BB-inside-KC squeeze flagged as a grey background.
- Positive histogram bars = bullish momentum building.
- Negative histogram bars = bearish momentum building.
- Grey background = squeeze is on, prepare for release.
Source code
Deepwick Script, a subset of Pine Script · read-only
//@version=6
indicator("Bollinger Squeeze Histogram", overlay=false)
len = input.int(20, "Length", minval=2, maxval=200)
bbMult = input.float(2, "BB multiplier", minval=0.5, maxval=5, step=0.1)
kcMult = input.float(1.5, "KC multiplier", minval=0.5, maxval=5, step=0.1)
colorNeutral = input.color("color.gray", "Color Neutral")
colorLine = input.color("color.blue", "Color Line")
bbw = ta.bbw(close, len, bbMult)
[km, ku, kl] = ta.kc(close, len, kcMult)
sqz = bbw < (ku - kl) / (ta.sma(close, len) * 0.1)
bgcolor(sqz ? color.new(colorNeutral, 85) : na)
hline(0, "Zero", color=colorNeutral)
p_Mom = plot(close - ta.sma(close, len), "Mom", color=colorLine, style=plot.style_histogram, linewidth=2)
No comments yet.
Sign in to comment.