Three trend indicators in one. Fork of Gunslinger2005 indicator, with a fix to display the nQQE oscillator correctly and clearly, and converted to pinescript v5 (allowing to set a different timeframe and gaps). How to use: Essentially, nQQE is a long term trend indicator which is more adequate in daily or weekly timeframe to indicate the current market cycle....
🔮☁️ This is the BASIC version of the PROBABILITY CLOUD indicator. It is an evolution beyond traditional standard deviation probabilistic indicators only using bands or channels. The new PROBABILITY CLOUD graphic representation with customizable transparent layers is based on -2 / +2 standard deviation calculated using 20 fixed predetermined time periods, and is...
█ Overview Breakout Probability is a valuable indicator that calculates the probability of a new high or low and displays it as a level with its percentage. The probability of a new high and low is backtested, and the results are shown in a table— a simple way to understand the next candle's likelihood of a new high or low. In addition, the indicator displays...
This script is meant to help verify the existence of a seasonal effect in asset returns, using a Z-test. There are three steps: 1. Think of a way to identify a season. The available methods are: by month, by week of the year, by day of the month, by day of the week, by hour of the day, and by minute of the hour. 2. Set the chart to the unit of your season. For...
Library "MathProbabilityDistribution" Probability Distribution Functions. name(idx) Indexed names helper function. Parameters: idx : int, position in the range (0, 6). Returns: string, distribution name. usage: .name(1) Notes: (0) => 'StdNormal' (1) => 'Normal' (2) => 'Skew Normal' (3) => 'Student T' (4) => 'Skew Student T' (5)...
A probability cone is an indicator that forecasts a statistical distribution from a set point in time into the future. Features Forecast a Standard or Laplace distribution. Change the how many bars the cones will lookback and sample in their calculations. Set how many bars to forecast the cones. Let the cones follow price from a set number of bars back. ...
Based on historical data (rather than theory), calculates the probability of a price level being "touched" within a given time frame. A "touch" means that price exceeded that level at some point. The parameters are: - level: the "level" to be touched. it can be a number of points, percentage points, or standard deviations away from the mark price. a positive...
Library "FunctionProbabilityDistributionSampling" Methods for probability distribution sampling selection. sample(probabilities) Computes a random selected index from a probability distribution. Parameters: probabilities : float array, probabilities of sample. Returns: int.
Library "FunctionSMCMC" Methods to implement Markov Chain Monte Carlo Simulation (MCMC) markov_chain(weights, actions, target_path, position, last_value) a basic implementation of the markov chain algorithm Parameters: weights : float array, weights of the Markov Chain. actions : float array, actions of the Markov Chain. target_path : float...
Library "Probability" erf(value) Complementary error function Parameters: value : float, value to test. Returns: float ierf_mcgiles(value) Computes the inverse error function using the Mc Giles method, sacrifices accuracy for speed. Parameters: value : float, -1.0 >= _value >= 1.0 range, value to test. Returns: float ierf_double(value) ...
Probability Distribution Histogram During data exploration it is often useful to plot the distribution of the data one is exploring. This indicator plots the distribution of data between different bins. Essentially, what we do is we look at the min and max of the entire data set to determine its range. When we have the range of the data, we decide how many...
The script is inspired by user NickbarComb, I suggested checking out his Price Convergence script. Basically, this script plots a table containing the probability of the current candle closing either higher or lower based on user-define past period. Hope that it will be helpful.
function to calculate Chebyshev Inequality. wich can be used to compute the probability that we will diverge from what we expect to obtain. reference: - www.omnicalculator.com - github.com - statisticstopics.wordpress.com - en.wikipedia.org
function to retrieve Gini Impurity / Gini Index. reference: - victorzhou.com - en.wikipedia.org
functions for shannon's entropy reference: - en.wiktionary.org - machinelearningmastery.com
displays the distribution of the outcome of a event over the last event. similar to this script:
A user defined function library of probability focused functions.
a test case for the KDE function on price delta. the KDE function can be used to quickly check or confirm edge cases of the trading systems conditionals.