Skip to content
Algo Trade Analytics Docs

label.get_text() - Pine Script Function

Returns the text of this label object.

label.get_text(id) → series string
NameTypeDescription
idseries labelLabel object.

String object containing the text of this label.

//@version=6
indicator("label.get_text")
my_label =
label.new(time, open, text="Open bar text", xloc=xloc.bar_time)a = label.get_text(my_label)
label.new(time, close, text = a + " new", xloc=xloc.bar_time)