Library "WaveGenerator" Wave Generator Library max(source) max Parameters: source : is the input to take the maximum. Returns: foat min(source) min Parameters: source : is the input to take the minimum. Returns: foat min_max(src, height) min_max Parameters: src : is the input for the min/max height Returns:...
Library "CommonTypesMath" Provides a common library source for common types of useful mathematical structures. Includes: `complex, Vector2, Vector3, Vector4, Quaternion, Segment2, Segment3, Pole, Plane, M32, M44` complex Representation of a Complex Number, a complex number `z` is a number in the form `z = x + yi`, Fields: re : Real part of the...
Library "MLExtensions" normalizeDeriv(src, quadraticMeanLength) Returns the smoothed hyperbolic tangent of the input series. Parameters: src : The input series (i.e., the first-order derivative for price). quadraticMeanLength : The length of the quadratic mean (RMS). Returns: nDeriv The normalized derivative of the input series. ...
Library "FibRatios" Library with calculation logic for fib retracement, extension and ratios retracement(a, b, ratio, logScale, precision) Calculates the retracement for points a, b with given ratio and scale Parameters: a : Starting point a b : Second point b ratio : Ratio for which we need to calculate retracement c logScale : Flag...
Library "HiveLibrary" : Custom library RoundDown(number, decimals) RoundDown() rounds the specified number down to the given number of decimal places. Parameters: number : is the argument for rounding down & decimals is the number of digits after dot decimals Returns: return is the rounded down value of the number
Library "JeeSauceScripts" getupdnvol() GetTotalUpVolume(upvolume) Parameters: upvolume GetTotalDnVolume(downvolume) Parameters: downvolume GetDelta(totalupvolume, totaldownvolume) Parameters: totalupvolume totaldownvolume GetMaxUpVolume(upvolume) Parameters: upvolume GetMaxDnVolume(downvolume)...
Library "TurntLibrary" Collection of functions created for simplification/easy referencing. Includes variations of moving averages, length value oscillators, and a few other simple functions based upon HH/LL values. ma(source, length, type) Apply a moving average to a float value Parameters: source : Value to be used length : Number of bars to...
Library "BinaryInsertionSort" Library containing functions which can help create sorted array based on binary insertion sort. This sorting will be quicker than array.sort function if the sorting needs to be done on every bar and the size of the array is comparatively big. This is created with the intention of using this to solve a bigger problem posted by...
Library "Slope_TK" This library calculate the slope of a serie between two points The serie can be ta.ema(close,200) for example The size is the number of bars between the two points for the slope calculation, for example it can be 10 slope_of_ema200 = slope(t a.eam(close, 200) , 10 ) slope( float serie, int size )
Library "String_Encoder_Decoder" String encoder and decoder to use in internal data tranfer in script calculations. In example, script encode 125 values once and then decode them every candle. encode(array or values (val1,val2,val3,val4,val5,val6) encode: encode some values into string Parameters: array : of values or values1, value2 (up to 6...
Library "fast_utils" This library contains my favourite functions. Will be updated frequently count_int_digits() Count int digits in number Returns: : number of int digits in number count_float_digits() Count float digits in number Returns: : number of float digits in number stringify() Convert values in array or matrix into string...
Library "fraction" Fraction Creation and Basic Operations. Cracked a tough problem in making this Polarity Agnostic Decimal without a cheating "abs * sign of input". it's quite fast, however still test for errors before production use. >> Big Neon Sign on 1/0 value. << Int Array (LOC 0/1).. To/From Decimal(float) Comparison ( < / == / >) Add /...
Library "EncoderDecoder" Simple example how to encode some values into float number and then decode it back to original values f_calctype() Encode parameter Returns: encoded value f_calctype() Decode parameter Returns: decoded value f_srctype() Encode parameter Returns: encoded value f_srctype() Decode parameter Returns:...
Library "kNN" Collection of experimental kNN functions. This is a work in progress, an improvement upon my original kNN script: The script can be recreated with this library. Unlike the original script, that used multiple arrays, this has been reworked with the new Pine Script matrix features. To make a kNN prediction, the following data should be supplied...
Library "Fibo_levels" Calculate Fibo levels from any 2 levels. Your need know only 2 price of 2 levels for calculate any level of Fibo: function 'fibo_lvl', or calculate array of price Fibo levels : function 'fibo_lvls' fibo_lvl(fibo_lvl1, price1, fibo_lvl2, price2, calc_level) Parameters: fibo_lvl1 : First of any level of fibo from 0 to 1 (example...
Library "LibIndicadoresUteis" Collection of useful indicators. This collection does not do any type of plotting on the graph, as the methods implemented can and should be used to get the return of mathematical formulas, in a way that speeds up the development of new scripts. The current version contains methods for stochastic return, slow stochastic, IFR,...
Library "Bpa" TODO: library of Brooks Price Action concepts isBreakoutBar(atr, high, low, close, open, tail, size) TODO: check if the bar is a breakout based on the specified conditions Parameters: atr : TODO: atr value high : TODO: high price low : TODO: low price close : TODO: close price open : TODO: open price tail :...
Library "TradingWolfLibary" getMA(int, string) Gets a Moving Average based on type Parameters: int : length The MA period string : maType The type of MA Returns: A moving average with the given parameters minStop(float, simple, float, string) Calculates and returns Minimum stop loss Parameters: float : entry price (Close if...