Appearance
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
| Input | Type | Default |
|---|---|---|
| Length | int | 14 |
| Color | color | "#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" }) });