@keyword() = ...
, starting with @
, with an identifier, and ()
.=
will assign to the action a condition. When the assigned condition is true the action will trigger.()
, adding further degrees of control over the action.
@alert
action allows users to get alerted when the associated condition is true.
""
or ''
. Can accept data placeholders. If not provided will use the associated condition.
@label
action allows users to draw labels on the toolkit pane when the associated condition is true.
"{close}"
.
text (string): text displayed on the label. Default text is the condition.
"none"
"xcross"
"cross"
"triangleup"
"triangledown"
"flag"
"circle"
"arrowup"
"arrowdown"
"label_up"
"label_down"
"label_left"
"label_right"
"label_lower_left"
"label_lower_right"
"label_upper_left"
"label_upper_right"
"label_center"
"square"
"diamond"
"label_down"
y
does not fully support historical referencing.
@line
action allows users to draw lines on the toolkit pane when the associated condition is true.
"0"
.
y1 (placeholder): y1 coordinate value of the line. Accepts data placeholders as values. Default is "{close}"
except for the Oscillator Matrix® which uses 50.
x2 (integer): How far ahead from the current bar the x2 coordinate of the line is located. Accepts negative values. Default is "0"
.
y2 (placeholder): y2 coordinate value of the line. Accepts data placeholders as values. Default is "{close}"
except for the Oscillator Matrix® which uses 50.
color (color): color of the label. Possible values include:
"blue"
.
y1
/y2
do not fully support historical referencing.
{close}
except for the Oscillator Matrix® which uses 50.
@valuewhen
is accessible as input for other scripts with name “@Valuewhen”, also allowing users to create alerts using it.
True
.
+
as prefix, e.g: +1
, or decrease it using -
as prefix, e.g: -1
.
@set_step(-1)
), which would instead set the step to 0, however, the step can become negative when using increments/decrements.