# True range

`tr`

The largest of the bar's range and its gaps from the previous close.

## Outputs

| Name | Kind |
| --- | --- |
| tr | value |

Warm-up: 1 bars (1 at the defaults).

Repaints: No.

## 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.
