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精神中,這個腳本的作者以開源的方式發佈,這樣交易員可以理解和驗證它。請向作者致敬!您可以免費使用它,但在出版物中再次使用這段程式碼將受到網站規則的約束。 您可以收藏它以在圖表上使用。

想在圖表上使用此腳本?

免責聲明