TradeZoro
Notifications

Reference

Labels

Text notes at a price and bar.

label.copy(id)

A copy of the label.

Returns: label

ParameterType
idlabel

label.delete(id)

Removes the label.

Returns: nothing

ParameterType
idlabel

label.get_text(id)

The label's text.

Returns: text

ParameterType
idlabel

label.get_x(id)

The label's x.

Returns: a whole number

ParameterType
idlabel

label.get_y(id)

The label's y.

Returns: a number

ParameterType
idlabel

label.new(x, y, text="", xloc="bar_index", yloc="price", color=na, style="label_down", textcolor=na, size="normal", textalign="center", tooltip="", text_font_family="default")

Creates a label and returns its id.

Returns: label

ParameterTypeNotes
xnum
ynum
textstringDefault ""
xlocstringDefault "bar_index"
ylocstringDefault "price"
colorcolorDefault na
stylestringDefault "label_down"
textcolorcolorDefault na
sizestringDefault "normal"
textalignstringDefault "center"
tooltipstringDefault ""
text_font_familystringDefault "default"

label.set_color(id, color)

Changes the background color.

Returns: nothing

ParameterType
idlabel
colorcolor

label.set_size(id, size)

Changes the size.

Returns: nothing

ParameterType
idlabel
sizestring

label.set_style(id, style)

Changes the style.

Returns: nothing

ParameterType
idlabel
stylestring

label.set_text(id, text)

Changes the text.

Returns: nothing

ParameterType
idlabel
textstring

label.set_textalign(id, textalign)

Changes the text alignment.

Returns: nothing

ParameterType
idlabel
textalignstring

label.set_textcolor(id, textcolor)

Changes the text color.

Returns: nothing

ParameterType
idlabel
textcolorcolor

label.set_tooltip(id, tooltip)

Changes the tooltip.

Returns: nothing

ParameterType
idlabel
tooltipstring

label.set_x(id, x)

Moves the label horizontally.

Returns: nothing

ParameterType
idlabel
xnum

label.set_xloc(id, x, xloc)

Changes x and how it is read.

Returns: nothing

ParameterType
idlabel
xnum
xlocstring

label.set_xy(id, x, y)

Moves the label.

Returns: nothing

ParameterType
idlabel
xnum
ynum

label.set_y(id, y)

Moves the label vertically.

Returns: nothing

ParameterType
idlabel
ynum

label.set_yloc(id, yloc)

Changes how y is read.

Returns: nothing

ParameterType
idlabel
ylocstring

Education only. Not financial advice. Examples are teaching samples, not trading results.

Zscript is coming soon

The manual opens when Zscript launches.

Back to home