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
⬜ Zigzag at your fingertips. Creating zigzag array is more simpler than ever. All you need to do is: ▶ Import library: import HeWhoMustNotBeNamed// as zgi ▶ And invoke zigzag to get all the details. zgi.drawzigzag(zigzagLength) More examples in the code where you can get retracement ratios, zigzag direction, divergence etc. Library "zigzag"...
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 "ta" █ OVERVIEW This library holds technical analysis functions calculating values for which no Pine built-in exists. Look first. Then leap. █ FUNCTIONS cagr(entryTime, entryPrice, exitTime, exitPrice) It calculates the "Compound Annual Growth Rate" between two points in time. The CAGR is a notional, annualized growth rate that...
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 "LineGetPriceOnLogScale" This library provides a way to calculate the y-coordinate of a line on a specified bar when the chart scale is Log. The built-in `line.get_price()` function only works with linear scale and gives incorrect results when the chart is in Log scale. The library only works with `bar_index` values and `xloc.bar_index`-based lines,...
Library "BinaryDecimalConversion" Converts decimal to and from binary. to_binary(number) convert integer to binary string Parameters: number : int, value to convert. Returns: string to_decimal(binary) Converts a binary in a string to decimal. Parameters: binary : string, binary number in a string. Returns: int
Library "StringEvaluation" Methods to handle evaluation of strings. is_comma(char) Check if char is a comma ".". Parameters: char : string, 1 character string. Returns: bool. is_op(char) Check if char is a operator. Parameters: char : string, 1 character string. Returns: bool. number(char) convert a single char string into valid...
Library "SignificantFigures" sigFig(float _float, int _figures) @description Takes a floating-point number - one that can, but doesn't have to, include a decimal point - and converts it to a floating-point number with only a certain number of digits left. For example, say you want to display a variable from your script to the user and it comes out to...