Skip to content

Average Day Range ​

Average high-to-low range over N bars.

Kind indicator · Drawn in its own pane

Try it ​

On the chart, press / and choose Average Day Range under Oscillators. To change it, copy the source below into the AlphaScript editor.

Inputs ​

InputTypeDefault
Lengthint14
Colorcolor"#2962FF"

Source ​

From packages/alphascript/indicators/adr.as.js.

js
indicator({ name: "Average Day Range", shortTitle: "ADR", overlay: false });
const length = input.int("Length", 14, { min: 1 });
plot(ta.sma(ta.calc([candle.high, candle.low], (h, l) => h - l), length), { title: "ADR", color: input.color("Color", "#2962FF", { group: "Style" }) });

AlphaScript language v0.1 · runtime 0.2.0