Library "MathComplexOperator" A set of utility functions to handle complex numbers. conjugate(complex_number) Computes the conjugate of complex_number by reversing the sign of the imaginary part. Parameters: complex_number : float array, pseudo complex number in the form of a array . Returns: float array, pseudo complex number in the form of a array ...
Library "MathComplexArray" Array methods to handle complex number arrays. new(size, initial_complex) Prototype to initialize a array of complex numbers. Parameters: size : size of the array. initial_complex : Complex number to be used as default value, in the form of array . Returns: float array, pseudo complex Array in the form of a array ...
Library "MathComplexCore" Core functions to handle complex numbers. set_real(complex_number, real) Set the real part of complex_number. Parameters: complex_number : float array, pseudo complex number in the form of a array . real : float, value to replace real value of complex_number. Returns: Void, Modifies complex_number. ...
Library "FunctionBestFitFrequency" TODO: add library description here array_moving_average(sample, length, ommit_initial, fillna) Moving Average values for selected data. Parameters: sample : float array, sample data values. length : int, length to smooth the data. ommit_initial : bool, default=true, ommit values at the start of the data under the...
Library "ArrayStatistics" Statistic Functions using arrays. rms(sample) Root Mean Squared Parameters: sample : float array, data sample points. Returns: float skewness_pearson1(sample) Pearson's 1st Coefficient of Skewness. Parameters: sample : float array, data sample. Returns: float skewness_pearson2(sample) Pearson's 2nd Coefficient of...
Library "ArrayOperationsInt" Array Basic Operations for Integers add(sample_a, sample_b) Adds sample_b to sample_a and returns a new array. Parameters: sample_a : values to be added to. sample_b : values to add. Returns: int array with added results. subtract(sample_a, sample_b) subtracts sample_b from sample_a and returns a new...
Library "ArrayOperationsFloat" Array Basic Operations for Integers add(sample_a, sample_b) Adds sample_b to sample_a and returns a new array. Parameters: sample_a : values to be added to. sample_b : values to add. Returns: float array with added results. subtract(sample_a, sample_b) subtracts sample_b from sample_a and returns a new...
Library "bursamalaysianonshariah" List of non-Shariah stock for Bursa Malaysia as of Oct 2021 No parameter required status() will return 1 if ticker in the list, 0 if ticker not in the list and 2 if ticker not from Bursa Malaysia Example usage : //@version=5 indicator("My Script", overlay = true) import BURSATRENDBANDCHART/bursamalaysianonshariah/1 as...
Library "Vector2Operations" functions to handle vector2 operations. math_fractional(_value) computes the fractional part of the argument value. Parameters: _value : float, value to compute. Returns: float, fractional part. atan2(_a) Approximation to atan2 calculation, arc tangent of y/ x in the range radians. Parameters: _a : vector2 in the...
Library "SignalProcessingClusteringKMeans" K-Means Clustering Method. nearest(point_x, point_y, centers_x, centers_y) finds the nearest center to a point and returns its distance and center index. Parameters: point_x : float, x coordinate of point. point_y : float, y coordinate of point. centers_x : float array, x coordinates of cluster centers. ...
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 "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,...
This script displays the close price and 4 sorted moving averages of your choice in a small repositionable panel and, when used on a higher timeframe, warns you when values may be different from actual values in the higher timeframe, inciting you to double check the actual values of the moving averages in the higher timeframe the panel is supposed to reflect. The...
This is an attempt to create a two dimensional floating point array from the pine single dimension array. It enables some useful array functions like sorting, when you are trying to keep track of price and location in time or bars and you would like to sort the array. Other array functions on this array will not work, like average and other statistical functions...
Pinescript - Common Label & Line Array Functions Library by RagingRocketBull 2021 Version 1.0 This script provides a library of common array functions for arrays of label and line objects with live testing of all functions. Using this library you can easily create, update, delete, join label/line object arrays, and get/set properties of individual label/line...
Hello, This code may be useful for Pine script coders only. Arrays were welcomed in Pine script, as they are a foundation for coding properly many useful things, like studies and strategies here in TradingView :) TradingView recently released new functions for arrays, like array.median and more, but the "PRODUCT" function was still missing, so I created it....