ZT:=(C>=ZTPRICE(REF(CLOSE,1),0.1)) OR (C/REF(C,1)>1.095 && C=H);
ELZ:=EVERY(ZT,2);
ZTS:=BARSLAST(ZT=1);
TK:=L-REF(H,1)>=0.01;
TS1:=BARSLAST(CROSS(COUNT(TK,30),0.5));
XG1:=EVERY(L-REF(H,TS1+1)>=0.01,TS1) AND L<REF(L,TS1) AND C>O;
TS2:=BARSLAST(CROSS(COUNT(TK,30),1.5));
XG2:=EVERY(L-REF(H,TS2+1)>=0.01,TS2) AND L<REF(L,TS2) AND C>O;
TS3:=BARSLAST(CROSS(COUNT(TK,30),2.5));
XG3:=EVERY(L-REF(H,TS3+1)>=0.01,TS3) AND L<REF(L,TS3) AND C>O;
TS4:=BARSLAST(CROSS(COUNT(TK,30),3.5));
XG4:=EVERY(L-REF(H,TS4+1)>=0.01,TS4) AND L<REF(L,TS4) AND C>O;
TS5:=BARSLAST(CROSS(COUNT(TK,30),4.5));
XG5:=EVERY(L-REF(H,TS5+1)>=0.01,TS5) AND L<REF(L,TS5)AND C>O;
TS6:=BARSLAST(CROSS(COUNT(TK,30),5.5));
XG6:=EVERY(L-REF(H,TS6+1)>=0.01,TS6) AND L<REF(L,TS6)AND C>O;
TS7:=BARSLAST(CROSS(COUNT(TK,30),6.5));
XG7:=EVERY(L-REF(H,TS7+1)>=0.01,TS7) AND L<REF(L,TS7)AND C>O;
TS8:=BARSLAST(CROSS(COUNT(TK,30),7.5));
XG8:=EVERY(L-REF(H,TS8+1)>=0.01,TS8) AND L<REF(L,TS7)AND C>O AND REF(ZTS,1)>=2;
XG9:(XG1 OR XG2 OR XG3 OR XG4 OR XG5 OR XG6 OR XG7 OR XG8 ) AND REF(ZTS,1)<=20;
九毛八公式解读
ZT赋值:(收盘价>=计算涨停价) OR (收盘价/1日前的收盘价>1.095 并且 收盘价=最高价) ELZ赋值:最近2日一直存在ZT ZTS赋值:上次ZT=1距今天数 TK赋值:最低价-1日前的最高价>=0.01 TS1赋值:上次统计30日中满足TK的天数上穿0.5距今天数 XG1赋值:最近TS1日一直存在最低价-TS1+1日前的最高价>=0.01 AND 最低价=0.01 AND 最低价 =0.01 AND 最低价 =0.01 AND 最低价 =0.01 AND 最低价 =0.01 AND 最低价 =0.01 AND 最低价 =0.01 AND 最低价 =2 输出XG9:(XG1 OR XG2 OR XG3 OR XG4 OR XG5 OR XG6 OR XG7 OR XG8 ) AND 1日前的ZTS<=20