VAR1:=LLV(LOW,13);
VAR2:=HHV(HIGH,13);
VAR3:=SMA((CLOSE-VAR1)/(VAR2-VAR1)*100,5,1);
VAR4:=SMA((VAR2-CLOSE)/(VAR2-VAR1)*100,5,1);
VAR5:=SMA(MAX(CLOSE-REF(CLOSE,1),0),5,1)/SMA(Abs(CLOSE-REF(CLOSE,1)),5,1)*100;
VAR6:=MA(C,3)>=REF(MA(C,3),1)AND MA(C,7)>=REF(MA(C,7),1) AND MA(C,60)>REF(MA(C,60),3) AND C/REF(C,1)>1.095 AND C=H;
VAR7:=EMA(EMA(((C+H+O+L)/4),3),20)*(1+80/1000);
VAR8:=COUNT(REF(VAR6,1),17)>0 AND crOSS(C,VAR7);
VAR10:=CROSS(EMA(VAR5,3),VAR4) AND EMA(VAR5,3)>=REF(EMA(VAR5,3),1) AND VAR4<=REF(VAR4,3)AND EMA(VAR5,3)>=49.5;
XG:COUNT(REF(VAR8,1),5)>0 AND CROSS(C,MA(C,20)) AND C>O,COLORRED;