Bentrix Docs
HomePricingDashboard

Assay reference: label

runs as written · runs with Bentrix's own convention, said in its note · refused by name, the note says what Bentrix lacks · not yet built.

Functions

label.delete#

runs
label.delete(id: any)

The label deleted

idanyrequired

label.get_text#

runs
label.get_text(id: any) → string

Reads the label

idanyrequired

label.get_x#

runs
label.get_x(id: any) → int

Reads the label

idanyrequired

label.get_y#

runs
label.get_y(id: any) → float

Reads the label

idanyrequired

label.new#

runs — Bentrix's own convention
label.new(x: num, y: num, text: any?, xloc: string?, yloc: string?, color: color?, style: string?, textcolor: color?, size: string?, textalign: string?, tooltip: any?, text_font_family: string?, force_overlay: bool?) → label

Drawn by Bentrix in the study's own pane, from its x (a bar index, or a time with xloc.bar_time) and price

xnumrequired
ynumrequired
textanyoptional
xlocstringoptional
ylocstringoptional
colorcoloroptional
stylestringoptional
textcolorcoloroptional
sizestringoptional
textalignstringoptional
tooltipanyoptional
text_font_familystringoptional
force_overlaybooloptional

label.set_color#

runs
label.set_color(id: any, color: color)

Changes the label

idanyrequired
colorcolorrequired

label.set_size#

runs
label.set_size(id: any, size: string)

Changes the label

idanyrequired
sizestringrequired

label.set_style#

runs
label.set_style(id: any, style: string)

Changes the label

idanyrequired
stylestringrequired

label.set_text#

runs
label.set_text(id: any, text: any)

Changes the label

idanyrequired
textanyrequired

label.set_textcolor#

runs
label.set_textcolor(id: any, textcolor: color)

Changes the label

idanyrequired
textcolorcolorrequired

label.set_tooltip#

runs
label.set_tooltip(id: any, tooltip: any)

Changes the label

idanyrequired
tooltipanyrequired

label.set_x#

runs
label.set_x(id: any, x: num)

Changes the label

idanyrequired
xnumrequired

label.set_xy#

runs
label.set_xy(id: any, x: num, y: num)

Changes the label

idanyrequired
xnumrequired
ynumrequired

label.set_y#

runs
label.set_y(id: any, y: num)

Changes the label

idanyrequired
ynumrequired

label.set_yloc#

runs
label.set_yloc(id: any, yloc: string)

Changes the label

idanyrequired
ylocstringrequired

Constants

label.style_*#

runs

A label's styles

Families

label.*#

not yet

Drawn through Bentrix's objects in the study's pane; until then the call runs as a no-op and is said

Bentrix 0.1.382Every number, name and default on these pages is read from the application itself.What is comingWhat changed