Library "PerformanceTable" TODO: add library description here This library was created as a library because adding a performance table to an existing strategy script made the strategy script lengthy and inconvenient to manage. The monthly table script referenced @QuantNomad's code. The performance table script referenced @myncrypto's code. To use, copy and...
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 "DataCorrelation" Implementation of functions related to data correlation calculations. Formulas have been transformed in such a way that we avoid running loops and instead make use of time series to gradually build the data we need to perform calculation. This allows the calculations to run on unbound series, and/or higher number of samples 🎲...
Library "JeeSauceScripts" getupdnvol() GetTotalUpVolume(upvolume) Parameters: upvolume GetTotalDnVolume(downvolume) Parameters: downvolume GetDelta(totalupvolume, totaldownvolume) Parameters: totalupvolume totaldownvolume GetMaxUpVolume(upvolume) Parameters: upvolume GetMaxDnVolume(downvolume)...
Hello everyone, Here is a perfectly replicated TradingView backtesting engine condensed into a single library function calculated with arrays. It includes TradingView's calculations for Net profit, Total Trades, Percent of Trades Profitable, Profit Factor, Max Drawdown (absolute and percent), and Average Trade (absolute and percent). Here's how TradingView...
This library contains functions that try to analyze trading signals performance. Like the % of average returns after a long or short signal is provided or the number of times that signal was correct, in the inmediate 2 candles after the signal.
Library "Hurst" hurst(length, samples, hi, lo) Estimate the Hurst Exponent using Dubuc's variation method Parameters: length : The length of the history window to use. Large values do not cause lag. samples : The number of scale samples to take within the window. These samples are then used for regression. The minimum value is 2 but 3+ is...
Library "NetLiquidityLibrary" The Net Liquidity Library provides daily values for net liquidity. Net liquidity is measured as Fed Balance Sheet - Treasury General Account - Reverse Repo. Time series for each individual component included too. get_net_liquidity_for_date(t) Function takes date in timestamp form and returns the Net Liquidity value for that...
Library "ReduceSecurityCalls" This library allows you to reduce the number of request.security calls to 1 per symbol per timeframe. Script provides example how to use it with request.security and possible optimisation applied to htf data call. This data can be used to calculate everything you need and more than that (for example you can calculate 4 emas with...
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 "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 "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.