label.get_text() - Pine Script Function
label.get_text()
Section titled “label.get_text()”Overview
Section titled “Overview”Returns the text of this label object.
Syntax
Section titled “Syntax”label.get_text(id) → series stringParameters
Section titled “Parameters”| Name | Type | Description |
|---|---|---|
| id | series label | Label object. |
Returns
Section titled “Returns”String object containing the text of this label.
Examples
Section titled “Examples”Example 1
Section titled “Example 1”//@version=6indicator("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)