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).
Sep 21
Release Notes: Added missed radians to degrees conversion. Thanks to @sal157011
Sep 21
Release Notes: Added ribbon filling
Sep 21
Release Notes: Refactored
Dec 12
Release Notes:
  • Fixed issue with decimal step in inputs
Jan 31
Release Notes:
  • Refactored
Feb 10
Release Notes:
  • Fixed error and refactored
Sep 15
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/2SQOhDF

Tip Jar
PayPal: https://www.paypal.me/alexeverget
BTC: 1FkyXRuR3wDjH1PrPAgvNVMaDoupJQZXi7
ETH: 0x2393f8a932828ef0274ebbc4f873152837d3ab5b
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

+3 Svara
everget sal157011
@sal157011, thank you. My bad.
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)
+2 Svara
Hem Aktie-screener Forex-screener Krypto-screener Ekonomisk kalender Program Hur det fungerar Diagramfunktioner Priser Ordningsregler Moderatorer Webbsidor och mäklarlösningar Widgets Diagramlösningar Lightweight Charting Library Help Center Refer a friend Funktionsförfrågan Blogg och nyheter Frågor och svar Wiki Twitter
Profil Profilinställningar Konto och fakturering Refer a friend Mina kölappar Help Center Publicerade idéer Följare Följer Privata meddelanden Chatt Logga ut