Library "LibraryCOT" This library provides tools to help Pine programmers fetch Commitment of Traders (COT) data for futures. rootToCFTCCode(root) Accepts a futures root and returns the relevant CFTC code. Parameters: root : Root prefix of the future's symbol, e.g. "ZC" for "ZC1!"" or "ZCU2021". Returns: The part of a COT ticker corresponding to...
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...
Library "KernelFunctions" This library provides non-repainting kernel functions for Nadaraya-Watson estimator implementations. This allows for easy substitution/comparison of different kernel functions for one another in indicators. Furthermore, kernels can easily be combined with other kernels to create newer, more customized kernels. Compared to Moving...
Library "ahpuhelper" Helper Library for Auto Harmonic Patterns UltimateX. It is not meaningful for others. This is supposed to be private library. But, publishing it to make sure that I don't delete accidentally. Some functions may be useful for coders. insert_open_trades_table_column(showOpenTrades, table_id, column, colors, values, intStatus,...
Library "normsinv" Description: Returns the inverse of the standard normal cumulative distribution. The distribution has a mean of zero and a standard deviation of one; i.e., normsinv seeks that value z such that a normal distribtuion of mean of zero and standard deviation one is equal to the input probability. Reference: github.com normsinv(y0)...
Library "cndev" This function returns the inverse of cumulative normal distribution function Reference: The Full Monte, by Boris Moro, Union Bank of Switzerland . RISK 1995(2) CNDEV(U) Returns the inverse of cumulative normal distribution function Parameters: U : float, Returns: float.
Library "Strategy_PnL_Library" TODO: This is a library that helps you learn current pnl of open position and use it to create your own dynamic take profit or stop loss rules based on current level of your profit. It should only be used with strategies. inTrade() inTrade: Checks if a position is currently open. Returns: bool: true for yes, false for no. ...
Library "ctnd" Description: Double precision algorithm to compute the cumulative trivariate normal distribution found in A.Genz, Numerical computation of rectangular bivariate and trivariate normal and t probabilities”, Statistics and Computing, 14, (3), 2004. The cumulative trivariate normal is needed to price window barrier options, see G.F. Armstrong,...
Library "combin" Description: The combin function is a the combination function as it calculates the number of possible combinations for two given numbers. This function takes two arguments: the number and the number_chosen. For example, if the number is 5 and the number chosen is 1, there are 5 combinations, giving 5 as a result. Reference: ...
Library "norminv" Description: An inverse normal distribution is a way to work backwards from a known probability to find an x-value. It is an informal term and doesn't refer to a particular probability distribution. Returns the value of the inverse normal distribution function for a specified value, mean, and standard deviation. Reference: ...
Library "cbnd" Description: A standalone Cumulative Bivariate Normal Distribution (CBND) functions that do not require any external libraries. This includes 3 different CBND calculations: Drezner(1978), Drezner and Wesolowsky (1990), and Genz (2004) Comments: The standardized cumulative normal distribution function returns the probability that one random...
Library "cnd" Cumulative Normal Distribution CND1(x) Returns the Cumulative Normal Distribution (CND) using the Hart (1968) method. (preferred method, 14-18 decimal accuracy) Parameters: x : float, Returns: float. CND2(x) Returns the Cumulative Normal Distribution (CND) using the Abromowitz and Stegun (1974) Polynomial...
Library "chi2Inv" chi2Inv(p, n) Returns the inverse cumulative distribution function (icdf) of the chi-square distribution with degrees of freedom nu, evaluated at the probability values in p. Goldstein approximation Parameters: p : float, probability n : float, degress of freedom source. Returns: float.
Library "TradersCustomLibrary" TODO: add library description here SelectOptimalTimeframeTrendlineSettings() calculateShortStopLoss() calculateLongStopLoss() werdygerTrend() trendLines() stoch() timeToString()
Library "TA" General technical analysis functions div_bull(pS, iS, cp_length_after, cp_length_before, pivot_length, lookback, no_broken, pW, iW, hidW, regW) Test for bullish divergence Parameters: pS : Price series (float) iS : Indicator series (float) cp_length_after : Bars after current (divergent) pivot low to be considered a valid...
Just testing how to use libraries ignore this Just testing how to use libraries ignore this Just testing how to use libraries ignore this Just testing how to use libraries ignore this Just testing how to use libraries ignore this
Library "AllTimeHighLow" Provides functions calculating the all-time high/low of values. hi(val) Calculates the all-time high of a series. Parameters: val : Series to use (`high` is used if no argument is supplied). Returns: The all-time high for the series. lo(val) Calculates the all-time low of a series. Parameters: val : Series to...
Library "L_Beta" TODO: add library description here length() beta() simple_beta() index_selector()