Quadruple Exponential Moving Average indicator

Quadruple Exponential Moving Average indicator

the Quadruple Exponential Moving Average is calculated with a set of different EMA of EMA.

I introduced in the code the possibility to change the moving average type for the indicator calculation (from 0 to 6):

0 = SMA

1 = EMA

2 = WMA

3 = Wilder

4 = Triangular

5 = End point

6 = Time series

Of course you can also modify the calculation period in the indicator parameter.

QEMA=5*MA1-10*MA2+10*MA3-5*MA4+MA5, where
MA1=Moving Average(Price),
MA2=Moving Average(MA1),
MA3=Moving Average(MA2),
MA4=Moving Average(MA3),
MA5=Moving Average(MA4).

Code adapted from TS2 platform.

 

 

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. piarou • 01/23/2017 #

    Objet : PRC_QEMA | indicator
    Bonjour,
    Bizarrement :
    • les deux paramètres sont en remarque donc logiquement  inactifs et généèrent une erreur de syntaxe et deux variables (period et methose) non définies
    • 
    MOVING AVERAGE TYPE génère une erreur dans PRT (V10.3)D\'une manière générale beaucoup de ces codes proposés sont inutilisables tels qu\'il ont présentés car entachés d\'erreurs.Avant de les placer sur un site quelqu\'un pourrait-il préalablement les déboguer totalement, ce qui rendrait service à de nombreux utilisateurs de PRT.Cordialement,piarou
    //PRC_QEMA | indicator
    //23.01.2017
    //Nicolas @ www.prorealcode.com
    //Sharing ProRealTime knowledge

    //--- parameters
    // period = 14
    // method = MOVING AVERAGE TYPE
    // ---

    Price=customclose

    MA1=Average[period,method](Price)
    MA2=Average[period,method](MA1)
    MA3=Average[period,method](MA2)
    MA4=Average[period,method](MA3)
    MA5=Average[period,method](MA4)
    QEMA=5*MA1-10*MA2+10*MA3-5*MA4+MA5

    RETURN QEMA as \"Quadruple Exponential Moving Average indicator\"
    //--- parameters
    // period = 14
    // method = MOVING AVERAGE TYPE
    // ---

    • Nicolas • 01/23/2017 #

      En effet, c’est le cas si on copie/colle le code. Ces 2 variables sont inscrites en externes dans le code ITF de l’indicateur à importer pour en facilité son utilisation, le code ci-dessous en étant l’exacte copie.

  2. Salocin • 01/23/2017 #

    Hello Nicolas, my french is not that well. It occurs an error which can not be solved by copy the code is that correct? Or can I replace “Moving Average Type” and the copied code works for further development?
    Regards Nicolas

    • Nicolas • 01/23/2017 #

      Just download the ITF file and import it into your platform, follow these easy steps: https://www.prorealcode.com/import-export-prorealtime-code-platform/

avatar
Register or

Likes

avatar avatar avatar avatar avatar avatar
Related users ' posts
Nicolas Je l'ai converti depuis un code pinescript. De mémoire il s'agit bien d'une variation d'une ...
Captain_Walker @Nicolas, I've copied your code into PRT indicator panel to create it. When I attempt to sav...
Nicolas Download the itf file and import it.
Nicolas Please post any question on forums, thanks.
Lavallette Bonjour Nicolas. J'utilise la version 11 et moi aussi j'ai une ligne horizontale malgré l'a...
Nicolas il faut modifier la ligne 20 avec: if adaptive=1 and averagePeriod > 1 and barindex>(...
dakaodo Hi, Wilko. Acc to the original FRAMA paper by Ehlers, Ehler's own code only takes inputs for...
dakaodo For reference, here is Ehlers' original paper: http://www.mesasoftware.com/papers/FRAMA.p...
dakaodo Here is the code with only SC included, per ETFHQ. pri=customclose //len>=4, even on...
Nicolas The code is correct, don't know if the label and color are the same as other trading softwar...
peppe novellino Hi Nicolas, the settings of the alligators are not editable. How can I change it? Thanks in ...
pabo_swe I got very bad performance with this script, it was slow... it seems like if one breaks out ...
bluetime6 Hello Doctrading.   Can you ask you for something? Can you code a screener screen po...
gianlox I added a simple momentum indicator (MACD). I think much better results:   achat = 0v...
gianlox achat = 0 vente = 0 MACD12M = MACDline[12,26,9](close) MACD12S = ExponentialAverage[9](MA...
Nicolas Thank you for contribution. Please consider that advertising is tolerate as long as you cont...
triss1965@gmail.com  Hi, I cant make it work. And if you doing so much money. Why do you have to sell it? It don...
T-rader Eva... He dosen´t sell anything. He is just a nice guy that want to share on of his strategy...
Fabio Anthony Terrenzio this strategy works only in a well defined trend
brosly Good afternoon I am trying to get the complete code of lex strategy made by adolfo since I s...
dreif123 hi Adolfo, is Alex Auto Trading Botindex working on DAX as well ? if so , can you post the...
phili711 Bonjour Si la moyenne 100 est au dessus de la moyenne 20 le trend est baissier zlors pourqu...
Nicolas La comparaison se fait entre la valeur de la moyenne actuelle et telle qu'elle était il y a ...
Thomas007 we should definitely open a new thread for intraday trading - can we post the link once it's...
Denis Bonjour Nicolas, j'ai une question à propos de ce code, il faut que je la pose en anglais ca...
Nicolas En français pas de problème
Blue Sky A great job Nicolas, thanks. A question about averages, what period is the fast average and ...
Lotech123 This Indicator is very useful if the Risk number is altered to suit the time frame, volume o...
Bern error displaying, code must end with RETURN. Any idea hot to fix it?
Yantra "i believe this indicator could help any trend followers in trading decision. " I'm wonderin...

Top