The function copies the information from these chart points Representing the start of the line, and the second_point is a The first overload of this function contains the first_point and second_point parameters. Line.new(x1, y1, x2, y2, xloc, extend, color, style, width) → series line Line.new(first_point, second_point, xloc, extend, color, style, width) → series line Garbage collection mechanism that deletes the oldest objects on the chart when the total number of drawings exceeds the script’s limit. As with labelĪnd table types, lines, boxes, and polylines utilize a Max_lines_count, max_boxes_count, and max_polylines_count parameters of the script’s Users can specify the maximum number allowed for each type via the A single script instance canĭisplay up to 500 lines, 500 boxes, and 100 polylines. There are limits on the number of these objects that a script can reference and display on the chart.Scripts can call the functions that manage these objects from within the scopes of loops andĬonditional structures, allowing iterative and conditional control of their drawings.Each object can have one of multiple predefined line styles.The x-coordinates of each object can be bar index or time values, depending on their specified xloc property.Objects of these types can use chart.point. Although all of these drawing types haveĭifferent characteristics, they do have some things in common:Ĭan have coordinates at any available location on the chart, including ones at future times beyond the last chart bar. Polylines sequentiallyĬonnect multiple vertical, horizontal, angled, or curved line segments. Lines drawn by a script may be vertical, horizontal, or angled. We therefore recommend you become familiar with arrays to make the most of Using the types we discuss on this page often involves arrays, especially when working
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |