[PEL] 复制代码
FA:=ref(ISUP,1) and ISDOWN and HHVBARS(h,20)<=1;
DRAWTEXT(FA,H+3*MINDIFF,'FA',COLORGREEN,0);
FALB:=VALUEWHEN(FA, HHVBARS(h,20));
FAH:=VALUEWHEN(FA, HHV(h,20));
FAC:=VALUEWHEN(FA,C);
LENFA:=SUMBARS(FA,1)-1;
FAL:=LLV(L,LENFA);
FB:=LENFA>3 AND count(ALL(C<FAC,3),LENFA)>=1 AND ALL(H<FAH,LENFA) AND ISDOWN AND count(C<REF(FAL,1),LENFA-3)=1 AND C<REF(FAL,1) AND FALB+LENFA+1<=9;
FC:=LENFA>3 AND count(ALL(C<FAC,3),LENFA)>=1 AND ALL(H<FAH,LENFA) AND ISDOWN AND count(C<REF(FAL,1),LENFA-9)=1 AND C<REF(FAL,1) AND FALB+LENFA+1>10;
LENFC:=SUMBARS(FC,1)-1;
FCL:=LLV(L,LENFC);
FD:=ALL(C<FAH,LENFC) AND ISDOWN AND count(ALL(C<VALUEWHEN(FC,C),3),LENFC)>=1 AND count(C<REF(FCL,1),LENFC-3)=1 AND C<REF(FCL,1) ;
DRAWTEXT(FB,H+3*MINDIFF,'FB',COLORYELLOW,0);
DRAWTEXT(FC,H+3*MINDIFF,'FC',COLORWHITE,0);
DRAWTEXT(FD,H+3*MINDIFF,'FD',COLORWHITE,0);