ta.tr
True range: max(high - low, |high - close[1]|, |low - close[1]|). On the first bar it is na, or high - low when handle_na is true. Also usable as the value ta.tr.
ta.tr(handle_na: bool = false) -> series float
Parameters
handle_nabool: true gives high - low on the first bar (which has no previous close); false (default) gives na there.
Example
ta.tr(true)