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
發布通知: Added missed radians to degrees conversion. Thanks to @sal157011
Sep 21
發布通知: Added ribbon filling
Sep 21
發布通知: Refactored
Dec 12
發布通知:
  • Fixed issue with decimal step in inputs
Jan 31
發布通知:
  • Refactored
Feb 10
發布通知:
  • Fixed error and refactored
Sep 15
發布通知:
  • Converted to v4
  • Added alerts
從喜愛的腳本中移除 添加到喜愛的腳本
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 回覆
everget sal157011
@sal157011, thank you. My bad.
回覆
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)
+2 回覆
首頁 股票篩選器 外匯篩選器 加密貨幣篩選器 全球財經日曆 節目 如何運作 圖表功能 價格 網站規則 版主 網站 & 經紀商解決方案 小工具 圖表解決方案 輕量圖表庫 幫助中心 推薦朋友 功能請求 部落格 & 新聞 推特
概述 個人資料設定 賬戶和賬單 推薦朋友 我的客服工單 幫助中心 發表的想法 粉絲 正在關注 私人訊息 在線聊天 登出