X_1:=13;
X_2:=9;
X_3:=3;
X_4:=(CLOSE-LLV(LOW,X_1))/(HHV(HIGH,X_1)-LLV(LOW,X_1))*100;
X_5:=SMA(X_4,X_3,1);
X_6:=SMA(X_5,X_3,1);
X_7:=SMA(X_6,X_3,1);
X_8:=(HHV(HIGH,X_2)-CLOSE)/(HHV(HIGH,X_2)-LLV(LOW,X_2))*100;
X_9:=SMA(X_8,X_3,1);
X_10:=SMA(X_9,X_3,1);
X_11:=SMA(X_10,X_3,1);
X_12:=85;
X_13:=80;
X_14:=30;
X_15:=9;
X_16:=X_7<50 AND X_6
X_17:=X_7>50 AND X_6>X_7 AND X_6 X_18:=X_11/X_6;
XG:IF(X_11>70 AND REF(X_18,2)