AA05:=MA(C,5);
wrGLL:=(C-AA05)/AA05*100;
BB05:=ATAN((AA05/REF(AA05,1)-1)*100)*180/3.1416;
SD5:=SMA(EMA((AA05-REF(AA05,1))/REF(AA05,1),3)*100,3,1);
JSD5:=EMA((SD5-REF(SD5,1)),3);
AA10:=MA(C,10);
AA30:=MA(C,30);
SXRGLL:=(C-AA30)/AA30*100;
JC:=crOSS(0,WRGLL) AND SXRGLLREF(AA10,1);
MR:=COUNT(CROSS(WRGLL,0),3)>=1 AND SXRGLL>REF(SXRGLL,1) AND
AA05>REF(AA05,1) AND (C/REF(C,1)-1)*100>5 AND REF(C,1)
MT1:=FILTER(MR,10);
MT2:=FILTER(COUNT(CROSS(BB05,30),5)>=1 AND AA05>REF(AA05,1) AND SXRGLL>REF(SXRGLL,1)
AND AA10>REF(AA10,1) AND JSD5>REF(JSD5,1) AND SD5>REF(SD5,1) ,10);
CT1:=FILTER(JC,10);
XG:MT1 OR MT2;