OPEN-SOURCE SCRIPT

Zero Lag MACD Enhanced - Version 1.1

ENHANCED ZERO LAG MACD
Version 1.1
  • Based on ZeroLag EMA - see Technical Analysis of Stocks and Commodities, April 2000
  • Original version by user Glaz. Thanks !
  • Ideas and code from yassotreyo version.
  • Tweaked by Albert Callisto (AC)


New features:
  • Added original signal line formula
  • Added optional EMA on MACD
  • Added filling between the MACD and signal line


I looked at other versions of the zero lag and noticed that the histogram was slightly different. After looking at other zero lags on TV, I noticed that the algorithm implementation of Glanz generated a modified signal line. I decided to add the old version to be compliant with the original algorithm that you will find in other platforms like MT4, FXCM, etc.

So now you can choose if you want the original algorithm or Glanz version. It's up to you then to choose which one you prefer. I also added an extra EMA applied on the MACD. This is used in a system I am currently studying and can be of some interest to filter out false signals.
Moving Average Convergence / Divergence (MACD)

Script de código aberto

No verdadeiro espírito do TradingView, o autor desse script o publicou como código aberto, para que os traders possam compreendê-lo e analisá-lo. Parabéns ao autor! Você pode usá-lo gratuitamente, mas a reutilização desse código em publicações é regida pelas Regras da Casa. Você pode favoritá-lo para usá-lo em um gráfico.

Quer usar esse script no gráfico?


Também em:

Aviso legal