DIF:=EMA(CLOSE,12)-EMA(CLOSE,26);
DEA:=EMA(DIF,9);
macd:=(DIF-DEA)*2;
TT:=BArslAST(DIF<0);
MacD零轴上金叉:SUM(crOSS(MACD,0),TT)=1 AND TT>0 AND CROSS(MACD,0);
DIF:=EMA(CLOSE,12)-EMA(CLOSE,26);
DEA:=EMA(DIF,9);
macd:=(DIF-DEA)*2;
TT:=BArslAST(DIF<0);
MacD零轴上金叉:SUM(crOSS(MACD,0),TT)=1 AND TT>0 AND CROSS(MACD,0);