Ehlers Simple Decycler

v10.3
Ehlers Simple Decycler

This indicator was originally developed by John F. Ehlers (Stocks & Commodities , V.33:10 (September, 2015): “Decyclers”).

Mr. Ehlers suggested a way to improve trend identification using high-pass filters. The basic smoothers like SMA , low-pass filters, have considerable lag in their display. Mr. Ehlers applied the high-pass filter and subtracted the high-pass filter output from the time series input. Doing these steps he removed high-frequency short-wavelength components (the ones causing the wiggles) from the time series.

As a result he got a special series of the low-frequency components with virtually no lag – the Decycler.

The Decycler is plotted with two additional lines (the percent-shifts of Decycler) and together they form a hysteresis band.

If the prices are above the upper hysteresis line, then the market is in an uptrend. If the prices are below the low hysteresis line, then the market is in a downtrend. Prices within the hysteresis band are trend-neutral.

(description found on the web, indicator converted from Pinescript language following multiple requests on the forums).

 

Share this

Risk disclosure:

No information on this site is investment advice or a solicitation to buy or sell any financial instrument. Past performance is not indicative of future results. Trading may expose you to risk of loss greater than your deposits and is only suitable for experienced investors who have sufficient financial means to bear such risk.

ProRealTime ITF files and other attachments : How to import ITF files into ProRealTime platform?

PRC is also on YouTube, subscribe to our channel for exclusive content and tutorials

  1. Vinks_o_7 • 04/08/2020 #

    Thanks !

  2. ggolfet • 04/08/2020 #

    I tried to apply the indicator on a daily and weekly chart, but there’s something wrong. Probably I made an error. The indicator does not “follow” the chart. It’s plotted above or under the chart (it depends on the stock you plot). I used the itf file. Have you got any suggestion. The indicator seems very useful.

    • Nicolas • 04/08/2020 #

      Try to adapt the “highpassLength”

    • ggolfet • 04/08/2020 #

      Thank you very much, on a daily / weekly chart it works with highpass lenght near 3-4.

    • avatar
      thebigdeal • 04/08/2020 #

      Ehlers Simple Decycler, bjr nicolas, je trouve cet indicateur assez démentiel, ?…. prometteur pour une stratégie avec levier à mettre en place … , pensez vous que celà en vaut la peine ? et si ou sur quelle indicateur etf ou cfd d’après vous ? en daily ? merci YJ

  3. Bard • 04/08/2020 #

    Cheers, a great addition Nicolas!

  4. jacob78692110 • 04/08/2020 #

    hi, i have past the code and the indicator is not in the graphique. he’s down like RSI

    • Nicolas • 04/08/2020 #

      Apply it on the price in the price settings window

  5. Bewater • 04/08/2020 #

    Thanks!

  6. eva.g.forsgren • 04/08/2020 #

    I cant make it work in anyway.

    • Nicolas • 04/08/2020 #

      Play with the “highpassLength” settings and add more units displayed on your chart.

  7. MrEastwood • 04/08/2020 #

    Interesting indicator! Can anyone get it working for longer “highpasslengths”? I’ve been testing lengths of 80-100 on a 1 min chart, but the result just looks strange…

  8. fj_pastor • 04/08/2020 #

    Hello Nicolas,
    Really thank you for your work.
    I am trying to use this indicator on a 1 minute price time frame chart, but the indicator should be calculated on a 1 hour time frame.
    When I use the TIMEFRAME(1 hour, Updateonclose) on the 1 minute price chart I never arrive to the same values as in a 1 hour price chart.
    I work on the DAX IG future.
    I have extensively tested the issue and it starts to deviate at the market opening (01:00 and 02:00).
    If I try to remove those hours from the calculation, it does not work.
    Do you have a suggestion where is the problem ?
    Thanks in advance.

    You can try it by adding the TIMEFRAME (1 hour, Updateonclose) on the code and test it on a 1 minute and 1 hour chart.
    Due to the different barindex measurement, you have to use a 80.000 minute chart vs a 10.000 hour chart to get similar time span.

    • Nicolas • 04/08/2020 #

      Check your custom trading hours and use the default market ones.

  9. fj_pastor • 04/08/2020 #

    Hello Nicolas,
    Thanks again for all your support.
    Finally I debugged the problem.
    The simple code attached at 01:59 in DAX and NQ (did not test in other indexes) gives a different value in DEMO mode IG platform.
    Retested in the Premium and it works OK ???
    Same date -> different values ???

    Two day of testing …

    Kind regards

    The releases for Demo and Premium are different ?

  10. kallistos • 04/08/2020 #

    Hi Nicolas,

    Thank you very much indeed for this indicator (and all the others you are providing)!

    I am using the Ehler’s Simple Decycler as well as the Ehler’s Decycler Oszillator for automatic trading.

    Both work very well but share one unfavourable characteristic:

    The variable HP forms an arch as an artifact at the entry of calculated values before reaching the actual price level. This artifact invalidates the indicator for the concerned periods.

    (HP is being subtracted from the price value to obtain the indicator value: decycler = src – hp.)

    The arc’s extend depends on the parameter value of HIGHPASSLENGTH. With larger values it becomes quite significant.

    These are some period numbers at which the indicator first touches the actual price range and becomes valid that I have measured when applying different values of HIGHPASSLENGTH:

    100: ~2.500
    200: ~10.000
    300: ~18.000
    400: ~38.000
    500: ~55.000

    This effect does not seem to be dependent on the underlying instrument or time frame.

    My personal workaround is to not go into the marked based on the indicator before it has crossed over the instrument’s price, say, two or three times. However, trading is delayed using this method.

    1) Can we circumvent the initial arc formed by HP?

    2) If not: Can we somehow estimate the number of periods that takes the indicator to reflect a valid value?

    Thank you very much once again!

    Merten

