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).
版本注释: Added missed radians to degrees conversion. Thanks to @sal157011
版本注释: Added ribbon filling
版本注释: Refactored
版本注释:
  • Fixed issue with decimal step in inputs
版本注释:
  • Refactored
版本注释:
  • Fixed error and refactored
版本注释:
  • Converted to v4
  • Added alerts
从常用脚本中删除 添加到常用脚本
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

评论

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 回复
everget sal157011
@sal157011, thank you. My bad.
回复
How would you compare this to the JMA (jurik moving average)? Have you tested/compared it?
+2 回复
everget janor123
@janor123, yup
回复
This is awesome!

I was thinking of working on this lately. I want to experiment with different alphas on the EMA.
+1 回复
Thanks!! Youre really on a roll releasing all these quality Alogrithms :)
Keep up the good work!
+1 回复
everget Neverstorm
@Neverstorm, okay)
+3 回复
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
回复
everget forexmike
@forexmike, what?
回复
Hello, Do I just copy and paste this code into trading view to create and use the indicator? Thanks, Mike
回复
首页 股票筛选器 外汇筛选器 加密货币筛选器 财经日历 如何运作 图表功能 价格 推荐朋友 网站规则 帮助中心 网站 & 经纪商解决方案 插件 图表解决方案 轻量图表库 博客 & 新闻 Twitter
概览 个人资料设置 账户和账单 推荐朋友 代币 我的客服工单 帮助中心 已发表观点 粉丝 正在关注 私人消息 在线聊天 退出