Skip to content
Algo Trade Analytics Docs

text - Pine Script Constants

Constants under the text namespace.

NameTypeDescription
text.align_bottomconst stringVertical text alignment for box.new, box.set_text_valign, table.cell and table.cell_set_text_valign functions.
text.align_centerconst stringText alignment for box.new, box.set_text_halign, box.set_text_valign, label.new and label.set_textalign functions.
text.align_leftconst stringHorizontal text alignment for box.new, box.set_text_halign, label.new and label.set_textalign functions.
text.align_rightconst stringHorizontal text alignment for box.new, box.set_text_halign, label.new and label.set_textalign functions.
text.align_topconst stringVertical text alignment for box.new, box.set_text_valign, table.cell and table.cell_set_text_valign functions.
text.format_boldconst text_formatA 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_italicconst text_formatA 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_noneconst text_formatA 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_autoconst stringAutomatic wrapping mode for box.new and box.set_text_wrap functions.
text.wrap_noneconst stringDisabled wrapping mode for box.new and box.set_text_wrap functions.