X_1:=IF((CLOSE-REF(CLOSE,1))*100/REF(CLOSE,1)>=10-0.01*100/REF(OPEN,1),1,0);
X_2:=REF(CLOSE,1);
X_3:=SMA(MAX(CLOSE-X_2,0),2,1)/SMA(ABS(CLOSE-X_2),2,1)*100;
X_4:=45;
X_5:=20;
X_6:=X_3<X_4 AND REF(X_3,1)>X_4;
X_7:=X_3<X_5 AND REF(X_3,1)>X_5;
X_8:=REF(COUNT(X_1,5),1)>=1;
X_9:=SMA(LOW,4,3);
XG:X_9 AND (REF(X_6,1) OR REF(X_7,1)) AND X_8,COLORRED;