TradingView
cheatcountry
Jun 25, 2020 6:46 PM

Ehlers Mother Of Adaptive Moving Averages [CC] 

Apple Inc.NASDAQ

Description

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!

Release Notes

Made a suggest change to use degrees for the phase as Ehlers intended

Release Notes

changed default input
Comments
AsxPunter
is there a particular setting/tf to use this one for stocks and indices ? Thanks
cheatcountry
@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, 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)
daytraderph
can u suggest some trick to remove the noise in sideways market ?
cheatcountry
@daytraderph, message me and we can talk about this
santos1290
@cheatcountry, @daytraderph

Did you guys got any solution to this?
sal157011
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.
cheatcountry
@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, Yes, he always uses tradestation and the trigonometric functions on that platform are all in degrees.
Caversham
What is the point of lines 40 and 41? You calculate "smoothPeriod" but then do not use it anywhere.
smoothPeriod = 0.0
smoothPeriod := (0.33 * period) + (0.67 * nz(smoothPeriod[1]))
More