VAR1:=EMA(COST(99),10);
VAR2:=LLVBARS(LOW,60);
VAR3:=FINDHIGHBARS(HIGH,VAR2+1,60,1);
VAR4:=CURRBARSCOUNT=CONST(VAR3)+1;
VAR5:=(3*CLOSE+HIGH+LOW+OPEN)/6;
VAR6:=(8*VAR5+7*REF(VAR5,1)+6*REF(VAR5,2)+5*REF(VAR5,3)+4*REF(VAR5,4)+3*REF(VAR5,5)+2*REF(VAR5,6)+REF(VAR5,8))/36;
VAR7:=vol=HHV(VOL,10) AND VOL>2*REF(VOL,1) AND CLOSE>VAR6;
VAR8:=FILTER(VAR7,5);
VAR9:=IF(BARSLAST(VAR8)=1 AND CLOSE>REF(HIGH,1),1,IF(BARSLAST(VAR8)=2 AND CLOSE>REF(HIGH,2),1,IF(BARSLAST(VAR8)=3 AND CLOSE>REF(HIGH,3),1,0)));
VAR10:=VAR9=1;
VAR11:=IF(BARSLAST(VAR8)=1 AND CLOSE>REF(LOW,1),1,IF(BARSLAST(VAR8)=2 AND CLOSE>REF(LOW,2),1,IF(BARSLAST(VAR8)=3 AND CLOSE>REF(LOW,3),1,0)));
VAR12:=VAR11=1 AND VAR10;
立桩:VAR8,NODRAW;
狙击:FILTER(VAR12,3) AND CLOSE>VAR1 AND CLOSE>VAR4,NODRAW,COLORMAGENTA;
STICKLINE(CLOSE>VAR1,0,0.18,5,0),COLORRED;
STICKLINE(狙击,0,1,2,0),COLORMAGENTA;
STICKLINE(立桩,0,0.5,2,0),COLORLIRED;