New free code from MQL5: indicators, EAs, and scripts for traders.
barsToCount parameter. Updated every tick. It is based on http://codebase.mql4.com/en/code/7197Unlike the latter indicator, this one is plotted using a buffer.

Classic MACD strategy made fully automatic – the MACD Expert Advisor for MT4 handles it all. Check it out.
Level up your trading with professional RobotFX expert advisors and indicators. Visit robotfx.org for proven MT4/MT5 tools.
7812