📈 Bollinger Bands Calculator

Compute Bollinger Bands: midline, bands, %B and bandwidth.

📐 計算公式

中軌 = MA(N);上/下軌 = 中軌 ± K × σN;σN = √( Σ(price_i − MA)² / N )

布林帶以 N 週期移動平均為中軌、以 K 倍標準差為頻寬;價格觸及上/下軌分別視為超買/超賣訊號,頻寬收窄常意味波動率下降。

📖 公式:中軌 SMA = 近N日收盤價均值;上軌 = SMA + K×σ;下軌 = SMA − K×σ(σ為N日總體標準差);%B = (價格−下軌)/(上軌−下軌)×100;頻寬 = (上軌−下軌)/SMA×100。