The ALMA moving average uses curve of the Normal (Gauss) distribution which can be placed by Offset parameter from 0 to 1. This parameter allows regulating the smoothness and high sensitivity of the Moving Average. Sigma is another parameter that is responsible for the shape of the curve coefficients. This moving average reduce lag of the informations but still being smooth to reduce noises.
This method of price average calculation could be used for any others technical indicators that used moving average for their own calculation (RSI, MACD, Stochastic, etc.).
From the Author: (Arnaud Legoux & Dimitris Kouzis-Loukas)
It removes small price fluctuations and enhances the trend by applying a moving average twice, one from left to right and one from right to left. At the end of this process the phase shift (price lag) commonly associated with moving averages is significantly reduced. Zero-phase digital filtering reduces noise in the signal. Conventional filtering reduces noise in the signal, but add delay.
The ALMA can give some excellent results if you take the time to tweak the parameters (don’t need to explain this part, it will be easy for you to find the right setting in less than hour)..
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 |
// parameters // Window = 9 // Sigma = 6 // Offset = 0.85 Price = Close m = (Offset * (Window - 1)) s = Window/Sigma WtdSum = 0 CumWt = 0 for k = 0 to Window - 1 do Wtd = Exp(-((k-m)*(k-m))/(2*s*s)) WtdSum = WtdSum + Wtd * Price[Window - 1 - k] CumWt = CumWt + Wtd next ALAverage = WtdSum / CumWt RETURN ALAverage |
Share this
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 :PRC is also on YouTube, subscribe to our channel for exclusive content and tutorials
Bonjour Nicolas
J’ai mis la moyenne ALMA sur des prix et j’ai ajouté une autre moyenne simple par exemple p= 11 , quand je bouge les paramètres de ALMA l’autre moyenne bouge aussi !
Est ce normal ? et si oui pourquoi ?
merci, bonne journée
Bonjour titi, je pense que tu dois faire erreur, ça n’est possible 🙂
Sorry ! erreur de débutant ! le bug venait de ” appliqué à ” qui s’adressait à ALMA en place de customclose …
Bonjour . j’ai un problème lorsque la variable Windows prend la valeur très grande, par exemple à partir de 300, j’ai seulement un petit bout de la courbe. Est-ce que quelqu’un aurait une petite idée ?
Je vous remercie par avance de votre réponse.
Augmenter la quantité d’unités affichées à l’écran
Nicolas, how does one convert this into an indicator?
This is already an indicator. Download the itf file, import it into ProRealTime an apply it on the price chart.
Moyenne mobile intéressante, dommage qu’elle soit si gourmande en puissance de calcul. Les valeurs supérieures à 200 (ou pire 500) ont tendance à peser sur PRT. C’est un peu mieux en v11 mais ça reste un point noir (freeze de quelques secondes pour recalcul de la MM)
ok.
Hi, simple and nice idea. One question though: I read
it removes small price fluctuations and enhances the trend by applying a moving average twice, one from left to right and one from right to left.
but can’t see this double “run”. Can you please explain this point? thanks.