Công cụ hiển thị
- 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.
Nội dung chỉ nhằm mục đích giáo dục và cung cấp thông tin chung, không phải tư vấn đầu tư, tài chính, pháp lý hoặc thuế. Forex và CFD có rủi ro cao và có thể làm mất toàn bộ số tiền. Hãy tự kiểm tra pháp luật, giấy phép, điều khoản và mức độ phù hợp trước khi quyết định. Chartara không bảo đảm tính chính xác, đầy đủ hoặc kết quả.