Average daily range
The average high to low range of recent trading days.
Inputs
| Name | Type | Default | Range |
|---|---|---|---|
| days | int | 14 | 1 to 500 |
| day_boundary | text | 17:00 America/New_York |
Outputs
| Name | Type | Required | Description |
|---|---|---|---|
| adr | value | Optional | color theme.accent, style line, width 1 |
- Warm-up
- 0 bars (0 at the defaults)
- Repaints
- No
- Parity
- None
Formula
A trading day starts at the day boundary in its own time zone
range of a day = its highest high - its lowest low
ADR = the average range of the last days finished days; the first day in the data is not counted because the data may start inside it