Holt EMA

Holt EMA

The Holt EMA indicator return the Holt method of smoothing an exponential average.

You’ll find in this post 2 different indicators: the first one is the Holt EMA displayed in only one color and compatible with prorealtime 10.2. The second one is the same moving average but displayd with different colors accordingly to its slope in degrees, I explain it below the first indicator code.

Coded by request on French forums.

 

The code uses the Holt EMA as a function, measures its slope in degrees and returns the moving average of different colors according to its degree of inclination. The ITF file of the indicator and an example of how it looks o chart is attached.

The formula of measuring the slope in degrees is rather nice I must admit. I can use it to make it rather a dynamic variation of the color in RGB type “rainbow”, because here we use only 5 different colors according to inclination of the slope and conditions tested on “angle1 ” and “angle2 “which are 2 parameterizable variables however. In short, a good exercise and a new addition to the library of codes for the happiness of all. I leave everyone to look at what it returns, I have not well understood if the Holt EMA has some interest on my side.
Attention this indicator with variation of color is compatible only version 10.3.

 

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?

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

  1. robertanthonyuk • 73 days ago #

    Hi,
    What do the each colour represent?

    Rob

avatar
Register or

Likes

avatar avatar avatar avatar avatar
Related users ' posts
JM David, Thanks a lot and next week I begin the test of this strategy in real... You have ot...
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...
Thomas007 Is there any way to build something similar for FX? I wonder what would be the replacement f...
supertiti Felicidades Laurenzo d'avoir pris le temps pour ce gros travail et en plus dans l'esprit du ...
gatarayihajp Hello,  It's very interesting indicator. Could you explain more about it? Thank a lot
Pietro Fontana Hi Wings, i did not found a forum thread for this interesting system so i post my comment he...
stockdemon The larger than sign (>) means that it will trigger at 54 or later, i.e. also 22:00.
raphaelopilski Hi Wing, nice work!!! question: could you put a trailing stop in it? like: after profit of...
Tedvin Nice one, thanks a lot Maz :)
victormork Thanks Man!!
MtraderWD40 Many thanks for sharing this, simple but a great indicator. Used it successfully for visual ...
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
Gennadiy Thank you, very much, Nicolas, for this wonderfull Indicator! I have a question. I have adde...
Gennadiy Here is my code: RETURN long as "long signal", short as "short signal", weightedaverage[MApe...
Gennadiy Here is the link to the image: http://ipic.su/img/img7/fs/Candle.1503737934.png
Raspoutine Hi Nicolas,The results are not identical   ma200 = Arevage(200) //c4 = summation[2...
Magela01 is this ok with AMibroker?
Nicolas Prorealcode is a website about prorealtime trading platform programming, this code will not ...
gabri Kris, let me know which color you want to use. The lines to change are the 22,23,24.
paulon Hi Gabri.  Very interesting indicator.  I changed the colours to if v>=v[1] thenr=0g=255b...
gabri Paulon, you are right, I used the variable b in too many places :) Try to change the follo...
David Somogyi Hello, 180º profit booster from Greg Secker. Regards,
lizmerrill david, THANKS FOR THE REPLY, IN YOUR CODE BELOW: FDI=0 HH = highest[N](close) LL = lo...
David Somogyi Hello, This is merely a filter indicator for measuring high fractality, which helps to av...
TheAccountant Bonjour et merci pour cet indicateur. j'essai de parametrer une alerte sur le changement de...
leyoy Salut Nicolas, est-ce compliqué de faire varier le fond de PRT en fonction de la couleur de...
Nicolas Il faut utiliser backgroundcolor, bon courage. 
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 ...
piarou Objet : PRC_QEMA | indicator Bonjour, Bizarrement : • les deux paramètres sont en remarqu...
Nicolas En effet, c'est le cas si on copie/colle le code. Ces 2 variables sont inscrites en externes...
David Nicolas I've looked at it again and there's a problem.  As an example here's a simple cross...
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...
morgiza Thank you very much! Request submitted.Paul
JeanChristophe127 Bonjour, Est-ce que quelqu'un peut me donner un lien vers la formule de base de cet indica...
Nicolas Je l'ai converti depuis un code pinescript. De mémoire il s'agit bien d'une variation d'une ...
Nicolas
9 months ago
Nicolas Because of no data available at the start of calculations. Add this at line 15 : if barindex...
srajtri Hi Nicolas, thanks for your updates and am very new in trading would you guide me to back t...
Nicolas Please post any question on forums, thanks.

Top