cheatcountry

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!
Release Notes: Made a suggest change to use degrees for the phase as Ehlers intended
Release Notes: changed default input
Open-source script

In true TradingView spirit, the author of this script has published it open-source, so traders can understand and verify it. Cheers to the author! You may use it for free, but reuse of this code in a publication is governed by House Rules. You can favorite it to use it on a chart.

Want to use this script on a chart?

Kommentarer

can u suggest some trick to remove the noise in sideways market ?
+1 Svara
cheatcountry daytraderph
@daytraderph, message me and we can talk about this
Svara
santos1290 cheatcountry
@cheatcountry, @daytraderph

Did you guys got any solution to this?
Svara
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 Svara
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
Svara
sal157011 cheatcountry
@cheatcountry, Yes, he always uses tradestation and the trigonometric functions on that platform are all in degrees.
Svara
Shouldn't it be buy when the line is red and sell when green?
Svara
Hem Aktie-screener Forex-screener Krypto-screener Ekonomisk kalender Om Diagramfunktioner Priser Tipsa en vän Ordningsregler Hjälpcenter Webbsidor och mäklarlösningar Widgets Diagramlösningar Lightweight Charting Library Blogg och nyheter Twitter