DIFF:=EMA(CLOSE,3)-EMA(CLOSE,8);
DEA:=EMA(DIFF,9);
macd:=2*(DIFF-DEA);
A1:=BArslAST(REF(crOSS(DIFF,DEA),1));
底背离:=REF(CLOSE,A1+1)>CLOSE AND DIFF>REF(DIFF,A1+1) AND CROSS(DIFF,DEA);
LOWV:=LLV(LOW,9);
HIGHV:=HHV(HIGH,9);
RSV:=EMA((CLOSE-LOWV)/(HIGHV-LOWV)*100,3);
K:=EMA(RSV,3);
D:=MA(K,3);
kd金叉:=K<=50 AND D<=50 AND CROSS(K,D);
N:=83;
TYP:=(HIGH+LOW+CLOSE)/3;
cci:=(TYP-MA(TYP,N))/(0.015*AVEDEV(TYP,N));
CCI上穿:=CROSS(CCI,-100);
GZ:底背离 AND KD金叉 AND CCI上穿;