AAX:=(c-ma(c,5))/ma(c,5)*100;
VAR0:=MIN(COUNT(c,0),5);
AAX1:=EMA(AAX,VAR0) *VAR0;
AAX2:=MA(aax1,3);
AAX3:=MA(aax1,5);
JC:=cross(aax1,aax2);
df1:=(llv(c,3)-hhv(c,13))/hhv(c,13)*100;
df2:=llv(aax1,3)-ref(aax1,13);
XG1:=JC and df1<-13 and df2<-25 and aax3<-8 and (llv(aax2,3)>llv(aax2,39) or llv(aax3,3)>llv(aax3,39));
m1:=JC and count(aax1<-22,3)>=1;
AA12:=aax1-aax2>0.6;
XG2:=(llv(aax2,3)>llv(aax2,44) or llv(aax3,3)>llv(aax3,44)) and m1 and AA12;
XG:XG1 or XG2;