This library introduces the `PolylinePlus` type, which is an enhanced version of the built-in PineScript `polyline`. It enables two features that are absent from the built-in type: 1. Developers can now efficiently add or remove points from the polyline. In contrast, the built-in `polyline` type is immutable, requiring developers to create a new instance of the...
Library "Drawings_public" : Functions to manage drawings on the chart extend_line(lineId, labelId) : Extend specific line with its label Parameters: lineId labelId update_line_coordinates(lineId, labelId, x1, y1, x2, y2) : Update specific line coordinates with its label Parameters: lineId labelId x1 y1 x2...
Library "Algebra" Algebra functions. line_fromXy(x1, y1, x2, y2) Get line slope and y-intercept from coordinates Parameters: x1 : x coordinate 1 (int - bar index) y1 : y coordinate 1 (float - price/value) x2 : x coordinate 2 (int - bar index) y2 : y coordinate 2 (float - price/value) Returns: of line line_getPrice(x, slope,...
Library "ObjectStack" init() push() push() push() push() push() nextIndex() nextIndex() nextIndex() nextIndex() nextIndex() delete() delete() delete() delete() delete() cleanOldest() cleanOldest() cleanOldest() cleanOldest() cleanOldest()
Library "LineGetPriceOnLogScale" This library provides a way to calculate the y-coordinate of a line on a specified bar when the chart scale is Log. The built-in `line.get_price()` function only works with linear scale and gives incorrect results when the chart is in Log scale. The library only works with `bar_index` values and `xloc.bar_index`-based lines,...