AAA:=3*SMA((C-LLV(L,27))/(HHV(H,27)-LLV(L,27))*100,5,1)-2*SMA(SMA((C-LLV(L,27))/(HHV(H,27)-LLV(L,27))*100,5,1),3,1);
QD:=IF(crOSS(AAA,5),1,0) AND C/REF(C,1)>1.0 ;
XG:FILTER(QD,10);
AAA:=3*SMA((C-LLV(L,27))/(HHV(H,27)-LLV(L,27))*100,5,1)-2*SMA(SMA((C-LLV(L,27))/(HHV(H,27)-LLV(L,27))*100,5,1),3,1);
QD:=IF(crOSS(AAA,5),1,0) AND C/REF(C,1)>1.0 ;
XG:FILTER(QD,10);