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).
Notas de Lançamento: Added missed radians to degrees conversion. Thanks to @sal157011
Notas de Lançamento: Added ribbon filling
Notas de Lançamento: Refactored
Notas de Lançamento:
  • Fixed issue with decimal step in inputs
Notas de Lançamento:
  • Refactored
Notas de Lançamento:
  • Fixed error and refactored
Notas de Lançamento:
  • Converted to v4
  • Added alerts
Remover dos Scripts Favoritos Adicionar para Scripts Favoritos
A list of Free indicators: https://bit.ly/2S7EPuN
A list of Paid indicators: https://bit.ly/2SQOhDF

Tip Jar
BTC, BCH: 1FkyXRuR3wDjH1PrPAgvNVMaDoupJQZXi7
ETH, LINK:
0x2393f8a932828ef0274ebbc4f873152837d3ab5b
QTUM:
Qb6YXy3FitoMvevWpTHFtbomiXcS8YVSdi
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 Resposta
everget sal157011
@sal157011, thank you. My bad.
Resposta
This is awesome!

I was thinking of working on this lately. I want to experiment with different alphas on the EMA.
+1 Resposta
Thanks!! Youre really on a roll releasing all these quality Alogrithms :)
Keep up the good work!
+1 Resposta
everget Neverstorm
@Neverstorm, okay)
+2 Resposta
Início Rastreador de Fundamentos Rastreador Forex Rastreador de Sinais Criptomoedas Calendário econômico Como Funciona Recursos gráficos Planos Regras da Casa Moderadores Soluções para sites e corretoras Widgets Soluções em Gráficos Obter Ajuda Solicitação de recurso Blog & Notícias FAQ Wiki Twitter
Perfil Configurações de perfil Conta e cobrança TradingView Coins Meus Tíquetes de Suporte Obter Ajuda Ideias Publicadas Seguidores Seguindo Mensagens Privadas Conversa Deslogar