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!
Phát hành các Ghi chú: Made a suggest change to use degrees for the phase as Ehlers intended
Phát hành các Ghi chú: changed default input
Mã nguồn mở

Với tinh thần của TradingView, tác giả đã xuất bản tập lệnh theo mã nguồn mở, vì thế trader có thể dễ dàng hiểu và tùy chỉnh được. Bạn có thể sử dụng miễn phí, hoặc tùy chỉnh lại mã đã được cấp phép bởi Quy tắc Chung. Bạn có thể sử dụng nó trên biểu đồ.

Bạn muốn sử dụng tập lệnh này trên biểu đồ?

Bình luận

is there a particular setting/tf to use this one for stocks and indices ? Thanks
100 xu
Phản hồi
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
Phản hồi
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)
Phản hồi
can u suggest some trick to remove the noise in sideways market ?
+1 Phản hồi
cheatcountry daytraderph
@daytraderph, message me and we can talk about this
Phản hồi
santos1290 cheatcountry
@cheatcountry, @daytraderph

Did you guys got any solution to this?
Phản hồi
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 Phản hồi
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
Phản hồi
sal157011 cheatcountry
@cheatcountry, Yes, he always uses tradestation and the trigonometric functions on that platform are all in degrees.
Phản hồi
Can you create corrected moving average
Phản hồi