DIF:=EMA(CLOSE,12)-EMA(CLOSE,26);
DEA:=EMA(DIF,9);
macd:=(DIF-DEA)*2 ;
JZX:=BArslAST(crOSS(DEA,0));
XG:CROSS(DIF,DEA) AND EVERY(DEA>0,JZX) AND COUNT(CROSS(DIF,DEA),JZX)=1 AND COUNT(CROSS(DEA,DIF),8)=1 ;
DIF:=EMA(CLOSE,12)-EMA(CLOSE,26);
DEA:=EMA(DIF,9);
macd:=(DIF-DEA)*2 ;
JZX:=BArslAST(crOSS(DEA,0));
XG:CROSS(DIF,DEA) AND EVERY(DEA>0,JZX) AND COUNT(CROSS(DIF,DEA),JZX)=1 AND COUNT(CROSS(DEA,DIF),8)=1 ;