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)

Script open-source

Dans le plus pur esprit TradingView, l'auteur de ce script l'a publié en open-source, afin que les traders puissent le comprendre et le vérifier. Bravo à l'auteur! Vous pouvez l'utiliser gratuitement, mais la réutilisation de ce code dans une publication est régie par nos Règles. Vous pouvez le mettre en favori pour l'utiliser sur un graphique.

Vous voulez utiliser ce script sur un graphique ?

Clause de non-responsabilité