X_1:=HHV(HIGH,34);
X_2:=LLV(LOW,34);
X_3:=COUNT(crOSS((X_1-X_2)/EMA(CLOSE-X_2,5),EMA((CLOSE-X_2)/(X_1-X_2)*100,5)),7)>0;
X_4:=REF((X_1-X_2)/EMA(CLOSE-X_2,5),2)X_5:=(X_1-X_2)/EMA(CLOSE-X_2,5)X_6:=COUNT(CROSS((X_1-X_2)/EMA(CLOSE-X_2,5),EMA((CLOSE-X_2)/(X_1-X_2)*100,5)),7)>0;
X_7:=REF((X_1-X_2)/EMA(CLOSE-X_2,5),2)X_8:=(X_1-X_2)/EMA(CLOSE-X_2,5)X_9:=CROSS(EMA((CLOSE-LLV(LOW,10))/(X_1-LLV(LOW,10))*4,4),0.3);
X_10:=X_3 AND X_4 AND X_5 AND (COUNT(X_6 AND X_7 AND X_8,5)=1 OR X_9);
X_11:=IF(HIGHX_12:=VALUEWHEN(X_11>0,X_11);
X_13:=IF(LOW>REF(LOW,1) AND REF(LOW,1)>REF(LOW,2),REF(LOW,2),0);
X_14:=VALUEWHEN(X_13>0,X_13);
X_15:=IF(CLOSE>X_12,(-1),IF(CLOSE
X_17:=X_16=(-1);
X_18:=FILTER(X_10 AND X_17,5);
XG:X_18;