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()
Library "CalulateWinLoss" TODO: add library description here colorwhitered(x) TODO: add function description here Parameters: x : TODO: add parameter x description here Returns: TODO: add what function returns colorredwhite() cal()
Library "FunctionPatternFrequency" Counts the word or integer number pattern frequency on a array. reference: rosettacode.org count(pattern) counts the number a pattern is repeated. Parameters: pattern : : array : array with patterns to be counted. Returns: array : list of unique patterns. array : list of counters per...
Library "DatasetWeatherTokyoMeanAirTemperature" Provides a data set of the monthly mean air temperature (°C) for the city of Tokyo in Japan. this was just for fun, no financial implications in this. reference: www.data.jma.go.jp TOKYO WMO Station ID:47662 Lat 35o41.5'N Lon 139o45.0'E year_() the years of the data set. Returns: array : year values. ...
Library "FunctionDynamicTimeWarping" "In time series analysis, dynamic time warping (DTW) is an algorithm for measuring similarity between two temporal sequences, which may vary in speed. For instance, similarities in walking could be detected using DTW, even if one person was walking faster than the other, or if there were accelerations and decelerations...
Library "FunctionKellyCriterion" Kelly criterion methods. the kelly criterion helps with the decision of how much one should invest in a asset as long as you know the odds and expected return of said asset. simplified(win_p, rr) simplified version of the kelly criterion formula. Parameters: win_p : float, probability of winning. rr : float,...
Library "Adxl" Functions to calculate the Average Directional Index getDirectionUp(bar, lookback) Bar high changed from open for bar Parameters: bar : series int The bar to calculate at lookback : series int The lookback period Returns: series float getDirectionDown(bar, lookback) Bar low changed from open for bar Parameters: bar...
Library "AdxCalcHourly" getBars() getBars: Returns the number of bars to use in the historical lookback period Returns: simple int directionDown() directionDown: Calculates the direction down for bar_index Returns: series float directionUp() directionUp: Calculates the direction up for bar_index Returns: series float ...
Library "WpProbabilisticLib" Library that contains functions to calculate probabilistic based on historical candle analysis CandleType(open, close) This function check what type of candle is, based on its close and open prices Parameters: open : series float (open price) close : series float (close price) Returns: This function return the...
This library was designed to create three different datasets using Bill Williams fractals. The goal is to spot trends in reversal data and ultimately use these datasets to help predict future price reversals. First, the pivot() function is used to initialize and populate three separate arrays (high pivot , low pivot , all pivots ). Since each high/low price...