DIF:=EMA(CLOSE,12)-EMA(CLOSE,26);
DEA:=EMA(DIF,9);
macd:=(DIF-DEA),COLORRED;
走势柱:=MACD;
走势线:=走势柱,COLOR99EEEE;
走势辅线:=EMA(走势线,3),COLOR999999;
红箭头:crOSS(走势线,走势辅线);
DIF:=EMA(CLOSE,12)-EMA(CLOSE,26);
DEA:=EMA(DIF,9);
macd:=(DIF-DEA),COLORRED;
走势柱:=MACD;
走势线:=走势柱,COLOR99EEEE;
走势辅线:=EMA(走势线,3),COLOR999999;
红箭头:crOSS(走势线,走势辅线);