DEA:=EMA(DIF,9);
MACD:=(DIF-DEA)* 2;
Like the nature of stocks, it should be noted that when the sideways fluctuation is not large, the MACD trend is not referenced.