Library "MovingAverages" Contains utilities for generating moving average values including getting a moving average by name and a function for generating a Volume-Adjusted WMA. vawma(len, src, volumeDefault) VAWMA = VWMA and WMA combined. Simply put, this attempts to determine the average price per share over time weighted heavier for recent values. Uses a...
Library "AnalysisInterpolationLoess" LOESS, local weighted Smoothing function. loess(sample_x, sample_y, point_span) LOESS, local weighted Smoothing function. Parameters: sample_x : int array, x values. sample_y : float array, y values. point_span : int, local point interval span. aloess(sample_x, sample_y, point_span) aLOESS, adaptive local...
Library "ArrayExtension" Functions to extend Arrays. index_2d_to_1d(dimension_x, dimension_y, index_x, index_y) returns the flatened one dimension index of a two dimension array. Parameters: dimension_x : int, dimension of X. dimension_y : int, dimension of Y. index_x : int, index of X. index_y : int, index of Y. Returns: int, index in 1...
Library "ArrayGenerate" Functions to generate arrays. sequence_int(start, end, step) returns a sequence of int numbers. Parameters: start : int, begining of sequence range. end : int, end of sequence range. step : int, step, default=1 . Returns: int , array. sequence_float(start, end, step) returns a sequence of float numbers. Parameters: ...
Library "MathConstants" Mathematical Constants E() The number e Log2E() The number log (e) Log10E() The number log (e) Ln2() The number log (2) Ln10() The number log (10) LnPi() The number log (pi) Ln2PiOver2() The number log (2*pi)/2 InvE() The number 1/e SqrtE() The number sqrt(e) Sqrt2() The number sqrt(2) Sqrt3() The number...
Library "Matrix_Functions_Lib_JD" This is a library to add matrix / 2D array functionality to Pinescript. once you import the library at the beginning of your script, you can add all the functions described below just by calling them like you do any other built'in function. Enjoy, Gr, JD. PS. if you find functionality or calculation errors in the functions,...
Library "ColorScheme" A color scheme generator. init() Initiate the array data registry that will hold the color profile. Returns: tuple with 2 arrays (string array, color array) check_registry_integrity(key_registry, color_registry) Checks the integrity of the registers. Parameters: key_registry : string array, key data holder array. color_registry...
Library "ColorExtension" Color Extension methods. hsl(hue, saturation, lightness, transparency) HSL color transform. Parameters: hue : float, hue color component, hue is a degree on the color wheel from 0 to 360. 0 is red, 120 is green, 240 is blue. saturation : float, saturation color component, saturation is a percentage value, 0 means a shade of...