X_01:=O/HHV(C,30)<0.78;
X_02:=C/MA(C,50)<0.78;
X_03:=COUNT(O!=LLV(O,13),3)>=1;
X_04:=COUNT(H>L*1.05,5)>2;
X_05:=C
N:=10;
N1:=12;
DH:=(MIN(C,O)+2*H)/3;
XL:=(MAX(C,O)+2*L)/3;
价:=((DH+XL)/2+AMOUNT/(vol*100))/2;
ZDF:=(价-REF(价,1));
MN:=MA(ZDF,5)+EMA(价,5);
MN3:=MA(ZDF,12)+EMA(价,12);
MN7:=MA(ZDF,21)+EMA(价,21);
ZD:=MAX(MAX(MN,MN3),MN7);
ZX:=MIN(MIN(MN,MN3),MN7);
乖离:=(ZD/ZX-1)*100;
M1角:=ATAN((MN/REF(MN,1)-1)*100)*180/3.1416;
M2角:=ATAN((MN3/REF(MN3,1)-1)*100)*180/3.1416;
M3角:=ATAN((MN7/REF(MN7,1)-1)*100)*180/3.1416;
角度:=-(3*M1角+2*M2角+M3角)/36;
X01:=C/MA(C,30)<0.75;
X02:=C/MA(C,50)<0.78;
X04:=H/L>1.053 AND COUNT(H/L>1.053,5)>2;
X05:=X04 AND (X01 OR X02);
X06:=DMA(EMA(C,5),SUM(VOL,8)/2.8/CAPITAL);
X07:=(C-X06)/X06*100;
X08:=REF(X07,1)<-34 AND X07>REF(X07,1) AND REF(X07,1)1.76 OR X05;
X12:=MA(INDEXC,13)>1.050*INDEXC;
X13:=(C-REF(C,21))/REF(C,21)*10<-3.30;
X14:=(C-MA(C,2))/MA(C,2)*100<-3.7;
X15:=X12 AND X13 AND X14;
X16:=crOSS(0.5,X15);
Q18:=CLOSE/MA(CLOSE,30)*100<80;
Q19:=CLOSE/MA(CLOSE,50)*100<78;
Q20:=CLOSE/MA(CLOSE,70)*100<72;
Q21:=Q18 AND Q19 AND Q20;
THY:=CROSS(REF(乖离,1),乖离) AND EXIST(乖离>N1,3) AND EXIST(角度>N,3) AND X08 AND X16 AND Q21;
XG:X_06 OR THY;