Docs

ta.range

Read the high to low range of a bar, including bars of a declared series.

itm
ta.range(bars)

The bar's range: high - low, read from bars. On the chart's own bars it is the same as high - low. It has an id for ta.range(d) on a declared series, where the fields of another clock cannot be spelled as plain arithmetic.

Parameters

A series parameter takes a value on every bar. A constant parameter must be known before the first bar, such as a number or an input.

NameKindTypeUnitDefaultRangeDescription
barsConstantbarsbarsna-Which bars to read: a declared series, or na for the chart's own.

Output

NameTypeUnit
valuenumber-

Warm-up and missing values

Warm-up
1 bar.
Missing values
na while bars has no bar available. Never na for a bar that exists, because a high and a low always exist.

Example

itm
ta.range()
itm
plot(ta.range(), "Range")