短顶:EMA(H,25),COLORGREEN;
短底:EMA(L,25),COLORGREEN;
A1:=PLOYLINE(C 短顶,短顶);
NOTEXT_A2:IF(C 短顶,A1,DRAWNULL),COLORRED;
B1:=PLOYLINE(C 短底,短底);
NOTEXT_B2:IF(C 短底,B1,DRAWNULL),COLORRED;
STICKLINE(C 短顶,短顶,短底,0.01,1),COLORRED;
STICKLINE(C 短底,短顶,短底,0.01,1),COLORGREEN;
长顶:EMA(H,90),COLORBLUE;
长底:EMA(L,90),COLORBLUE;
C1:=PLOYLINE(C 长顶,长顶);
NOTEXT_C2:IF(C 长顶,C1,DRAWNULL),COLORMAGENTA;
D1:=PLOYLINE(C 长底,长底);
NOTEXT_D2:IF(C 长底,D1,DRAWNULL),COLORMAGENTA;
STICKLINE(C 长顶,长顶,长底,0.01,1),COLORMAGENTA;
STICKLINE(C 长底,长顶,长底,0.01,1),COLORBLUE;
短空:=REF(C,1) REF(短底,1) AND C
短多:=REF(C,1) REF(短顶,1) AND C
短空1:=短空 AND COUNT(短空,BARSLAST(短多))=1;
短多1:=短多 AND COUNT(短多,BARSLAST(短空))=1;
长空:=REF(C,1) REF(长底,1) AND C
长多:=REF(C,1) REF(长顶,1) AND C
长空1:=长空 AND COUNT(长空,BARSLAST(长多))=1;
长多1:=长多 AND COUNT(长多,BARSLAST(长空))=1;
DRAWKLINE(H,O,L,C);
ZT_1:=(CLOSE-REF(CLOSE,1))/REF(CLOSE,1);
ZT_2:=ZT_1 =0.099 AND CLOSE=HIGH AND LOW!=HIGH;
STICKLINE(ZT_2,OPEN,CLOSE,2.4,0),COLORYELLOW;