public method host:execute("drawLabel", ...)

Brief

Creates or replaces a label.

Declaration
Lua
string host:execute ("drawLabel", id, date, level, text)

Parameters
id

The label identifier (an integer number).

date

The date at which label must be located.

level

The price level at which label must be located.

text

The label text.

Details

Note: This function is optional and may be not supported by the host application.

This is the simplified version of the host:execute("drawLabel1") command. The label is always draw against the date and the price, is drawn in the label default font and color.

To remove the line use the host:execute("removeLabel"); method.

The method can be used in indicators only.

back