X_1:=EMA(CLOSE,9)-EMA(CLOSE,26);
X_2:=EMA(X_1,12);
X_3:=X_1-X_2;
X_4:=CLOSE/REF(CLOSE,1)>1.09;
X_5:=X_1>REF(X_1,1) AND REF(X_1,1)X_6:=(CLOSE-LLV(LOW,9))/(HHV(HIGH,9)-LLV(LOW,9))*100;
X_7:=SMA(X_6,3,1);
X_8:=SMA(X_7,3,1);
X_9:=3*X_7-2*X_8;
X_10:=EMA(CLOSE,20)-EMA(CLOSE,210);
X_11:=EMA(X_10,40);
X_12:=crOSS(X_9,X_8) AND X_3>(-0.05) AND X_1>X_2 AND X_10>X_11;
X_13:=REF(X_3,1)<=0 AND X_3>(-0.03) OR (X_1<0.1 OR X_5) AND SUM(X_4,100)>1 AND CLOSE/REF(CLOSE,1)>1.02 AND X_10>X_11;
XG:X_12 OR X_13,COLORRED,LINETHICK2;