everget

Ehlers MESA Adaptive Moving Averages (MAMA & FAMA)

Ehlers MESA Adaptive Moving Averages ( MAMA & FAMA) script.

These indicators was originally developed by John F. Ehlers (Stocks & Commodities V. 19:10: MESA Adaptive Moving Averages).
Versionshinweise: Added missed radians to degrees conversion. Thanks to @sal157011
Versionshinweise: Added ribbon filling
Versionshinweise: Refactored
Versionshinweise:
  • Fixed issue with decimal step in inputs
Versionshinweise:
  • Refactored
Versionshinweise:
  • Fixed error and refactored
Versionshinweise:
  • Converted to v4
  • Added alerts
Versionshinweise:
  • Update
Open-source Skript

Ganz im Sinne von TradingView hat der Autor dieses Skripts es als Open-Source veröffentlicht, damit Trader es verstehen und überprüfen können. Ein Hoch auf den Autor! Sie können es kostenlos verwenden, aber die Wiederverwendung dieses Codes in einer Publikation unterliegt den Hausregeln. Sie können das Skript den Favoriten hinzufügen, um es auf dem Chart zu verwenden.

Möchten Sie dieses Skript auf einem Chart verwenden?
A list of Free indicators:
https://bit.ly/2S7EPuN

A list of Paid indicators:
https://bit.ly/33MA81f

Earn $30:
https://www.tradingview.com/gopro/?share_your_love=everget

Toss a coin to your witcher:
https://www.paypal.me/alexeverget

Kommentare

The code is wrong because in Tradestation the function atan() returns degrees while in PineScript returns radians.
To fix the problem the result of the function in degrees must be converted into radians multiplying it by 180/pi.
You must create de variable pi= 3.14159265359 first and
line 50 mesaPeriod:= 360/atan(Im/Re) must be rewritten into mesaPeriod:= 2*pi/atan(Im/Re)
line 72 phase:=atan(Q1/I1) must be rewritten into phase:= 180/pi * atan(Q1 / I1)

note: 360º = 2*pi radians

The chart should look something like this

+5 Antworten
everget sal157011
@sal157011, thank you. My bad.
Antworten
How would you compare this to the JMA (jurik moving average)? Have you tested/compared it?
+2 Antworten
everget janor123
@janor123, yup
Antworten
janor123 everget
@everget, which one seemed better?
+1 Antworten
everget janor123
@janor123, I have a backtester for that


Over 60 different types of moving averages are available
+1 Antworten
thnax 4 update!
+1 Antworten
everget Kunzat
@Kunzat, you're welcome!
Antworten
thanks for sharing this
+1 Antworten
everget blackcat1402
@blackcat1402, you're welcome
Antworten