What it shows
- Visualises one measurable chart condition.
- Inputs can be changed for your own test.
- The full Pine Script code is visible.
Shows when Bollinger Band width compresses relative to its baseline.
//@version=6
indicator("Chartara — Volatility Compression Radar",overlay=false)
length=input.int(20,"BB length",minval=2)
mult=input.float(2.0,"BB multiplier",minval=0.1)
base=ta.sma(close,length)
dev=ta.stdev(close,length)*mult
width=base!=0?(dev*2/base)*100:0
baseline=ta.sma(width,length)
compressed=width<baseline*0.75
plot(width,"Band width %",color=compressed?color.orange:color.aqua,linewidth=2)
plot(baseline,"Baseline",color=color.new(color.gray,35))
bgcolor(compressed?color.new(color.orange,88):na)
Compare the environment this tool depends on before opening an account.