{ZH庄股横盘启动-大智慧飞狐通用版}
E3:=SLOPE((C+O),3)/MA((C+O),3)*100;
E5:=SLOPE((C+O),5)/MA((C+O),5)*100;
E20:=SLOPE((C+O),20)/MA((C+O),20)*100;
CM80:=EMA(COST(80),8);
A0:=WINNER(C*1.1)-WINNER(C*0.9);
A2:=((CLOSE-LOW)/(HIGH-LOW)+(CLOSE-HIGH)/(HIGH-LOW))*VOL;
A3:=SUM(A2,10)/10000;
DP:=MA("SH000001$CLOSE",13)/REF(MA("SH000001$CLOSE" >
{ZH庄股横盘启动-大智慧飞狐通用版}
E3:=SLOPE((C+O),3)/MA((C+O),3)*100;
E5:=SLOPE((C+O),5)/MA((C+O),5)*100;
E20:=SLOPE((C+O),20)/MA((C+O),20)*100;
CM80:=EMA(COST(80),8);
A0:=WINNER(C*1.1)-WINNER(C*0.9);
A2:=((CLOSE-LOW)/(HIGH-LOW)+(CLOSE-HIGH)/(HIGH-LOW))*VOL;
A3:=SUM(A2,10)/10000;
DP:=MA("SH000001$CLOSE",13)/REF(MA("SH000001$CLOSE",13),1)>1;
B0:=HHV(COUNT(A0>0.5,20)=20,2) AND COUNT(DP,10)>=10 AND HHV(A3>0,3) AND C>CM80;
B1:=(CROSS(E3,E20) OR CROSS(E5,E20)) AND E20>=0.3 AND COUNT(E20>0,10)>=10 AND C/REF(C,1)<=1.08;
B3:=CAPITAL/100/10000<=10 AND STRFIND(STKNAME,'S',1)=0;
CROSS(B0 AND B1 AND B3,0.5);
{ZH庄股横盘启动-通达信版}
E3:=SLOPE((C+O),3)/MA((C+O),3)*100;
E5:=SLOPE((C+O),5)/MA((C+O),5)*100;
E20:=SLOPE((C+O),20)/MA((C+O),20)*100;
CM80:=EMA(COST(80),8);
A0:=WINNER(C*1.1)-WINNER(C*0.9);
A2:=((CLOSE-LOW)/(HIGH-LOW)+(CLOSE-HIGH)/(HIGH-LOW))*VOL;
A3:=SUM(A2,10)/10000;
DP:=MA("SH000001$CLOSE",13)/REF(MA("SH000001$CLOSE",13),1)>1;
B0:=HHV(COUNT(A0>0.5,20)=20,2) AND COUNT(DP,10)>=10 AND HHV(A3>0,3) AND C>CM80;
B1:=(CROSS(E3,E20) OR CROSS(E5,E20)) AND E20>=0.3 AND COUNT(E20>0,10)>=10 AND C/REF(C,1)<=1.08;
B3:=CAPITAL/100/10000<=10 AND (NAMELIKE('S') OR NAMELIKE('*S'))=0;
CROSS(B0 AND B1 AND B3,0.5);