Z0:=(CLOSE-REF(CLOSE,3))/REF(CLOSE,3);
Z1:=(CLOSE-REF(CLOSE,5))/REF(CLOSE,5);
Z2:=(CLOSE-REF(CLOSE,20))/REF(CLOSE,20);
Z3:=(CLOSE-REF(CLOSE,60))/REF(CLOSE,60);
Z4:=(CLOSE-REF(CLOSE,120))/REF(CLOSE,120);
Z5:=(CLOSE-REF(CLOSE,250))/REF(CLOSE,250);
Z6:=(CLOSE-REF(CLOSE,10))/REF(CLOSE,10);
DP0:=(INDEXC-REF(INDEXC,3))/REF(INDEXC,3);
DP1:=(INDEXC-REF(INDEXC,5))/REF(INDEXC,5);
DP2:=(INDEXC-REF(INDEXC,20))/REF(INDEXC,20);
DP3:=(INDEXC-REF(INDEXC,60))/REF(INDEXC,60);
DP4:=(INDEXC-REF(INDEXC,120))/REF(INDEXC,120);
DP5:=(INDEXC-REF(INDEXC,250))/REF(INDEXC,250);
DP6:=(INDEXC-REF(INDEXC,10))/REF(INDEXC,10);
RS3:=Z0-DP0;
RS5:=Z1-DP1;
RS10:=Z6-DP6;
RS20:=Z2-DP2;
RS60:=Z3-DP3;
RS120:=Z4-DP4;
RS250:=Z5-DP5;
逆风:=(6*RS3+5*RS5+4*RS20+3*RS60+2*RS120+RS250)/21*25;
TX:=3.5;
上攻:=crOSS(逆风,TX);
XG:上攻 AND COUNT(上攻,20)=1;
DIFF:=EMA(CLOSE,12)-EMA(CLOSE,26);
DEA:=EMA(DIFF,9);
JJ:=(C*3+H+L+O)/6;
SK:=EMA(JJ,13)-EMA(JJ,21);
SD:=EMA(SK,3);
SP:=EMA(SK,10);
A1:=EMA(C,7)-EMA(C,21);
B1:=EMA((0.668*REF(A1,1)+0.333*A1),1);
ABC1:=V/SUM(V,13);
ABC2:=DMA(C,ABC1);
ABC3:=(C-ABC2)/ABC2*40;
L2:=MA(AMOUNT/(100*V),13);
HG:=(C-L2)/L2*100;
做多:=IF(A1>=B1,A1,B1);
LT1:=FINANCE(40)/100000000>100;
LT2:=FINANCE(40)/100000000<=350;
做空:=IF(B1-A1,B1,A1);
QXS:=NOT(CODELIKE('4'));
QKC:=NOT(CODELIKE('688'));
QST:=IF(NAMELIKE('S'),0,1);
QXX:=IF(NAMELIKE('*'),0,1);
QBJ:=NOT(CODELIKE('8'));
ABCD:=QXS AND QST AND QKC AND QXX AND QBJ;
强势:=STICKLINE(HG>5 AND DIFF>DEA AND C>=EMA(C,5) AND A1-B1>0,0,-做空,2,0 );
强:=BARSLASTCOUNT(强势)=1;
XG:强 AND ABCD AND LT1 AND LT2;

