Ehlers-Smoothed Stochastic RSI [Krypt]This script uses a regular Stochastic RSI formula and then runs Ehlers' Super Smoother on top of it. It also provides buy/sell signals on crossovers.
The script is inspired by LazyBear Ehlers-Smoothed Stochastic RSI with Roofing Filter, except I find that the Roofing filter (existing implementation) does not work well near extreme price changes, where a regular formula is preferable. The Ehlers Super Smoother however is excellent and seems to provide earlier signals in most cases than an EMA-EMA smoother. Combined, the super-smoother and regular Stochastic RSI formula provide very good results.
Ehlers
Ehlers MESA Adaptive Moving Average [LazyBear with ekoronin fix]Mama/Fama with ekronin's fix: www.tradingview.com
Zero Lag Exponential Moving Average (ZLEMA) The Zero lag exponential moving average (ZLEMA) indicator was created
by John Ehlers and Ric Way.
As is the case with the Double exponential moving average (DEMA) and
the Triple exponential moving average (TEMA) and as indicated by the
name, the aim is to eliminate the inherent lag associated to all trend
following indicators which average a price over time.
RSX FracticalityA little project I was working on to avoid studying for finals. Using LazyBear's RSX code for a smoother RSI, then taking the RSX of fib number lengths. Take the average of that, then the JMA of that from the same fib numbers. The average of that is then treated as the trend, take the average of the trend values from the main time frames, the script calls pretty far back so adding a W or M TF I think would throw the calculations off. Then I smoothed that value using the jma's to create the overall trend. I got the idea from Ehler's Empirical Mode Decomposition about identifying peaks and valleys and creating an average of that to create a range. The idea is that if the trend is above the Average Peak then it is a bull trend, less than the average valley it's a bear trend, in between it's ranging. It looks like it turned out alright, I'll be working on this idea of fractals a lot this summer to see if I can improve it or build something better off of the idea.
D_ELI (Ehlers Leading Indicator) Strategy Backtest This Indicator plots a single
Daily DSP (Detrended Synthetic Price) and a Daily ELI (Ehlers Leading
Indicator) using intraday data.
Detrended Synthetic Price is a function that is in phase with the dominant
cycle of real price data. This one is computed by subtracting a 3 pole Butterworth
filter from a 2 Pole Butterworth filter. Ehlers Leading Indicator gives an advanced
indication of a cyclic turning point. It is computed by subtracting the simple
moving average of the detrended synthetic price from the detrended synthetic price.
Buy and Sell signals arise when the ELI indicator crosses over or under the detrended
synthetic price.
See "MESA and Trading Market Cycles" by John Ehlers pages 64 - 70.
You can change long to short in the Input Settings
Please, use it only for learning or paper trading. Do not for real trading
D_ELI (Ehlers Leading Indicator) Strategy This Indicator plots a single
Daily DSP (Detrended Synthetic Price) and a Daily ELI (Ehlers Leading
Indicator) using intraday data.
Detrended Synthetic Price is a function that is in phase with the dominant
cycle of real price data. This one is computed by subtracting a 3 pole Butterworth
filter from a 2 Pole Butterworth filter. Ehlers Leading Indicator gives an advanced
indication of a cyclic turning point. It is computed by subtracting the simple
moving average of the detrended synthetic price from the detrended synthetic price.
Buy and Sell signals arise when the ELI indicator crosses over or under the detrended
synthetic price.
See "MESA and Trading Market Cycles" by John Ehlers pages 64 - 70.
D_DSP (Detrended Synthetic Price) Strategy 2 Backtest Detrended Synthetic Price is a function that is in phase with the
dominant cycle of real price data. This DSP is computed by subtracting
a half-cycle exponential moving average (EMA) from the quarter cycle
exponential moving average.
See "MESA and Trading Market Cycles" by John Ehlers pages 64 - 70.
You can change long to short in the Input Settings
Please, use it only for learning or paper trading. Do not for real trading.
D_DSP (Detrended Synthetic Price) Strategy 2 Detrended Synthetic Price is a function that is in phase with the
dominant cycle of real price data. This DSP is computed by subtracting
a half-cycle exponential moving average (EMA) from the quarter cycle
exponential moving average.
See "MESA and Trading Market Cycles" by John Ehlers pages 64 - 70.
D_DSP (Detrended Synthetic Price) Strategy Backtest Detrended Synthetic Price is a function that is in phase with the
dominant cycle of real price data. This DSP is computed by subtracting
a half-cycle exponential moving average (EMA) from the quarter cycle
exponential moving average.
See "MESA and Trading Market Cycles" by John Ehlers pages 64 - 70.
D_DSP (Detrended Synthetic Price) Strategy Detrended Synthetic Price is a function that is in phase with the
dominant cycle of real price data. This DSP is computed by subtracting
a half-cycle exponential moving average (EMA) from the quarter cycle
exponential moving average.
See "MESA and Trading Market Cycles" by John Ehlers pages 64 - 70.
Fisher Transform Indicator by Ehlers Backtest v 2.0 Market prices do not have a Gaussian probability density function
as many traders think. Their probability curve is not bell-shaped.
But trader can create a nearly Gaussian PDF for prices by normalizing
them or creating a normalized indicator such as the relative strength
index and applying the Fisher transform. Such a transformed output
creates the peak swings as relatively rare events.
Fisher transform formula is: y = 0.5 * ln ((1+x)/(1-x))
The sharp turning points of these peak swings clearly and unambiguously
identify price reversals in a timely manner.
For signal used zero.
You can change long to short in the Input Settings
Please, use it only for learning or paper trading. Do not for real trading.
Fisher Transform Indicator by Ehlers Backtest Market prices do not have a Gaussian probability density function
as many traders think. Their probability curve is not bell-shaped.
But trader can create a nearly Gaussian PDF for prices by normalizing
them or creating a normalized indicator such as the relative strength
index and applying the Fisher transform. Such a transformed output
creates the peak swings as relatively rare events.
Fisher transform formula is: y = 0.5 * ln ((1+x)/(1-x))
The sharp turning points of these peak swings clearly and unambiguously
identify price reversals in a timely manner.
You can change long to short in the Input Settings
Please, use it only for learning or paper trading. Do not for real trading.
FRAMA (Ehlers true modified calculation)Credit goes to Shizaru for the original calculation. I made just a few fixes, so that the calculation is really that of Ehlers.
Fixed H2 and L2 period, fixed w natural logarithm
Ehlers Super Smoother by ShizaruJohn Ehlers’ “Super Smoother”, a 2-pole Butterworth filter combined with a 2-bar SMA that suppresses the Nyquist frequency
Ehlers Universal Oscillator by ShizaruThe original script was posted on ProRealCode by user Nicolas.
In “Whiter Is Brighter,” author John Ehlers presents a new indicator he calls the universal oscillator. It is based on his theory that market data resembles pink noise, or as he puts it, “noise with memory.”
Main signal occurs when oscillator cross zero line. Second signal occurs when one column value is higher (lower) than previous column when we are above (below) zero line.
Ehlers Ideal RSI v1.0 by JustUncleLCreated by Request: Description: This is an implementation of Dr. Ehlers Ideal RSI. It uses a Homodyne Discriminator to calculate the dominate cycle of the trend and then uses the half cycle as the length for the RSI calculation.
Main Reference:
- "http://www.jstas.com/RSI/RSI ideaal.htm" it's in Dutch, use Google translate
Fractal Dimension Adaptive Moving Average (D-AMA)etfhq.com
Overall the D-AMA produced results that were near identical to that of the FRAMA but the D-AMA is a slightly faster average.
It is very difficult to pick between the FRAMA and the D-AMA but becuase the FRAMA offers a slightly longer trade duration it the best Moving Average we have tested so far.
Fractal Adaptive Moving AverageSettings:
FRAMA: blue line, SC = 252, FC = 40, length = 252
EMA: orange line, length = 50
FRAMA seems to be the evolution of the current and much-used EMA. The basic strategy is simple: long if the price crosses up the line, short or exit if vice versa.
The main difference between EMA and FRAMA is that the first one seems to lag much more than the first one, as we can see from the chart below (crude oil daily chart)
FYI
etfhq.com
quantstrattrader.wordpress.com
Relative Vigour Index (RVI). EhlersRelative Vigor Index - RVI
------------------------------------
An indicator used in technical analysis that measures the conviction of a recent price action and the likelihood that it will continue. The RVI compares the positioning of a security's closing price relative to its price range, and the result is smoothed by calculating an exponential moving average of the values.
The RVI indicator is calculated in a similar fashion to the stochastic oscillator, but the vigor index compares the close relative to the open rather than to the low.
Traders expect the RVI value to grow as the bullish trend gains momentum because in this type of environment, a security's closing price tends to be at the top of the range while the open is near the low of the day.
Usage Example: www.investopedia.com
Madrid SinewaveThis implements the Even Better Sinewave indicator as described in the book Cycle Analysis for Traders by John F. Ehlers .
In the example I used 36 as the cycle to be analyzed and a second cycle with a shorter period, 9, the larger period tells where the dominant cycle is heading, and the faster cycle signals entry/exit points and reversals.
Ehlers Smoothed Adaptive Momentum [LazyBear]Bored of Ehlers yet? :) I still have plenty of Ehlers in my collection, was thinking of publishing one of his Fishers or Adaptive RVI next, but @ChartArt requested Smoothed Adaptive Momentum (SAM), so here we go...
This is my 200th script (not including the variations and other custom scripts I shared over PM). My complete list of indicators here - bit.ly
Now, about the indicator :)
This smoothed adaptive momentum is straightforward to use (per Ehlers original rules). If it crosses above zero buy the next open, if it crosses below zero sell the next open. Of course, I strongly suggest filtering the signals.
Finally, here's an Ehlers-only chart to help determine where BTC is heading :P
More info:
- Ehlers CG Oscillator:
- Cybernetic Analysis for Stocks and Futures (Ehlers)
List of my public indicators: bit.ly
List of my app-store indicators: blog.tradingview.com
--Updated chart--
Here's the chart with barcolors ON (forgot to turn it on in the published one)
Ehlers Adaptive CG Indicator [LazyBear]Lets go with another adaptive indicator today. BTW, this is my 199th script (1 more and I am planning to work on my other backlogs).
This is the adaptive version of Ehlers' Center Of Gravity (CG) (already published, check "More info" below). Idea behind making something "adaptive" is to calculate it using dynamic cycle period inputs instead of static setting. In adaptive CG, Ehlers uses the dominant cycle period as the length in computation of alpha.
According to Ehlers this should be more responsive than the non-adaptive version. Buy and sell signals should often occur one bar earlier than for the non-adaptive version.
I have the usual options in place. Check out plain CC for comparison.
Here's a quick comparison between CG and Adaptive CG:
More info:
- Ehlers CG Oscillator:
- Cybernetic Analysis for Stocks and Futures (Ehlers)
List of my public indicators: bit.ly
List of my app-store indicators: blog.tradingview.com
Ehlers Adaptive Cyber Cycle Indicator [LazyBear]Another famous Ehlers indicator.
This is the adaptive version of Ehlers' Cyber Cycle (CC) (already published, check "More info" below). Idea behind making something "adaptive" is to calculate it using dynamic cycle period inputs instead of static setting. In adaptive cyber cycle, Ehlers uses the dominant cycle period as the length in computation of alpha.
According to Ehlers this should be more responsive than the non-adaptive version. Buy and sell signals should often occur one bar earlier than for the non-adaptive version.
I have the usual options in place. Check out plain CC for comparison.
More info:
- Cyber Cycle Indicator:
- Cybernetic Analysis for Stocks and Futures (Ehlers)
List of my public indicators: bit.ly
List of my app-store indicators: blog.tradingview.com