avatar
Register or

Likes

avatar avatar avatar avatar avatar avatar avatar avatar avatar avatar avatar avatar avatar avatar avatar avatar

+4 more likes

Related users ' posts
ALE Hi the color is given by a numerical value derived from the oscillator in use. If you comp...
efahmy Thanks mate
Jo-01-R Hello, it is possible to have this indicator but instead of colors rather have numbers rangi...
Appsoluxions Hi Nicolas, do you have the MT4 version of the indicator? I am not sure if these kind of que...
Nicolas Hi, don't have one sorry. But you can still ask for private coding through our programming s...
Appsoluxions Cool. Thanks for the response.
Etienne Hi, thanks for proving this code. I would like to contribute by adding a computation speed...
Etienne //Compute Super Smoother coefficients once if barindex = 1 then a1 = exp( -1.414 * 3.14159...
Nicolas Thanks a lot!
Bard From the url link #post-65420 above but without the chart image: Stocks & Commodities...
Bard Note: lter = filter
Bard Apologies, there's been an issue with copying "f" and "I" from the article and pasting.. whi...
Nicolas
6 years ago
Nicolas Oui. Pour changer la période, il faudra ajuster la variable MMperiod
macbartin plus la période est grande (en occurrence 20) plus l'indicateur est précis dans les changeme...
Hasardeur Hallo Nicolas, in John Ehlers book "cycle analytics for Traders" from 2013, Mr. Ehlers desc...
Khaled Thanks, but if I may ask what's EMA Period? The price which reverses the EMA[20] is not the ...
Francesco78 EMA is not a moving average, it is just the name we called the quantity defined above
Khaled My bad. Thank you so much!
Kris75 Hi Bolsatrilera, I love this indicator! Thanks; => did you develop a strategy around...
Francesco
7 years ago
oraclus Merci il lui ressemble bcp
juanj Think this is something we can experiment with in the 'universal' strategy along with the Bo...
ggolfet Hello Francesco, thanks for the code. Now I can do backtests on this indicator. I'm testin...
Gianluca Hello there is a new version, is it possible to translate it? https://www.tradingview.com...
christophe11560 bonjour, PRT me demande de réduire la période d'adaptive cyber Cycle suite à de fort ralent...
Pietro Fontana christophe11560, i've coded this a long time ago for a different version of the PRT, i'm not...
Leo Hi Gabri, have you ever try this in a trading system?
gabri Leo, I used to crosscheck this indicator a long time ago. For the trading I was doing at tha...
Nolubok Bonjour Gabri, merci pour l'ensemble de vos publications, serait il possible d'avoir le scr...
Abz  hi , you need to add the indicator from the "price" menu in chart
Francesco Thank you Abz!
phanz Hi Nicolas, this is an interesting strategy. For long position, I assume entry when prices ...
vitatrader35 Hola, Diego Puedes explicar cómo lo usas? Estoy tratando de emplearlo como validación de te...
diegofe_2000 Compra a la baja :  cruce de MEAN sobre AVG PEAK Compra al alza :   cruce de MEAN con AVG...
andrea ronca hi, do you know the best configuration for period, delta and fraction? thanks in advance
Etienne Hi, I'm quite late in this thread. I'd just like to propose an enhancement because this in...
Nicolas Thanks Etienne.
Bard Hi Nicolas, I wanted to make this scaled indicator above between -1 and +1 instead of 0 to +...
Nicolas
8 years ago
robertogozzi Vous ne pouvez pas, car ProBuilder ne prend actuellement pas en charge MTF (Multiple Time Fr...
jeanguy Merci pour ce travail En quoi cette MM est elle différente d’une MM courte ?
Bern latest version pro real time not accepting code, same with Ehler's MAMA indicator. any idea...

Top