A:=vol*C;
B:=SUM(A,1)/SUM(VOL,1);
B1:=EMA(B,17);
资金:=(B-B1)*100/B;
DIFF1:=EMA(资金,12)-EMA(资金,26);
DEA1:=EMA(DIFF1,9);
Mac:= 2*(DIFF1-DEA1);
低位金叉:=crOSS(DIFF1,DEA1) AND DIFF1<-0.1;
JCCOUNT:=COUNT(CROSS(DIFF1,DEA1),BArslAST(DEA1>=0));
二次金叉:=CROSS(DIFF1,DEA1) AND DEA1<0 AND COUNT(JCCOUNT=2,21)=1;
XG:低位金叉 OR 二次金叉;