zf:=(CLOSE-REF(CLOSE,1))/REF(CLOSE,1)*100;
jingel:=amount/10000;
zhenf:=(h-l)/l*100;
hsl:=v/capital*100;
syx:=(h/c-1)*100;
jqdl:=hhv(v,50);
TRr := MAX(MAX((HIGH-LOW),ABS(REF(CLOSE,1)-HIGH)),ABS(REF(CLOSE,1)-LOW));
trrr:=trr/c*100;
kxzhongxin:=amount/(vol*100);
tezh:=(h/l>1.08 && zf>4) or zf>9.5;
tedie:=zf<-9.5 and hsl>8 and c>o*0.97 and syx>4;
yydp:=(tezh or tedie) and jingel>3000;
lba:=yydp && v>=jqdl*0.8;
lbt:=barslast(lba);
szqianshou:=ref(kxzhongxin,lbt);
lbzhenf:=(HHV(C,lbt)-LLV(C,lbt))/LLV(C,lbt)*100;
lbzhenff:=sum(trrr,lbt)/lbt;
lbpda:=lbzhenf<15 && lbzhenff<8;
lbpdb:=sum(kxzhongxin,lbt)/lbt>=szqianshou*1.02;
lbpdc:=sum(v,lbt)<0.5*ref(v,lbt)*lbt && hhv(v,lbt)
lbpt:=lbpda && lbpdb && lbpdc && lbt>=8 and lbt<=40,colorred;
lbkk:=(c/ref(c,lbt)-1)*100;
lbkkzf:=lbkk>0 and lbkk<=12;
lbtp:=lbkkzf and v
lbk:filter(count(lbpt,5)>=1 and lbtp,5);