Bentrix Docs
HomePricingDashboard

Assay reference: line

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

line.delete#

runs
line.delete(id: any)

The line deleted

idanyrequired

line.get_price#

runs
line.get_price(id: any, x: num) → float

The line's price at a bar, on the straight line through its ends

idanyrequired
xnumrequired

line.get_x1#

runs
line.get_x1(id: any) → int

Reads the line

idanyrequired

line.get_x2#

runs
line.get_x2(id: any) → int

Reads the line

idanyrequired

line.get_y1#

runs
line.get_y1(id: any) → float

Reads the line

idanyrequired

line.get_y2#

runs
line.get_y2(id: any) → float

Reads the line

idanyrequired

line.new#

runs — Bentrix's own convention
line.new(x1: num, y1: num, x2: num, y2: num, xloc: string?, extend: string?, color: color?, style: string?, width: num?) → line

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

x1numrequired
y1numrequired
x2numrequired
y2numrequired
xlocstringoptional
extendstringoptional
colorcoloroptional
stylestringoptional
widthnumoptional

line.set_color#

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

Changes the line

idanyrequired
colorcolorrequired

line.set_extend#

runs
line.set_extend(id: any, extend: string)

Changes the line

idanyrequired
extendstringrequired

line.set_style#

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

Changes the line

idanyrequired
stylestringrequired

line.set_width#

runs
line.set_width(id: any, width: num)

Changes the line

idanyrequired
widthnumrequired

line.set_x1#

runs
line.set_x1(id: any, x: num)

Changes the line

idanyrequired
xnumrequired

line.set_x2#

runs
line.set_x2(id: any, x: num)

Changes the line

idanyrequired
xnumrequired

line.set_xy1#

runs
line.set_xy1(id: any, x: num, y: num)

Changes the line

idanyrequired
xnumrequired
ynumrequired

line.set_xy2#

runs
line.set_xy2(id: any, x: num, y: num)

Changes the line

idanyrequired
xnumrequired
ynumrequired

line.set_y1#

runs
line.set_y1(id: any, y: num)

Changes the line

idanyrequired
ynumrequired

line.set_y2#

runs
line.set_y2(id: any, y: num)

Changes the line

idanyrequired
ynumrequired

Constants

line.style_*#

runs

A line's styles

Families

line.*#

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