VAR1:=(C-REF(C,2))/REF(C,2)*100; VAR2:=EMA(VAR1,3); VAR3:=(C-LLV(L,5))/(HHV(H,5)-LLV(L,5))*100; VAR4:=EMA(VAR3,2); XG:CROSS(VAR2,VAR4) AND VAR2<80 AND VAR2>20;