This is a very interesting version of the MACD by Mladen & Mrtools called the MACD with Pivots.
It allows you to also change the Pivots period. Thanks to Moey for posting this and Mrtools and Pacois for helping make this indicator NMC (New Metatrader Compatible) in this thread: Coding Help: MACD Pivots.