← Script Marketplace
Open-source scriptindicator/v1

Bollinger BandWidth

by Kodexius·@kodexius·

Measure the distance between Bollinger Bands relative to their moving-average basis.

#bandwidth#bollinger-bands#volatility
Bollinger BandWidth chart preview

Description

Bollinger BandWidth expresses band width as a ratio of the central average. Contracting values describe lower relative volatility and expanding values describe higher relative volatility, making the indicator useful for studying volatility cycles.

Open-source script. Everyone can inspect the source code, use the script on a chart, and save an editable copy.

Release notes

Version history · 1 published version

Version 1CurrentChart updatedBollinger BandWidth · Aug 31, 2026
Release notes

Initial classic indicator release.

View current source ↓
Source codempl-2.0View source

indicator("Bollinger BandWidth", { overlay: false });
const length = input.int("Length", 20, { min: 2, max: 500 });
const mult = input.float("Standard Deviations", 2, { min: 0.1, max: 10, step: 0.1 });
const source = input.source("Source", "close");
plot(bbw(source, length, mult), { title: "BBW", color: "#2962ff", lineWidth: 2 });
  

Community discussion

0 comments

Loading…

No comments yet. Start the discussion.