DIF:=EMA(CLOSE,12)-EMA(CLOSE,26);
DEA:=EMA(DIF,9);
X_2:=COUNT(crOSS(DIF,DEA),BArslAST(DEA>=0));
X_3:=CROSS(DIF,DEA) AND DEA<0 AND COUNT(X_2=2,21)=1;
洋红柱:X_3;
DIF:=EMA(CLOSE,12)-EMA(CLOSE,26);
DEA:=EMA(DIF,9);
X_2:=COUNT(crOSS(DIF,DEA),BArslAST(DEA>=0));
X_3:=CROSS(DIF,DEA) AND DEA<0 AND COUNT(X_2=2,21)=1;
洋红柱:X_3;