Skip to main content
Language version: 2 · Reference version: 2.7 · Date: 2026-10-25 · Compiler build: df7b3b14 · Namespace: polyline · Entries: 4

polyline (library)

Definition Functions for creating and deleting multi-point polyline drawings from an array of chartPoint vertices. Example

polyline.all (function)

Definition Returns the array of all existing polyline objects (same as the polyline.all variable). Syntax
Returns series array<polyline> An array of polyline IDs, oldest to newest. Example

polyline.delete (function)

Definition Deletes a polyline object. Syntax
Parameters Returns void void Example

polyline.new (function)

Definition Creates a polyline from an array of chartPoint objects. The drawing is bar/price anchored via those points. A polyline holds at most 1000 vertices: with an empty array, or with more than 1000 points, the call draws nothing and returns na. Syntax
Parameters Returns series polyline The ID of the created polyline, or na if points are invalid. Example