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
swapping merci gabri, on va le mettre à l'essai ;)
Leo Hi all, I posted a new version of this indicator ( I just add arrows to spot the local maxi...
Trading_En_El_Ibex35 Muchas Gracias por compartir este interesante indicador. Un saludo
xavieralava hola gracias leo
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!
rejo007 hello david, i'll try it could you tell me wich strategy do you use in real? thanks
David Somogyi Hello, I have a couple of DAX strategies of breakout and mean reversion. I'll try to post...
Roberto Blázquez Hi David, I just saw your strategy and it's good!!! I'm going to try it from today in real a...
Thomas007 Is there any way to build something similar for FX? I wonder what would be the replacement f...
Kris75 Hi Bolsatrilera, I love this indicator! Thanks; => did you develop a strategy around...
KarlBenjamin This "indicator" alone has completely changed my algorithms for the better! Id even go as fa...
ashee CAN YOU SHARE MT4 FILE
coyP Big thanks ! Can you explain me how can I put this ON my graph and not under the graph please ?
Wing There's a few threads on the forum about backtest and live trades being different at times. ...
ET I agree with verdi55. As it is now, the code will only test for a breakout on the upside (li...
Philipjonasson are u still active Wing?
Nicolas We do not offer free assistance for TOS. However, you can send demand for private paid codin...
phanz Hi community. May I know how you use this indicator please? Is it on the zero cross over? ...
sydney43025 Hello, I'm digging up this topic because I uploaded the code on a PRT v11.1 but the indicato...
David Balance thanks for sharing this excellent indicator.  Here are some thoughts.  please ad...
supertiti Il manque 2 slash devant len dans le code dur car la variable ne marche pas bonne journée
bearbull As per PhilipSchultz question above, has anybody managed to add code for when it turns blue,...
Ybr35 Bonjour Nicolas, lorsque je lance l'indicateur, il m'est indiqué que je dois définir les var...
Nicolas L'idéal est de télécharger le fichier itf joint sur cette page et de l'importer dans la plat...
Nicolas Merci dans ce cas d'ouvrir un sujet dans le forum ProScreener svp.
Andrea Hi Nicolas, thx for your code. Please i need your help to understand this part of your code:...
Nicolas the MA200 is ascending since 20 periods.
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...
David Somogyi Hello, This is merely a filter indicator for measuring high fractality, which helps to av...
bertrandpinoy bonjour ce code fonctionne toujours?
Nicolas Faites un backtest, vous aurez des réponses.
Krallenmann Hallo Nicolas, kannst du mir die Regeln für den Halftrend Indikator sagen? Aus dem Code kann...
davefransman Dear Nicolas, i want set a alert on the "HalfTrend "custom moving average" met Heikin Ashi w...
Nicolas Please post the question in a new forum topic, that would need custom coding I believe.
Sofitech Ce code n'est valable que sur la V10.3 ? sur le 10.2 il y a une erreur de syntaxe dans le fi...
Nicolas Oui en effet, c'est un indicateur "10.3" à cause uniquement de la mise en forme des courbes ...
Nicolas
7 years ago
Holt EMA
Holt EMA
1
Indicators
robertanthonyuk Hi,What do the each colour represent? Rob
Nicolas You'll need to preload bars to get the good calculations of you indicators. I did not test i...
David Nicolas I tried DEFPARAM Preloadbars = 5000 And still the same drawn output of entries/exit...
marcara Hi, Thank you very much for the Moving Average Daily indicator, I am using it as indicator i...

Top