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.
This content is for general education and information only. It is not investment, financial, legal or tax advice, and it is not an offer or invitation to trade. Forex and CFDs are high risk and you may lose all funds committed. Verify applicable law, licences, product terms and suitability independently before making any decision. Information can change and Chartara does not guarantee accuracy, completeness or outcomes. Decisions and resulting gains or losses remain the user’s responsibility to the extent permitted by applicable law.