GSPT2:=EMA(100*(CLOSE-LLV(LOW,100))/(HHV(HIGH,100)-LLV(LOW,100)),5);
GSPT4:=EMA(CLOSE,2)-EMA(CLOSE,120);
GSPT5:=EMA(GSPT4,68);
GSPT6:=GSPT4+GSPT5;
GSPT7:=POW(GSPT6,3)*0.1+POW(GSPT6,1);
GSPT8:=MA(GSPT7,30);
GSPT13:=CLOSE>=INTPART(REF(CLOSE,1)*1.08*100+0.5)/100;
GSPT14:=GSPT13*GSPT8/5;
GSPT15:=(CLOSE-LLV(LOW,9))/(HHV(HIGH,9)-LLV(LOW,9))*100;
GSPT16:=SMA(GSPT15,3,1);
GSPT18:=INTPART(SMA(GSPT15,3,1));
GSPT19:=INTPART(SMA(GSPT16,3,1));
GSPT20:=GSPT18+GSPT19;
GSPT21:=ABS((10000*(CLOSE-REF(CLOSE,1))/REF(CLOSE,1)>995)*GSPT14);
GSPT22:=CROSS(GSPT20,GSPT2) OR GSPT21>0;
GSPT23:=UPNDAY(CLOSE,2) AND GSPT22;
YGCH:=REF(GSPT23,1) OR GSPT23;
XPH1:=CLOSE*VOL;
XPH2:=EMA((EMA(XPH1,3)/EMA(VOL,3)+EMA(XPH1,6)/EMA(VOL,6)+EMA(XPH1,12)/EMA(VOL,12)+EMA(XPH1,9)/EMA(VOL,9))/4,8);
XPH3:=1.06*XPH2;
APH4:=EMA(XPH3-(EMA(CLOSE,3)-XPH3),5);
YDYH:=CROSS(CLOSE,APH4);
AE2:=(((2*CLOSE)+HIGH)+LOW)/4;
AE3:=LLV(LOW,34);
AE4:=HHV(HIGH,34);
NED:=(EMA((((AE2-AE3)/(AE4-AE3))*100),8));
FAR:=(EMA(NED,5));
HXLH:=CROSS(NED,FAR) AND C/REF(C,1)>1;
DIFF:=EMA(CLOSE,8)-EMA(CLOSE,13);
DEA:=EMA(DIFF,5);
RSV1:=(CLOSE-LLV(LOW,8))/(HHV(HIGH,8)-LLV(LOW,8))*100;
K:=SMA(RSV1,3,1);
D:=SMA(K,3,1);
LC:=REF(CLOSE,1);
RSI1:=(SMA(MAX(CLOSE-LC,0),5,1))/(SMA(ABS(CLOSE-LC),5,1))*100;
RSI2:=(SMA(MAX(CLOSE-LC,0),13,1))/(SMA(ABS(CLOSE-LC),13,1))*100;
RSV2:=-(HHV(HIGH,13)-CLOSE)/(HHV(HIGH,13)-LLV(LOW,13))*100;
LWR1:=SMA(RSV2,3,1);
LWR2:=SMA(LWR1,3,1);
BBI2:=(MA(CLOSE,3)+MA(CLOSE,6)+MA(CLOSE,12)+MA(CLOSE,24))/4;
MTM2:=CLOSE-REF(CLOSE,1);
MMS:=100*EMA(EMA(MTM2,5),3)/EMA(EMA(ABS(MTM2),5),3);
MMM:=100*EMA(EMA(MTM2,13),8)/EMA(EMA(ABS(MTM2),13),8);
MA11:=MA(CLOSE,5);
MA22:=REF(MA(CLOSE,5),1);
GU2:=IF(MONTH<12,1,1);
GU3:=(2*CLOSE+HIGH+LOW)/4;
GU4:=LLV(LOW,34);
GU5:=HHV(HIGH,34);
MAV:=(C*2+H+L)/4;
SK:=EMA(MAV,13)-EMA(MAV,34);
SD:=EMA(SK,5);
空方主力:=(-2*(SK-SD))*3.8;
多方主力:=(2*(SK-SD))*3.8;
主力:=EMA((GU3-GU4)/(GU5-GU4)*100,13)*GU2;
散户:=EMA(0.667*REF(主力,1)+0.333*主力,2);
IVF3:=(多方主力>空方主力) AND (MA22<=MA11) AND (主力>散户) AND (DIFF>DEA) AND (K>D) AND (RSI1>RSI2) AND (LWR1>LWR2) AND (CLOSE>BBI2) AND (MMS>MMM);
LMSH:=REF(IVF3=1,1) AND IVF3;
RSV:=(CLOSE-LLV(LOW,21))/(HHV(HIGH,21)-LLV(LOW,21))*100;
CBDX:=SMA(SMA(RSV,3,1),3,1)+3*STD(CLOSE,21);
X_1:=CLOSE;
X_2:=LOW;
X_3:=HIGH;
X_4:=OPEN;
X_5:=4*X_1;
X_6:=3*X_2;
X_7:=2*X_3;
X_8:=1*X_4;
X_9:=POW(X_5+X_6+X_7+X_8,2);
X_10:=SUM(IF(X_9>REF(X_9,1),X_9*VOL,0),55)/SUM(IF(X_9<REF(X_9,1),X_9*VOL,0),55);
X_22:=X_1-REF(MA(X_1,20),20/2+1);
X_24:=SUM(MA(X_3-X_2,9)/MA(MA(X_3-X_2,9),9),25);
X_25:=MA(X_24,6);
X_26:=4;
X_27:=3;
X_28:=2;
X_29:=1;
X_30:=BARSCOUNT(4*X_1+3*X_2+2*X_3+1*X_4-X_27*X_1-(X_28+X_29)*X_2-(X_26-X_28)*X_3-(X_28-X_29)*X_4);
X_36:=X_26*X_2+X_27*X_4-X_28*X_1+X_7/X_27!=POW(X_28,2)*X_3+(X_26-X_29)*X_4-SQRT(X_26)*X_1+X_3*X_28/(X_28+X_29);
X_40:=X_26*X_27*X_28*X_29+X_26*X_27-X_27*X_28;
X_47:=REF(LOW,1);
X_48:=SMA(ABS(LOW-X_47),3,1)/SMA(MAX(LOW-X_47,0),3,1)*100;
X_49:=EMA(X_48*10,3);
X_50:=SQRT(X_26)+X_26*X_27-POW(X_28,2)-X_28*X_26;
X_51:=LLV(LOW,13);
X_52:=HHV(X_49,13);
X_53:=EMA(IF(LOW<=X_51,(X_49+X_52*2)/2,0),3)/618;
X_55:=X_48+X_24;
X_56:=X_49+X_22;
X_57:=X_30>X_40;
X_59:=MA(X_5-X_27*X_1,X_26+X_27+X_28);
X_60:=(X_27*X_28+X_26)*X_2!=(X_27*X_26-X_28)*X_3;
X_61:=MA(X_51,X_27+X_27+X_26);
X_64:=REF(CLOSE,X_27)<1.095*REF(CLOSE,X_26+X_28) AND REF(CLOSE,X_27)>1.028*REF(CLOSE,X_26+X_28) AND X_59>X_58AND REF(LOW,X_28+X_27+X_26)<REF(HIGH,X_29+X_28+X_27) AND NOT(REF(CLOSE,X_28*X_27)>REF(CLOSE,X_28*X_26))AND REF((CLOSE+HIGH+OPEN)/X_26,X_28*X_27)>1.03*REF((CLOSE+HIGH+OPEN)/(X_27+X_28-X_29),X_26+X_28+X_27-X_28-X_29) AND X_56>X_55;
X_65:=X_61>X_59 AND X_53>X_48 AND REF(CLOSE,X_27+X_28)>REF(HIGH,X_28*X_26) AND REF(LOW,X_27*X_28)<0.97*REF(CLOSE,X_25+X_26+X_27)AND BARSLAST(REF(CLOSE,3)>REF(LOW,4)) AND REF(4*CLOSE+OPEN+2*LOW,8)>1.02*REF(OPEN+4*CLOSE+2*HIGH,8);
X_66:=8*CLOSE+7*OPEN+6*HIGH+5*LOW;
X_67:=EMA(IF(LOW<=X_51,(X_49+X_52*2)/2,0),3)/618*(X_27*X_28+X_29)/((X_26+X_27)*X_53)+(X_26*X_27*X_28+X_28);{分析家公式网HTTP://WWW.70822.COM}
X_70:=X_5/((X_27-X_28)*X_1)*X_67;
X_74:=REF(CLOSE,X_26+X_27)>REF(HIGH,X_26+X_28) AND FILTER(CROSS(X_70,X_29+X_28),X_29+X_28)AND REF((X_26+X_27)*X_3,X_26+X_27+X_28)<0.97*REF((X_27*X_28+X_29)*X_2,X_28+X_26+X_27);
X_75:=X_70+EMA(IF(LOW<=X_51,(X_49+X_52*2)/2,0),3)/618/X_53-(X_27*X_28+SQRT(X_26)+X_29);
X_76:=X_67/X_27+POW(X_27*(X_28+X_29),2)+X_26*X_27-X_28;
X_77:=X_76/X_75+X_7/HIGH*(8*CLOSE+7*OPEN+6*HIGH+5*LOW)/(X_28*X_76-X_75)/X_66;
X_78:=7*CLOSE+6*OPEN+5*HIGH+(X_26*X_27*X_28*X_29-X_67+X_27*X_28+X_29)*LOW;
X_79:=X_66-X_78;
X_80:=X_79-(CLOSE+OPEN+LOW);
X_81:=X_80*X_77;
X_82:=SUM(IF(X_9>REF(X_9,1),X_9*VOL,0),55)/SUM(IF(X_9<REF(X_9,1),X_9*VOL,0),55)+EMA(X_81,X_50)-X_10;
X_83:=MA(X_24,6)+X_26*X_27*X_28*X_29-X_25-X_27*X_28-X_26-X_28;
X_84:=X_57 AND CROSS(4*X_1+3*X_2+2*X_3+1*X_4-X_27*X_1-(X_28+X_29)*X_2-(X_26-X_28)*X_3-(X_28-X_29)*X_4,X_82) AND X_36 AND X_60;
X_85:=X_64 OR X_65 OR X_74 OR X_84;
RSVC:=(CLOSE-LLV(LOW,9))/(HHV(HIGH,9)-LLV(LOW,9))*100;
白马:=SMA(RSVC,3,1);
DC:=SMA(白马,3,1);
黑马:=3*白马-2*DC;
主力线:=WINNER(C)*100;
AA:=SMA((CLOSE-REF(CLOSE,3))*VOL,3,1)/10000;
BBR:=C=H AND C>=ZTPRICE(REF(C,1),IF(CODELIKE('60') OR CODELIKE('00'),0.1,IF(CODELIKE('30') OR CODELIKE('68'),0.2,10)));
HIGF:=(REF(AA<0.5,1) AND AA>5) OR (REF(AA<2.8,1) AND AA>10) OR (REF(AA<1,1) AND AA>2.5);
GVEN:=REF(CROSS(AA,0) AND BBR=0,1) AND BBR;
CYXF:=REF(GVEN,1) OR GVEN OR HIGF;
QBYG:=FILTER(X_85,X_83) AND 黑马>=80 AND 主力线>70 AND CYXF;
JZCY:=BARSSINCEN((YGCH AND (YDYH OR LMSH OR HXLH) AND CBDX<65),9)=0;
XG:QBYG OR JZCY;