macd1:=12;
MacD2:=26;
DIFF:=EMA(CLOSE,12)-EMA(CLOSE,26);
DEA:=EMA(DIFF,9);
DIF:=EMA(CLOSE,MACD1)-EMA(CLOSE,MACD2);
红箭头:crOSS(DIF,DEA);
macd1:=12;
MacD2:=26;
DIFF:=EMA(CLOSE,12)-EMA(CLOSE,26);
DEA:=EMA(DIFF,9);
DIF:=EMA(CLOSE,MACD1)-EMA(CLOSE,MACD2);
红箭头:crOSS(DIF,DEA);