Open-source scriptindicator/v1
Average True Range
by Kodexius·@kodexius·
Monitor average true range in a separate pane to compare changing market volatility over time.
#atr#range#volatility
Open-source script. Everyone can inspect the source code, use the script on a chart, and save an editable copy.
About this script
Average True Range displayed as a histogram in its own pane. Change the lookback length to measure short- or long-term volatility without introducing a directional bias.
Source code
mpl-2.0
// Average True Range volatility histogram
indicator("Average True Range", { overlay: false });
const len = input.number("ATR length", 14, { min: 1, max: 100 });
const value = atr(len);
plot(value, { title: "ATR", color: "#60a5fa", type: "histogram" });
Release notes
Initial official release.