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)
X_4:=REF((X_1-X_2)/EMA(CLOSE-X_2,5),2) REF((X_1-X_2)/EMA(CLOSE-X_2,5),1);
X_5:=(X_1-X_2)/EMA(CLOSE-X_2,5) REF((X_1-X_2)/EMA(CLOSE-X_2,5),1);
X_6:=COUNT(CROSS((X_1-X_2)/EMA(CLOSE-X_2,5),EMA((CLOSE-X_2)/(X_1-X_2)*100,5)),7)
X_7:=REF((X_1-X_2)/EMA(CLOSE-X_2,5),2) REF((X_1-X_2)/EMA(CLOSE-X_2,5),1);
X_8:=(X_1-X_2)/EMA(CLOSE-X_2,5) REF((X_1-X_2)/EMA(CLOSE-X_2,5),1);
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(HIGH REF(HIGH,1) AND REF(HIGH,1) REF(HIGH,2),REF(HIGH,2),0);
X_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_14,1,0));
X_16:=VALUEWHEN(X_15!=0,X_15);
X_17:=X_16=(-1);
X_18:=FILTER(X_10 AND X_17,5);
STICKLINE(X_18=1,0,1,4,0),COLORFFBBFF;
STICKLINE(X_18=1,0,1,3.5,0),COLORMAGENTA;
STICKLINE(X_18=1,0,1,3,0),COLORFF22FF;
STICKLINE(X_18=1,0,1,2.5,0),COLORFF44FF;
STICKLINE(X_18=1,0,1,2,0),COLORFF66FF;
STICKLINE(X_18=1,0,1,1.5,0),COLORFF88FF;
STICKLINE(X_18=1,0,1,1,0),COLORFF99FF;
STICKLINE(X_18=1,0,1,0.5,0),COLORFFAAFF;