Skip to content
Algo Trade Analytics Docs

ta.tr - Pine Script Variable

True range, equivalent to ta.tr(handle_na = false). It is calculated as math.max(high - low, math.abs(high - close[1]), math.abs(low - close[1])).

float

series