Skip to content
Algo Trade Analytics Docs

box.set_text_font_family() - Pine Script Function

The function sets the font family of the text inside the box.

box.set_text_font_family(id, text_font_family) → void
NameTypeDescription
idseries boxA box object.
//@version=6
indicator("Example of setting the box font")
if barstate.islastconfirmedhistory b =
box.new(bar_index, open-ta.tr, bar_index-50, open-ta.tr*5, text="monospace") box.set_text_font_family(b, font.family_monospace)