Ehlers Mother Of Adaptive Moving Averages [CC]

The Mother Of Adaptive Moving Averages was created by John Ehlers (Rocket Science For Traders pgs 182-183) and this is definitely my favorite Ehlers moving average script. This works as a trend indicator and a typical moving average. When the mama is above the fama then the stock is in an uptrend and vice versa. Of course it is also good when the price is above the fama and mama lines. Buy when the indicator line is green and sell when it is red.

Let me know if there are other indicator scripts you would like to see me publish or if you want something custom done!
Note di rilascio: Made a suggest change to use degrees for the phase as Ehlers intended
Note di rilascio: changed default input
Script open-source

Nello spirito di condivisione promosso da TradingView, l'autore (al quale vanno i nostri ringraziamenti) ha deciso di pubblicare questo script in modalità open-source, così che chiunque possa comprenderlo e testarlo. Puoi utilizzarlo gratuitamente, ma il riutilizzo del codice è subordinato al rispetto del Regolamento. Per aggiungerlo al grafico, mettilo tra i preferiti.

Vuoi usare questo script sui tuoi grafici?


is there a particular setting/tf to use this one for stocks and indices ? Thanks
100 coin
cheatcountry AsxPunter
@AsxPunter, The beautiful thing about this indicator is that it is fully adaptable to any timeframe. The only thing I could recommend is to change the fast limit and slow limit amounts to adjust how you prefer
AsxPunter cheatcountry
@cheatcountry, bcoz u r the creator , I wud like to hear from u a good setting as I cud become subjective in selection. Wonder what is good for stks and indices (as they are slower to move)
can u suggest some trick to remove the noise in sideways market ?
+1 Rispondi
cheatcountry daytraderph
@daytraderph, message me and we can talk about this
santos1290 cheatcountry
@cheatcountry, @daytraderph

Did you guys got any solution to this?
This is my favorite Ehlers indicator for trends and I recognize it right away at first sight by its ratcheting, and I don't see that on this case.
The reason must be on the line 43 of the script. The phase must be in degrees. phase = i1 != 0 ? 180/pi * atan(q1 / i1) : 0
For me the best indication of a sure change in trend is when the FAMA line changes direction, up or down.
I like to fill the space between the lines of green when MAMA>FAMA and of red if not.
+1 Rispondi
cheatcountry sal157011
@sal157011, yeah I changed the script to use degrees for the phase. I always manage to miss that in ehlers scripts because he uses degrees for everything and everyone else uses radians
sal157011 cheatcountry
@cheatcountry, Yes, he always uses tradestation and the trigonometric functions on that platform are all in degrees.
Can you create corrected moving average