When you think of the question "take the mean of this dataset", you'd normally think of using the arithmetic mean because usually the norm is equal to 1; however, there are an infinite number of other types of means depending on the function norm (p). Pythagoras' is credited for the main types of means: his harmonic mean, his geometric mean, and his arithmetic...
This Indicator shows the Absolute Rate of Change in correlation to its Moving Average. Values over 3 (gray dotted line) can savely be considered as a breakout; values over 4.5 got a high mean-reverting chance (red dotted line). This Indicator can be used in all timeframes, however, i recommend to use it <30m, when you want search for meaningful Mean-Reverting...
Inspired by the Brownian Motion ("BM") model that could be applied to conducting Monte Carlo Simulations, this indicator plots out the Drift factor contributing to BM. Interpretation : If the Drift value is positive, then prices are possibly moving in an uptrend. Vice versa for negative drifts.
Some functions to handle Arithmetic Geometric Mean.
Purple means the concavity is down blue means concavity is up which is good. Yellow means increasing, Red means decreasing. Sup = Green Res = Red
Shows the coefficient of variation defined as standard deviation over mean (for the specified window).
My first try to implement Full Hurst Exponent. The Hurst exponent is used as a measure of long-term memory of time series. It relates to the autocorrelations of the time series and the rate at which these decrease as the lag between pairs of values increases The Hurst exponent is referred to as the "index of dependence" or "index of long-range dependence". It...
This is a simplified version of the Hurst Exponent indicator. In the meantime, I'm working on the full version. It's computationally intensive, so it's a challenge to squeeze it to PineScript limits. It will require some time to optimize it, so I decided to publish a simplified version for now. The Hurst exponent is used as a measure of long-term memory of time...
In this study, I present a method to expose NaN values to development environment. This exposure allows NaN values to be used by methods in scripts. I also show how to use values, even NaN values, as anchors from...
A simple script that shows the distance from a the mean, expressed as a percentage. Simple Moving Average, in this case. Informational only.
The following script is an application of the Z-Score (previous script). Z-Scores can be used in place of standard deviation (sigma) in 'Bollinger Bands'. The average of the sample (x-bar) over 21 days (N) 21 average trading days per month, fixed value The average of the population (mu) over 63 days (n) 63 days per quarter, default is set to 63 Z-Score...
The z-score is a way of counting the number of standard deviations between a given data value and the mean of the data set. Z-score = (x̄ - μ) / (σ / √ n) x̄ = sample mean (using the array.avg function = array(a,close ), where i = 1 to 21) μ = population mean ( = avg(close, n)) σ = standard deviation of the population ( = stdev(close,n)) n = number of 'close'...
Portfolio Metrics **New** 'returns' 'log returns' 'geometric returns' portfolio alpha portfolio beta portfolio,market correlation portfolio standard deviation portfolio variance mean portfolio returns maximum drawdown maximum gain
Free for public consumption There is very little original here, the idea is discussed in the underground traders alliance, (google em), and was apparently the basis of what was at one time myfxbooks most profitable strategy. I can't find the original video that was floating around on youtube, but if i find it again, i'll link it here. This is bascially just...
//Every spread & central tendency measure in 1 script with comfortable visualization, including scrips's status line. Spread measures: - Standard deviation (for most cases); - Average deviation (if there are extreme values); - GstDev - Geometric Standard Deviation (exclusively for Geometric Mean); - HstDev - Harmonic Deviation (exclusively for Harmonic...
No, it's not a new saturation plugin for your fruity loops. ... These are Mean Average Deviations calculated from Harmonic Mean. ... In my previous research I tried to develop "Harmonic Average Deviations", since applying stdevs on Harmonic Mean calculated from reciprocals ain't make sense. Din't work out, prolly cuz by definition stdevs doesn't like negatives. So...
I'm publishing it for research purposes & welcome any ideas and/or explanations whether it's actually possible or nah to do what I'm doing right now. ... Idea is simple - if we can do Harmonic Mean, can we do Harmonic Standard Deviations? It should be the same logic, the only difference is instead of actual datapoints we gotta use reciprocals. In reality I've...