X_1:=EMA(CLOSE,12)-EMA(CLOSE,26);
X_2:=EMA(X_1,9);
X_3:=BARSLAST(REF(CROSS(X_1,X_2),1));
X_4:=REF(CLOSE,X_3+1)>CLOSE AND REF(X_1,X_3+1)<X_1 AND CROSS(X_1,X_2);
X_5:=(CLOSE-LLV(LOW,9))/(HHV(HIGH,9)-LLV(LOW,9))*100;
X_6:=SMA(X_5,3,1);
X_7:=SMA(X_6,3,1);
X_8:=3*X_6-2*X_7;
X_9:=BARSLAST(REF(CROSS(X_6,X_7),1));
X_10:=REF(CLOSE,X_9+1)>CLOSE AND REF(X_6,X_9+1)<X_6 AND CROSS(X_6,X_7);
X_11:=REF(CLOSE,1);
X_12:=SMA(MAX(CLOSE-X_11,0),6,1)/SMA(ABS(CLOSE-X_11),6,1)*100;
X_13:=SMA(MAX(CLOSE-X_11,0),12,1)/SMA(ABS(CLOSE-X_11),12,1)*100;
X_14:=BARSLAST(REF(CROSS(X_12,X_13),1));
X_15:=REF(CLOSE,X_14+1)>CLOSE AND REF(X_12,X_14+1)<X_12 AND CROSS(X_12,X_13);
X_16:=X_4>0 OR X_10>0 OR X_15>0;
X_17:=IF(NAMELIKE(1),1,0);
X_18:=IF(NAMELIKE(2),1,0);
X_19:=DYNAINFO(4)>0;
X_16 AND X_17=0 AND X_18=0 AND X_19;