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).
Release Notes: Added missed radians to degrees conversion. Thanks to @sal157011
Release Notes: Added ribbon filling
Release Notes: Refactored
Release Notes:
  • Fixed issue with decimal step in inputs
Release Notes:
  • Refactored
Release Notes:
  • Fixed error and refactored
Release Notes:
  • Converted to v4
  • Added alerts
Ta bort från favoritskript Lägg till som favoritskript
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:
PayPal: https://www.paypal.me/alexeverget

Kommentarer

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

+4 Svara
everget sal157011
@sal157011, thank you. My bad.
Svara
How would you compare this to the JMA (jurik moving average)? Have you tested/compared it?
+2 Svara
everget janor123
@janor123, yup
Svara
This is awesome!

I was thinking of working on this lately. I want to experiment with different alphas on the EMA.
+1 Svara
Thanks!! Youre really on a roll releasing all these quality Alogrithms :)
Keep up the good work!
+1 Svara
everget Neverstorm
@Neverstorm, okay)
+3 Svara
thanks for sharing this
Svara
I guess my comment/question really won't apply because according to other comments, it is not working correctly. Has anyone updated it to working correctly status? Thank you
Svara
everget forexmike
@forexmike, what?
Svara
Hem Aktie-screener Forex-screener Krypto-screener Ekonomisk kalender Hur det fungerar Diagramfunktioner Priser Tipsa en vän Ordningsregler Hjälpcenter Webbsidor och mäklarlösningar Widgets Diagramlösningar Lightweight Charting Library Blogg och nyheter Twitter
Profil Profilinställningar Konto och fakturering Hänvisade vänner Mynt Mina kölappar Hjälpcenter Publicerade idéer Följare Följer Privata meddelanden Chatt Logga ut