True range
The largest of the bar's range and its gaps from the previous close.
Outputs
| Name | Type | Required | Description |
|---|---|---|---|
| tr | value | Optional | color theme.accent, style line, width 1 |
- Warm-up
- 1 bars (1 at the defaults)
- Repaints
- No
- Parity
- TA-Lib, within 1e-12
Formula
TR[i] = max(high[i], close[i-1]) - min(low[i], close[i-1])
No value on the first bar, which has no previous close.