Lipi Reference Lipi

Functions

talib.tr()

True range for the bar the script is on, taken from the chart's own bars. The one argument, `handle_na`, is optional and selects how a missing value is treated.

Syntax

                talib.tr(series bool handle_na) → series float
              

Arguments

handle_na series bool Optional flag selecting the treatment of a missing value.

Return Type

series float

Example


          indicator("True Range (TR)", overlay=false)
trValue = talib.tr()
plot(trValue, color=color.blue, title="True Range")