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...
My HL2MA is a 'proprietary' formula based on the idea that I never again want to see a jagged average line. I released a version of this a long time ago, but I wanted to update it to how I have it on my charts in other platforms. Here are some notes about this moving average script: The default input value is 5, and I suggest the range of use 4-6 with the...
A simple script that shows the distance from a the mean, expressed as a percentage. Simple Moving Average, in this case. Informational only.
Logarithmic regression (or known as Tseng's tunnels), is used to model data where growth or decay accelerates rapidly at first and then slows over time. This model is for the long term series data (such as 10 years time span). The user can consider entering the market when the price below 25% or 5% confidence and consider take profit when the price goes above 75%...
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...
Range Strength is a super simple indicator designed for the mean reversion (range trading) strategy, it shows you how strong the market is ranging or trending. When the indicator is positive (green color) the market is a range mode, when the indicator is negative (red color) it is in a trending mode. It's best used together with our Buy Sell Bands indicator to...
Buy Sell Bands is a super simple indicator based on the mean reversion (range trading) strategy that shows you exactly where to buy, sell and close trades on every chart, market and timeframe. It's best used together with our Range Strength indicator to identify when the market is in a range mode, this is the best time to take the entry signals from the Buy...
This is a more advanced version of my original mean reversion script. It employs the famous Bollinger Bands. This robot will buy when price falls below the lower Bollinger Band, and sell when price moves above the upper Bollinger Band. I've only tested it on the S&P 500, though you could try it out on other assets to see the backtest performance. During...
Count of previous bars above or below a chosen Exponential Moving Average. Typically price reconnects with well defined EMAs regularly. If the price has been above/below an EMA for too long, you can expect a reconnect in a short order and bet on mean reversion strategies.
Mean reversion strategy, based upon the price deviation (%) from a chosen moving average (bars). Do note that the "gains" are always relative to your starting capital, so if you set a smaller starting capital (e.g. $10000) your gains will look bigger. Also when the strategy tester has finished calculating, check the "Open P/L", as there could still be open trades....
script for mean reversion conditions - tweak-able based on the volatility of the asset its used on, and the time frame
This is a mean reversion indicator that anticipates a local trend reversion. Basically, it is a channel with the mid-line serving as a moving mean baseline. Each of the two curves run up and down within this channel bouncing off from the top and bottom bounds. Touching the bounds serves as an indication of a local trend reversal. The reversal signal is stronger...
This strategy is for learning purposes only. Pay special attention to these strategies on longer aggregation periods (like 1 hr chart or more). Don't expect accurate results when you set a limit to 10 cents above your entry to be accurate. For example if you set the chart to 1 day, the price may move down and hit a stop 10 times then tag your limit. If this...
English: A significant intraday reversion (commonly used: 3 points) on a high (over 20 points) S&P 500 Volatility Index (VIX) can be a sign of a market bottom, because there is the assumption that some of the "big guys" liquidated their options / insurances because the worst is over. This indicator shows these reversions (3 points as default) when the VIX was...
This oscillator is used for *mean reversion* strategies only. This oscillator calculates the real-time distance of a price-point subtracted from the SMA, then compares it to the average distance to determine equilibrium imbalances. When the imbalance becomes less and goes under the signal line, a reversal is very likely. Do not trade mean reversion during any...
I recently published this script for Cryptocurrencies. The robustness of this script can be seen from the fact that the same script can be used for stocks on a 1D timeframe. I have used a commission of Rs. 20/order (ZERODHA?) Also, I selected a universe ofrandom stocks (each from different industries) for the current chart. I have seen similar results when you...