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 "na_skip_highest" Finds the highest historic value over len bars but skip na valued bars (eg, off days). In other words, this will ensure we find the highest value over len bars with a real value, and if there are any na bars in-between, we skip over but the loop will continue. This allows to mimic calculations on markets with off days (eg, weekends). ...
Library "KernelFunctions" This library provides non-repainting kernel functions for Nadaraya-Watson estimator implementations. This allows for easy substitution/comparison of different kernel functions for one another in indicators. Furthermore, kernels can easily be combined with other kernels to create newer, more customized kernels. Compared to Moving...
Library "ahpuhelper" Helper Library for Auto Harmonic Patterns UltimateX. It is not meaningful for others. This is supposed to be private library. But, publishing it to make sure that I don't delete accidentally. Some functions may be useful for coders. insert_open_trades_table_column(showOpenTrades, table_id, column, colors, values, intStatus,...
Library "combin" Description: The combin function is a the combination function as it calculates the number of possible combinations for two given numbers. This function takes two arguments: the number and the number_chosen. For example, if the number is 5 and the number chosen is 1, there are 5 combinations, giving 5 as a result. Reference: ...
Library "Fibonacci" General Fibonacci functions. Get fib numbers, ratios, etc. fib_precise(f, precision) Get the precise Fibonacci ratio, to the specified number of decimal places Parameters: f : Fibonacci ratio (string, in form #.###) precision : Number of decimal places (optional int, dft = 16, max = 32) Returns: Precise Fibonacci ratio...
Library "Trig" Trigonometric functions rt_get_angleAlpha(a, b, c, deg) Get angle α of a right triangle, given the lengths of its sides Parameters: a : length of leg a (float) b : length of leg b (float) c : length of hypotenuse (float) deg : flag to return angle in degrees (bool - default = false) Returns: angle α in radians (or...
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 "L_Beta" TODO: add library description here length() beta() simple_beta() index_selector()
Library "FunctionLAPACKdsyrk" subroutine part of LAPACK: Linear Algebra Package, performs one of the symmetric rank k operations . C := alpha*A*A**T + beta*C, or C := alpha*A**T*A + beta*C, . where alpha and beta are scalars, C is an n by n symmetric matrix and A is an n by k matrix in the first case and a k by n matrix in the second...
Library "FunctionLAPACKdtrsm" subroutine in the LAPACK:linear algebra package, used to solve one of the following matrix equations: op( A )*X = alpha*B, or X*op( A ) = alpha*B, where alpha is a scalar, X and B are m by n matrices, A is a unit, or non-unit, upper or lower triangular matrix and op( A ) is one of op( A ) = A or op( A ) = A**T. The...
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...
Library "HelperFunctions" A collection of my most used functions apply_smoothing() Apply one of Pine Script's built-in smoothing functions to a series
Library "calc" Library for math functions. will expand over time. split(_sumTotal, _divideBy, _forceMinimum, _haltOnError) Split a large number into integer sized chunks Parameters: _sumTotal : (int) Total numbert of items _divideBy : (int) Groups to make _forceMinimum : (bool) force minimum number 1/group _haltOnError : (bool) force...
Library "UtilityFunctions" Utility functions written by me printLabelOnLastBar_string(string) Prints string in a label on the last bar Parameters: string : value to print Returns: void printLabelOnLastBar_float(float) Prints float in a label on the last bar Parameters: float : value to print Returns: void ...
Library "percentageLib" : every thing need anout percentage getPercentage(entry, exit) : get percentage change of of two value Parameters: entry : : value of entry price exit : : value of exit price Returns: : negative or positive value applyPercentageNoAddUp(price, percentage) : apply percentage change on value decrease or...
Library "xor" xor(a, b) xor: Exclusive or, or exclusive disjunction is a logical operation that is true if and only if its arguments differ (one is true, the other is false). Parameters: a : first argument b : second argument Returns: returns xor (true only if a and b are true, but not both) Example: true xor true = false true xor false =...