Unlike the standard MACD, the indicator has a smaller lag and three lines:
The histogram can serve as a leading signal - the histogram color changes before the intersection of the MACD and signal lines.
The indicator has four input parameters:


Translated from Russian by MetaQuotes Ltd.
Original code: https://www.mql5.com/ru/code/19897
Diff_TF_MA_EA
An Expert Advisor based on the Diff_TF_MA indicator.
Percentage_Crossover_Channel_EA
An Expert Advisor, which trades in a channel based on the Percentage_Crossover_Channel indicator.