STICKLINE(CLOSE>X_1,0,0.18,5,0),COLORRED;
X_2:=LLVBARS(LOW,60);
X_3:=FINDHIGHBARS(HIGH,X_2+1,60,1);
X_4:=DRAWLINE(CURRBARSCOUNT=CONST(X_3)+1,HIGH,ISLASTBAR,REF(HIGH,X_3),0);
X_5:=(3*CLOSE+HIGH+LOW+OPEN)/6;
X_6:=(8*X_5+7*REF(X_5,1)+6*REF(X_5,2)+5*REF(X_5,3)+4*REF(X_5,4)+3*REF(X_5,5)+2*REF(X_5,6)+REF(X_5,8))/36;
X_7:=VOL=HHV(VOL,10) AND VOL>2*REF(VOL,1) AND CLOSE>X_6;
打桩:FILTER(X_7,5),NODRAW;
X_8:=IF(BARSLAST(打桩)=1 AND CLOSE>REF(HIGH,1),1,IF(BARSLAST(打桩)=2 AND CLOSE>REF(HIGH,2),1,IF(BARSLAST(打桩)=3 AND CLOSE>REF(HIGH,3),1,0)));
X_9:=X_8=1;
X_10:=IF(BARSLAST(打桩)=1 AND CLOSE>REF(LOW,1),1,IF(BARSLAST(打桩)=2 AND CLOSE>REF(LOW,2),1,IF(BARSLAST(打桩)=3 AND CLOSE>REF(LOW,3),1,0)));
X_11:=X_10=1 AND X_9;
打桩确认:FILTER(X_11,3) AND CLOSE>X_1 AND CLOSE>X_4,NODRAW,COLORMAGENTA;
STICKLINE(打桩确认,0,1,2,0),COLORMAGENTA;
STICKLINE(打桩,0,0.5,2,0),COLORLIRED;