X:=(3*C+L+O+H)/6;
DKX:=(20*X+19*REF(X,1)+18*REF(X,2)+17*REF(X,3)+16*REF(X,4)+15*REF(X,5)+14*REF(X,6)
+13*REF(X,7)+12*REF(X,8)+11*REF(X,9)+10*REF(X,10)+9*REF(X,11)+8*REF(X,12)
+7*REF(X,13)+6*REF(X,14)+5*REF(X,15)+4*REF(X,16)+3*REF(X,17)+2*REF(X,18)+
REF(X,20))/210,COLORGREEN,LINETHICK2;
DIF:=EMA(CLOSE,12)-EMA(CLOSE,26);
DEA:=EMA(DIF,9);
macd:=(DIF-DEA)*2;
XG:=MACD>0;
MA5:=MA(C,3);
MA10:=MA(C,5);
MA20:=MA(C,15);
GJZB1:=(CLOSE*2+HIGH+LOW)/4;
GJZB2:=EMA(GJZB1,13)-EMA(GJZB1,21);
GJZB3:=EMA(GJZB2,2);
XG1:=2*(GJZB2-GJZB3)*3.8, LINESTICK;
选股:crOSS(C,DKX) AND XG1>0 AND XG;