VAR2:=(2*CLOSE+HIGH+LOW)/4;
VAR4:=LLV(LOW,5);
VAR5:=HHV(HIGH,4);
A:=EMA((VAR2-VAR4)/(VAR5-VAR4)*100,4);
B:=EMA(0.667*REF(A,1)+0.333*A,2);
QA:=(C-REF(C,1))/REF(C,1)*100>=9.91;
XG:=BArslAST(QA);
RRT:crOSS(A,B) AND A<30 AND XG>2 AND XG<=7;
VAR2:=(2*CLOSE+HIGH+LOW)/4;
VAR4:=LLV(LOW,5);
VAR5:=HHV(HIGH,4);
A:=EMA((VAR2-VAR4)/(VAR5-VAR4)*100,4);
B:=EMA(0.667*REF(A,1)+0.333*A,2);
QA:=(C-REF(C,1))/REF(C,1)*100>=9.91;
XG:=BArslAST(QA);
RRT:crOSS(A,B) AND A<30 AND XG>2 AND XG<=7;