TYP:=(HIGH+LOW+CLOSE)/3;
CCI:=(TYP-MA(TYP,14))/(0.015*AVEDEV(TYP,14));
ZT:=C/REF(C,1)>1.0975;
HH3:=COUNT(ZT AND NOT(C/REF(C,1)>1.095 AND H=O),12)>=1;
RSV:=(CLOSE-LLV(LOW,9))/(HHV(HIGH,9)-LLV(LOW,9))*100;
K:=SMA(RSV,3,1);
D:=SMA(K,3,1);
J:=3*K-2*D;
{股票指标网 }
LC:=REF(CLOSE,1);
RSI1:=SMA(MAX(CLOSE-LC,0),6,1)/SMA(ABS(CLOSE-LC),6,1)*100;
RSI2:=SMA(MAX(CLOSE-LC,0),12,1)/SMA(ABS(CLOSE-LC),12,1)*100;
SZ:=REF(CCI,1)<80 AND CCI>80 AND CCI>REF(CCI,1);
SZ1:=COUNT(REF(D,K),2)>=1 OR CROSS(K,D) ;
SZ2:=COUNT(REF(RSI2,RSI1),2)>=1 OR CROSS(RSI1,RSI2) ;
SZ3:=V>REF(V,1);
XG:SZ AND SZ1 AND SZ2 AND SZ3 AND HH3;