1、 TMP:=OPEN-CLOSE;HO:=HIGHREF(HIGH,1)&HIGH=REFX(HIGH,1)&IFELSE(HIGH=REFX(HIGH,1),HIGHREFX(HIGH,2),HIGHREFX(HIGH,1);FXH:=CROSS(HO,0.5);HHHH:=REF(HIGH,BARSLAST(FXH);LO:=LOWREF(LOW,1)&LOW=REFX(LOW,1)&IFELSE(LOW=REFX(LOW,1),LOWREFX(LOW,2),LOWREFX(LOW,1);FXL:=CROSS(LO,0.5);LLLLL:=REF(LOW,BARSLAST(FXL);STI
2、CKLINE(CLOSE,HHHH,HHHH,COLORRED,0);STICKLINE(CLOSE,LLLLL,LLLLL+0.01,COLORGREEN,0);A:=BACKSET(ISLASTBAR,BARSLAST(FXH)+1);B:=BACKSET(ISLASTBAR,BARSLAST(FXL)+1);DRAWNUMBER1(HHHHREF(HHHH,1)&NOT(A),HHHH,HHHH,0),VALIGN2,COLORRED;DRAWNUMBER1(LLLLLREF(LLLLL,1)&NOT(B),LLLLL,LLLLL,0),VALIGN0,COLORGREEN;A1:=REF(H,BARSLAST(FXH);B1:=REF(L,BARSLAST(FXL);DRAWNUMBER1(ISLASTBAR,A1,A1,0),VALIGN2,COLORWHITE;DRAWNUMBER1(ISLASTBAR,B1,B1,0),VALIGN0,COLORWHITE;DRAWNUMBER1(ISLASTBAR&HHHHREF(HHHH,1)&NOT(A),A1,A1,0),VALIGN2,COLORRED;DRAWNUMBER1(ISLASTBAR&LLLLLREF(LLLLL,1)&NOT(B),B1,B1,0),VALIGN0,COLORGREEN;