M1:=5;
M2:=10;
M3:=30;
凹口时间:=15;
M5:MA(C,5);
M10:MA(C,20);
M60:MA(C,60);
金叉:=crOSS(M5>M10,0.5)&& 1 ;
金叉天数:=BArslAST(金叉);
死叉:= 1 &&CROSS(M10>M5,0.5);
顶:=CROSS(BacKSET(死叉,REF(BARSLAST(HHV(H,金叉天数+1)=H),1)+2),0.5)&& 1 ;
突破:=COUNT(C>M60,BARSLAST(死叉)+1)=BARSLAST(死叉)+1&& 1 &&CROSS(C>REF(H,BARSLAST(顶)),0.5);
突破2:=(EVERY(C>M60,BARSLAST(死叉)+1) OR (BARSLAST(CROSS(M60,M10))<BARSLAST(死叉)+1&&C>M60) )&& 1 &&CROSS(C>REF(H,BARSLAST(顶)),0.5)&&BARSLAST(死叉)>=凹口时间;
凹口突破:IF(MACHINEDATE>1210925,0, FILTER(突破2,5)),NODRAW,LINETHICK2,COLORRED;
DRAWLINE(顶,H,REF(顶,1),REF(H,1),1);
涨停:=C/REF(C,1)>1.095 AND H=C;
C3:=REF(C,1);
STICKLINE(涨停,C,O,2,0),COLORYELLOW;
跌停:=IF((C3-C)*100/C3>=(10-0.01*100/C3),1,0);
STICKLINE(跌停,OPEN,CLOSE,2,0),COLORGREEN;
STICKLINE(突破,O,REF(H,BARSLAST(顶)),2.5,0),COLORRED;
STICKLINE(突破2,C,REF(H,BARSLAST(顶)),2.5,0),COLORLIRED;