OPEN-SOURCE SCRIPT

Alpha-Configurable EMA MACD

I read that the original MACD calculation used EMA alphas of 0.15 and 0.075, and that the 12 and 26 period EMA settings only approximate that. So using this excellent library: https://www.tradingview.com/script/sSlwVjuI-ka66-lib-MovingAverages/, I made a version of MACD that uses the original alpha-based EMA instead of period-based EMA. Color palette taken from the default Tradingview MACD. The result is qualitatively pretty much the same, although quantitatively its very slightly different. Publishing mostly to share my curiosity satisfied. You won't really gain any appreciable advantage from using this over the default version, but it was nice to see that.
alphaExponential Moving Average (EMA)Moving Average Convergence / Divergence (MACD)

开源脚本

本着真正的TradingView精神,此脚本的作者已将其开源,以便交易者可以理解和验证它。向作者致敬!您可以免费使用它,但在出版物中重复使用此代码受网站规则约束。 您可以收藏它以在图表上使用。

想在图表上使用此脚本?

免责声明