VAR1:=EMA(CLOSE,12);
VAR2:=EMA(CLOSE,26);
VAR3:=VAR1-VAR2;
VAR4:=EMA(VOL,5);
VAR5:=VAR3<0;
VAR6:=VAR3>=0;
VAR7:=BARSLASTCOUNT(VAR6);
VAR8:=RANGE(VAR7,0,10) AND UPNDAY(VAR4,3) AND UPNDAY(VAR3,3) AND COUNT(VAR5,200)<150 AND CLOSE<LLV(LOW,50)*1.5 AND COUNT(VOL>VAR4*2,3);
STICKLINE(FILTER(VAR8,20),0,1,2,0),COLORRED;
STICKLINE(FILTER(VAR8,20),0,0.618,1,0),COLORYELLOW;