VAR0:=HHV(CLOSE,3);
VAR1:=EMA(VAR0,30),COLORMAGENTA,LINETHICK2;
VAR2:=EMA(VAR0,120);
VAR3:=MA(CLOSE*VOL,20);
VAR4:=MA(CLOSE*VOL,60);
VAR5:=1000*(VAR3-REF(VAR3,1))/REF(VAR3,1)*2;
VAR6:=1000*(VAR4-REF(VAR4,1))/REF(VAR4,1)*2;
VAR7:=(VAR5-VAR6)*VOL*CLOSE/MA(REF(VOL*CLOSE,1),5);
VAR8:=LLV(LOW,200);
VAR9:=EMA((CLOSE-VAR8)/VAR8,30)*100+200;
VAR10:=FILTER(CLOSE>=REF(CLOSE,1)*1.05 AND VAR7>=VAR9/2 AND CLOSE>=OPEN AND (CROSS(CLOSE,VAR1) OR (CLOSE>VAR1 AND REF(LOW,1)<VAR1)),20);
VAR11:=REF(HIGH,10)=HHV(HIGH,2*10+1);
VAR12:=FILTER(VAR11,10);
VAR13:=REF(VAR12,10+1);
VARA:=REF(VAR13,10);
VARB:=REF(H,BARSLAST(VARA));
VARC:=VOL/REF(VOL,1)>=1.9;
VARD:=CROSS(C,VARB);
VARD AND VAR10,COLORMAGENTA,LINETHICK2;