Support

Equilla Formula Language

Tools

Equilla is proving a number of functions to draw and manipulate trendlines and rectangles in a chart.

Drawing tools

DrawRectangle Draws a rectangle into the chart.
DrawTrendline Draws a trendline into the chart.

Removing Tools

ToolDelete Removes a trendline or rectangle from a chart.

Enumerating tools

ToolGetFirst Returns the identifier of the first tool created by the script.
ToolGetNext Returns the identifier of the tool created next after the specified one.
ToolGetType Returns the type of a previously created tool.

Start point

ToolGetStartDate Returns the start date specified for a tool.
ToolGetStartDateTime Returns the start date and time specified for a tool.
ToolGetStartTime Returns the start time specified for a tool.
ToolGetStartValue Returns the start price value specified for a tool.
ToolSetStart Sets the start point of a tool.

End point

ToolGetEndDate Returns the end date specified for a tool.
ToolGetEndDateTime Returns the end date and time specified for a tool.
ToolGetEndTime Returns the end time specified for a tool.
ToolGetEndValue Returns the start price value specified for a tool.
ToolSetEnd Sets the end point of a tool.

Appearance

ToolGetColor Returns the display color specified for a trendline.
ToolSetColor Sets the display color of a trendline.
ToolGetExtBottom Returns true if the specified tool is expanded to the lower border of the chart, false otherwise.
ToolSetExtBottom Specifies if the tool is expanded to the upper border of the chart.
ToolGetExtLeft Returns true if the specified tool is expanded into the past, false otherwise.
ToolSetExtLeft Specifies if the tool is expanded into the past.
ToolGetExtRight Returns true if the specified tool is expanded into the future, false otherwise.
ToolSetExtRight Specifies if the tool is expanded into the future.
ToolGetExtTop Returns true if the specified tool is expanded to the upper border of the chart, false otherwise.
ToolSetExtTop Specifies if the tool is expanded to the upper border of the chart.
ToolGetFlags Returns the flags currently set for a tool.
ToolSetFlags Sets the flags for an existing tool.
ToolGetStyle Returns the style of a trendline tool.
ToolSetStyle Sets the line style of a trendline.
ToolGetWidth Returns the line width of a trendline tool.
ToolSetWidth Sets the line width of a trendline.

Remarks

In contrast to the standard drawing functions, like DrawLine, the output generated by the tool functions is valid for display in a chart only. A tool is only accessible from the script instance that has created the object. Additionally the identifiers returned by the DrawRectangle, DrawTrendline, ToolGetFirst and ToolGetNext functions are valid for one script instance only and can not be shared between scripts.

Equilla is keeping track of any tool created or deleted on the last bar. Before a bar is reevaluated, any newly created tool will be removed and any deleted tool will be recovered. This means the inital number of tools on a specific bar is constant. All other changes to tools created on earlier bars will be persistent.