Library "FunctionLinearRegression" Method for Linear Regression using array sample points. linreg(sample_x, sample_y) Performs Linear Regression over the provided sample points. Parameters: sample_x : float array, sample points X value. sample_y : float array, sample points Y value. Returns: tuple with: _predictions: Array with adjusted Y...
Library "MathSpecialFunctionsDiscreteFourierTransform" Method for Complex Discrete Fourier Transform (DFT). dft(inputs, inverse) Complex Discrete Fourier Transform (DFT). Parameters: inputs : float array, pseudo complex array of paired values . inverse : bool, invert the transformation. Returns: float array, pseudo complex array of paired values .
Library "Bursa_Sector" : List of stocks classified by sector in Bursa Malaysia (As of Oct 2021) getSector() This function will get the sector of current stock that listed in Bursa Malaysia
Library "CreateAndShowZigzag" Functions in this library creates/updates zigzag array and shows the zigzag getZigzag(zigzag, prd, max_array_size) calculates zigzag using period Parameters: zigzag : is the float array for the zigzag (should be defined like "var zigzag = array.new_float(0)"). each zigzag points contains 2 element: 1. price level of the zz...
Library "MathComplexEvaluate" TODO: add library description here is_op(char) Check if char is a operator. Parameters: char : string, 1 character string. Returns: bool. operator(op, left, right) operation between left and right values. Parameters: op : string, operator string character. left : float, left value of operation. right : float,...
Library "MathComplexTrignometry" Methods for complex number trignometry operations. sinh(complex) Hyperbolic Sine of complex number. Parameters: complex : float array, complex number. Returns: float array. cosh(complex) Hyperbolic cosine of complex number. Parameters: complex : float array, complex number. Returns: float array. tanh(complex)...
Library "MathComplexExtension" A set of utility functions to handle complex numbers. get_phase(complex_number, in_radians) The phase value of complex number complex_number. Parameters: complex_number : float array, pseudo complex number in the form of a array . in_radians : boolean, value for the type of angle value, default=true, options=(true:...
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...