Library "Utility" dema(src, length) Parameters: src (float) length (simple int) tema(src, length) Parameters: src (float) length (simple int) hma(src, length) Parameters: src (float) length (int) zlema(src, length) Parameters: src (float) length (simple int) stochRSI(src, lengthRSI,...
Library "loxxfft" This code is a library for performing Fast Fourier Transform (FFT) operations. FFT is an algorithm that can quickly compute the discrete Fourier transform (DFT) of a sequence. The library includes functions for performing FFTs on both real and complex data. It also includes functions for fast correlation and convolution, which are operations...
Library "library" is_bullish_engulfing() is_bearish_engulfing() is_hammer(fib_level) Parameters: fib_level (float) is_shooting_star(fib_level) Parameters: fib_level (float) is_hammer_and_star(fib_level) Parameters: fib_level (float) is_star_and_hammer(fib_level) Parameters: fib_level (float) ...
Library "LibAndy" TODO: add library description here greencandlme(x) TODO: add function description here Parameters: x (float) : TODO: add parameter x description here Returns: TODO: add what function returns greencandle() Whether this candle is green or not Returns: Whether this candle is green or not redcandle() Whether this candle...
Library "Polynomial" TODO: add library description here PolyNomial(Dop, n, step, nonp) TODO: add function description here Parameters: Dop (int) n (int) step (int) nonp (int) Returns: TODO: add what function returns
Library "AstroLib", or Astro Library, is a collection of public Pinescript functions & calculations for use in astrology & astronomy indicators. Unless noted otherwise, this library was written jointly by @badsector666 and @BarefootJoey. Library "AstroLib" t_(txt) Parameters: txt (string) JDNv2(t, withFraction) Parameters: t (float) ...
Library "MarkovChain" Generic Markov Chain type functions. --- A Markov chain or Markov process is a stochastic model describing a sequence of possible events in which the probability of each event depends only on the state attained in the previous event. --- reference: Understanding Markov Chains, Examples and Applications. Second Edition. Book by Nicolas...
Library "FunctionProbabilityViterbi" The Viterbi Algorithm calculates the most likely sequence of hidden states *(called Viterbi path)* that results in a sequence of observed events. viterbi(observations, transitions, emissions, initial_distribution) Calculate most probable path in a Markov model. Parameters: observations (int ) : array ....
Library "FunctionBaumWelch" Baum-Welch Algorithm, also known as Forward-Backward Algorithm, uses the well known EM algorithm to find the maximum likelihood estimate of the parameters of a hidden Markov model given a set of observed feature vectors. --- ### Function List: > `forward (array pi, matrix a, matrix b, array obs)` > `forward (array pi, matrix a,...
WOAH Order Scaling! This Provides a user with methods to create a list of profit targets and order sizes which grow or shrink. For size, the will add up to specific sum. for Targets they will include the first and last, and can lean towards either, to scale the order grid. And thanks to @Hoanghetti for the markdown, i've included a basic usage example within...
Library "Utils" Utility functions. Mathematics, colors, and auxiliary algorithms. setTheme(vc, theme) Set theme for levels (predefined colors). Parameters: vc : (valueColorSpectrum) Object to associate a color with a value, taking into account the previous value and its levels. theme : (int) Theme (predefined colors). 0 = 'User defined' 1 =...
Library " Net Volume Library" TODO: The underlying logic and function that calculates the net volume for the Net Volume indicator. Exposes the nv function and nvPoint fields for use. nv(src, length, useVwma, offset, sigma, multHigh, multMed, multLow) Parameters: src : (float) The source price value length : (int) The lookback length ...
Library "distance_ratio" Collection of types and functions that can be used for the calculation of the ratio of a distance from a barrier price using several methods. Methods supported are percentagewise (PERC), atr-based (ATR), fixed profit (PROF), tick-based (TICKS), risk reward ratio (RR) and local extrema (LOC). This library is meant to replace my...
Library "Feature_Scaling" FS: This library helps you scale your data to certain ranges or standarize, normalize, unit scale or min-max scale your data in your prefered way. Mostly used for normalization purposes. minmaxscale(source, min, max, length) minmaxscale: Min-max normalization scales your data to set minimum and maximum range Parameters: ...
Library "SIL" mean_src(x, y) calculates moving average : x is the source of price (OHLC) & y = the lookback period Parameters: x y stan_dev(x, y, z) calculates standard deviation, x = source of price (OHLC), y = the average lookback, z = average given prior two float and intger inputs, call the f_avg_src() function in...
Library "libKageMisc" Kage's Miscelaneous library print(_value) Print a numerical value in a label at last historical bar. Parameters: _value : (float) The value to be printed. Returns: Nothing. barsBackToDate(_year, _month, _day) Get the number of bars we have to go back to get data from a specific date. Parameters: _year : (int) Year...
Library "MultyTimeframe" TODO: add library description here MultTimeframes()
Library "Linear_Regression_Slope" linreg_slope(a, b) Parameters: a b This library is available to anyone. This library calculates the linear regression slope. Be sure to use the source value for a. (End price, high price, low price, market price) Please set a period for b. Overlay is set to false.