Average daily range

adrvolatilityForge API 1

The average high to low range of recent trading days.

Inputs

NameTypeDefaultRange
daysint141 to 500
day_boundarytext17:00 America/New_York

Outputs

NameTypeRequiredDescription
adrvalueOptionalcolor 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