股价平台60:REF(H,BARSLAST(H=HHV(H,60)));
ZX1:MAX(MA1,MAX(MA2,MAX(MA3,MAX(MA4,MAX(MA5,MAX(MA6,MAX(MA7,MAX(MA8,MAX(MA9,MAX(MA10,MAX(MA11,MAX(MA12,MAX(MA13,MAX(MA14,MAX(MA15,MAX(MA16,MAX(MA17,MAX(MA18,MAX(MA19,MAX(MA20,MAX(MA21,MAX(MA22,MAX(MA23,MA24))))))))))))))))))))))),COLORRED,LINETHICK2;
ZX2:MIN(MA1,MIN(MA2,MIN(MA3,MIN(MA4,MIN(MA5,MIN(MA6,MIN(MA7,MIN(MA8,MIN(MA9,MIN(MA10,MIN(MA11,MIN(MA12,MIN(MA13,MIN(MA14,MIN(MA15,MIN(MA16,MIN(MA17,MIN(MA18,MIN(MA19,MIN(MA20,MIN(MA21,MIN(MA22,MIN(MA23,MA24))))))))))))))))))))))),COLORYELLOW,LINETHICK2;
IF(REF(ZX1,1) ZX1,ZX1,DRAWNULL),COLORGREEN,LINETHICK2;
异动:=CROSS(C,ZX1) AND CROSS(C,MA25);
DRAWTEXT(异动,L,'异动'),COLORMAGENTA;
A11:=MA1=ZX2;
DRAWTEXT(A11,L,'合');
A33:=NOT(REF(MA1,1)=REF(ZX1,1)) AND MA1=ZX1;
DRAWTEXT(A33,L,'加');
A22:=CROSS(C,ZX1) AND ZT;
DRAWTEXT(A22,L,'牛');
DF2:=(C-REF(C,1))/REF(C,1)*100
DF3:=(C-O)/O*100
A1:=L ZX2 AND DF2;
A2:=CROSS(C,ZX2) AND DF2;
A3:=L ZX2 AND DF3;
狙击:=A1 OR A2 OR A3;
DRAWTEXT(狙击,L*0.99,'狙击'),COLORRED;
STICKLINE(狙击,C,O,4,1),COLORYELLOW;
STICKLINE(狙击,C,O,3,0),COLORYELLOW;