N:= 30;
N1:=0.25;
BB:=EVERY(V>REF(V,1),2) AND H/L>1.06 AND V>=REF(HHV(V,N),1)*1.67 AND H/LLV(L,N)< 1.3;
ACB1:=MA(C,N);
ACB2:=HHV(H,N);
ACB3:=LLV(L,N);
VAR1:=(ACB2-ACB1)/ACB1;
VAR2:=(ACB1-ACB3)/ACB1;
VAR3:=REF(VAR1,1)< N1 AND REF(VAR2,1)< N1;
HGW:=H=HHV(H,N);
突破:=BB AND VAR3 AND HGW;
HGW1:=BARSLAST(突破);
ABC1:=expma(C,N),COLORRED;
AA:MA(DKX,10),DOTLINE;
IF((AA>=REF(AA,1)),AA,DRAWNULL),LINETHICK2,COLORMAGENTA;
IF((AA<=REF(AA,1)),AA,DRAWNULL),LINETHICK2,COLORGREEN;
上升:=IF(ABC1>REF(ABC1,1),ABC1,DRAWNULL)POINTDOT,COLORYELLOW LINETHICK3;
下降:=IF(ABC1< REF(ABC1,1),ABC1,DRAWNULL)POINTDOT,COLORGREEN LINETHICK3;
DRAWTEXT(突破,C,'---------------------------------')COLORYELLOW LINETHICK6;
DRAWTEXT(突破,L*0.9,'底')COLORYELLOW;
DRAWICON(突破,H*1.05,25);
STICKLINE(突破,O,C,1,0),COLORMAGENTA;
STICKLINE(crOSS(C,REF(H*1.05,HGW)) AND HGW< N,O,C,2,0),COLORYELLOW;
DRAWICON(CROSS(C,REF(H*1.05,HGW)) AND HGW< N,LOW,9);