text - Pine Script Constants
Overview
Section titled “Overview”Constants under the text namespace.
Constants
Section titled “Constants”| Name | Type | Description |
|---|---|---|
text.align_bottom | const string | Vertical text alignment for box.new, box.set_text_valign, table.cell and table.cell_set_text_valign functions. |
text.align_center | const string | Text alignment for box.new, box.set_text_halign, box.set_text_valign, label.new and label.set_textalign functions. |
text.align_left | const string | Horizontal text alignment for box.new, box.set_text_halign, label.new and label.set_textalign functions. |
text.align_right | const string | Horizontal text alignment for box.new, box.set_text_halign, label.new and label.set_textalign functions. |
text.align_top | const string | Vertical text alignment for box.new, box.set_text_valign, table.cell and table.cell_set_text_valign functions. |
text.format_bold | const text_format | A named constant for use with the text_formatting parameter of the label.new(), box.new(), table.cell(), and *set_text_formatting() functions. Makes the text bold. |
text.format_italic | const text_format | A named constant for use with the text_formatting parameter of the label.new(), box.new(), table.cell(), and *set_text_formatting() functions. Italicizes the text. |
text.format_none | const text_format | A named constant for use with the text_formatting parameter of the label.new(), box.new(), table.cell(), and *set_text_formatting() functions. Signifies no special text formatting. |
text.wrap_auto | const string | Automatic wrapping mode for box.new and box.set_text_wrap functions. |
text.wrap_none | const string | Disabled wrapping mode for box.new and box.set_text_wrap functions. |