← Script Marketplace
Open-source scriptindicator/v1

Standard Deviation

by Kodexius·@kodexius·

Measure the rolling dispersion of a selected price source around its average.

#standard-deviation#statistics#volatility
Standard Deviation chart preview

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
Release notes

Initial classic indicator release.

View current source ↓
Source codempl-2.0View 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

Loading…

No comments yet. Start the discussion.