Open-source scriptindicator/v1
Bollinger BandWidth
Measure the distance between Bollinger Bands relative to their moving-average basis.
#bandwidth#bollinger-bands#volatility
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
Source codempl-2.0View sourceHide 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
No comments yet. Start the discussion.