Open-source scriptindicator/v1
Standard Deviation
Measure the rolling dispersion of a selected price source around its average.
#standard-deviation#statistics#volatility
Description
Standard Deviation quantifies how widely recent observations are distributed around their mean. Rising readings indicate greater dispersion and volatility, while falling readings indicate that values are clustering more closely.
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 updatedStandard Deviation · Aug 31, 2026
Source codempl-2.0View sourceHide source
indicator("Standard Deviation", { overlay: false });
const length = input.int("Length", 20, { min: 2, max: 500 });
const source = input.source("Source", "close");
plot(stdev(source, length), { title: "Standard Deviation", color: "#7c4dff", lineWidth: 2 });
Community discussion
0 comments
No comments yet. Start the discussion.