SH:=CODELIKE('00') OR CODELIKE('60');SZ:=CODELIKE('30') OR CODELIKE('68');SS:=FINANCE(3)=2;X1:=IF(SH,0.1,IF(SZ,0.2,IF(SS,0.3,100)));ZT:=C=H AND C>=ZTPRICE(REF(C,1),X1);STICKLINE(ZT,C,O,3,0),COLORRED;STICKLINE(ZT,H,L,0,0),COLORRED;DW:=DATE=1241112 AND HHV(H,5)=HHV(H,10) AND COUNT(ZT,20)<5;N1:HHVBARS(H,5),NODRAW;N2:=BARSLAST(DW);STICKLINE(DW,HHV(H,5),HHV(H,5),5,0),COLORGREEN;DRAWSL(DW,HHV(H,5),0,N1,1),COLORGREEN;DRAWSL(DW,HHV(H,5),0,CURRBARSCOUNT,0),COLORGREEN;T1:=EVERY(C<REF(HHV(H,5),N2),N2);T2:=N2>4 AND REF(T1,1) AND H>REF(HHV(H,5),N2);T3:=T2 AND COUNT(T2,N2)=1;DRAWICON(T3,REF(HHV(H,5),N2),25);ZFA:=(REF(HHV(H,5),N2)/REF(C,1)-1)*100;ZFB:=IF(O>REF(HHV(H,5),N2),100*(O/REF(C,1)-1),ZFA);DRAWNUMBER(T3,L,ZFB),COLORRED;
{選股指標如下}
SH:=CODELIKE('00') OR CODELIKE('60');SZ:=CODELIKE('30') OR CODELIKE('68');SS:=FINANCE(3)=2;X1:=IF(SH,0.1,IF(SZ,0.2,IF(SS,0.3,100)));ZT:=C=H AND C>=ZTPRICE(REF(C,1),X1);DW:=DATE=1241112 AND HHV(H,5)=HHV(H,10) AND COUNT(ZT,20)<5;N1:=HHVBARS(H,5);N2:=BARSLAST(DW);T1:=EVERY(C<REF(HHV(H,5),N2),N2);T2:=N2>4 AND REF(T1,1) AND H>REF(HHV(H,5),N2);XG:T2 AND COUNT(T2,N2)=1 AND O/REF(C,1)<1.05 AND REF(HHV(H,5),N2)/REF(C,1)<1.08;