█ OVERVIEW Here are common functions usually delete drawing once array of drawing is recall. Method is used as in pine script version 5 instead of custom function. It is an upgrade from DeleteArrayObject , which may not support overload parameter in future. Library "DeleteArrayType" TODO: Delete array type especially for drawings method deleteLabel(id)...
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 "ObjectHelpers" Line | Box | Label | Linefill -- Maker, Setter, Getter Library TODO: add table functionality set(object) set all params for `line`, `box`, `label`, `linefill` objects with 1 function *** ## Overloaded *** ``` method set(line Line, int x1=na, float y1=na, int x2=na, float y2=na,string xloc=na,string extend=na,color color=na,string...
Library "Vector2DrawLine" Extends line type with methods for Vector2 and Segment2. new(origin, target, xloc, extend, color, style, width) Draws a line using Segment type to hold its coordinate properties.. Parameters: origin : Vector2 . Origin vector of the line. target : Vector2 . Target vector of the line. xloc : string extend :...
Library "intersect" Find Line Intersection X/Y coordinates. Simple to use, will find intersection if it exists on the segments if the line segments do not cross on segment, an 'na' value will be returned if you plot new items with the output coords, they still plot. avoid this by setting a na(x) condition before plotting new items get(l1, l2, (...
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 "BoxLine_Lib" personal Library for line and box built in functions lineXY(x) get x1,y1,x2,y2 in a tuple Parameters: x : TODO: line Returns: tuple of x1,y1,x2,y2 line(x) Create line with only the y1 value(when line == na) or all when line != na set x1,y1,x2,y2 individually just 1 or all - use just the line value to set the x2 to...
█ OVERVIEW Delete array object according to array size such as label, line, linefill, box and table. █ CREDITS HeWhoMustNotBeNamed
█ OVERVIEW Library "e2hray" A drawing library that contains the hray() function, which draws a horizontal ray/s with an initial point determined by a specified condition. It plots a ray until it reached the price. The function let you control the visibility of historical levels and setup the alerts. █ HORIZONTAL RAY FUNCTION hray(condition, level, color,...
Library "regress" produces the slope (beta), y-intercept (alpha) and coefficient of determination for a linear regression regress(x, y, len) regress: computes alpha, beta, and r^2 for a linear regression of y on x Parameters: x : the explaining (independent) variable y : the dependent variable len : use the most recent "len" values of x and...