John Ehler’s Empirical Mode Decomposition

John Ehler’s Empirical Mode Decomposition

According to Wikipedia definition, the Empirical Mode Decomposition (EMD) is:
The empirical mode decomposition (EMD) method break down signals into various components, EMD can be compared with other analysis methods such as Fourier transform and Wavelet transform. Using the EMD method, any complicated data set can be decomposed into a finite and often small number of components. These components form a complete and nearly orthogonal basis for the original signal. In addition, they can be described as intrinsic mode functions (IMF).

Because the first IMF usually carries the most oscillating (high-frequency) components, it can be rejected to remove high-frequency components (e.g., random noise). EMD based smoothing algorithms have been widely used in seismic data processing, where high-quality seismic records are highly demanded.

Without leaving the time domain, EMD is adaptive and highly efficient.Since the decomposition is based on the local characteristic time scale of the data, it can be applied to nonlinear and nonstationary processes.

The indicator’s code is translated from the EasyLanguage version by a request on forum.

Ehler’s description of the method and indicator:
There just has to be a better way to determine whether the market is in a cycle mode or trend mode other than gazing at squiggly lines on your computer screen.
One approach is to compare the peak swings of the cycle mode to the amplitude of the trend mode.
We do this by capturing the peaks and averaging these peaks in a relatively long moving average. Correspondingly, one can capture the valleys and also average the valleys in a relatively long moving average. We then take a fraction of these averages as the thresholds between a trend mode and a cycle mode. If the trend is above the upper threshold the
market is in an uptrend. If the trend is below the lower threshold the market is in a downtrend. When the trend falls between the two threshold levels the market is in a cycle mode.
The setting of the fraction of the averaged peaks and valleys to be used to establish the thresholds is somewhat subjective and can be adjusted to fit your trading style. Personally, we prefer to trade in the cycle mode and therefore tend to set the thresholds relatively far apart.
In this way one can stop swing trading when the market is clearly in a trend.

 

 

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. diegofe_2000 • 02/22/2017 #

     Entro a operar una demo con este indicador,  les voy contando

  2. diegofe_2000 • 02/22/2017 #

    Gracias Nicolas, muy buen indicador para  hacer sistemas de compra y venta,  en pruebas me ha dado muy buenos resultados.

    • vitatrader35 • 02/22/2017 #

      Hola, Diego
      Puedes explicar cómo lo usas? Estoy tratando de emplearlo como validación de tendencias (o rangos) pero sin resultado…
      Gracias a los dos

  3. diegofe_2000 • 02/22/2017 #

    Compra a la baja :  cruce de MEAN sobre AVG PEAK
    Compra al alza :   cruce de MEAN con AVG VALLEY

    EXITOS

  4. andrea ronca • 02/22/2017 #

    hi, do you know the best configuration for period, delta and fraction? thanks in advance

avatar
Register or

Likes

avatar avatar avatar avatar avatar avatar avatar avatar avatar avatar
Related users ' posts
Bruno Carnazzi Il me semble que la fonction "floor" n'est disponible qu'avec PRT11, à vérifier
DELBERT Bonjour , merci pour votre réponse , je m'excuse je suis avec PRT v10.3 donc c'est indicateu...
Nicolas c'est juste, c'est une instruction très récente.
RubberToe Is there something we are missing here, I just get the same curved line as well...
Khaled @Nicolas, Hi Nicolas, I've downloaded the itf and it doesn't display as an Oscillator, it"s ...
sal157011 I think the problem here is that you must feed the trigonometric functions cos and sin with ...
ggolfet Hi Actarus, what's the name of the histogram indicator below Apple's chart?
Actaru5 Flag ShowState in setting and show histogram
NicolaSilvagni hi, thank you for creating this indicator. i can't figure out how to get the three graphs b...
Nicolas Check your custom trading hours and use the default market ones.
fj_pastor Hello Nicolas, Thanks again for all your support. Finally I debugged the problem. The sim...
kallistos Hi Nicolas, Thank you very much indeed for this indicator (and all the others you are provi...
Morrissey38 Muchísimas gracias Nicolás , muy amable.
Bruno Carnazzi extrèmement pertinent
Bruno Carnazzi Is that beatable ?
Sapo Thank you for your indicators. As always it's perfect, I thank you for your help it's preci...
eivaremir have u got the trading view version?
carlvan That's a great indicator and I especially the use of colors, more or less pronounced to indi...
diegofe_2000 CORDIAL SALUDO. CUANDO REALIZO UN PROGRAMA CON ESTE INDICADOR ME SALE EL SIGUIENTE LETRE...
ALE Hello do you want to explain to me in more detail what you have to do? Please replay here:...
Nicolas Thanks again for all your valuable posts... and well formatted code! :)
Abdelkrim Maksour hi sir is this indicator for mt4 and how i can get one .
Nicolas Thanks a lot for this new valuable addition to our library. I changed line 76 with "barindex...
Horance Thanks. I've noticed this leftover after submission, but it was too late for editing. BTW, I...
Etienne Thanks Horance for porting this code to PRT. I would like to bring some speedup to your cod...
Horance This is a good question. John Ehlers explains it in Rocket Science for Traders. You have to ...
cbeukes Much appreciated, I will give that a try. Also, is there any criteria that one could use to ...
avatar
Anonymous Thanks for the code! I'm trying to understand how it works, and have a few questions... line...
Bebbo Grazie del prezioso contributo Nicolas, scusa la mia inesperienza, sono alle prime armi e s...
Nicolas To avoid recalculation, you should use the one from this post.
Bebbo Ok Grazie Nicolas.
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.

Top