X_1:=(CLOSE*2+HIGH+LOW+OPEN)/5;
X_2:=(EMA(X_1,4)+MA(X_1,8)+MA(X_1,16))/3;
X_3:=(EMA(X_1,9)+MA(X_1,18)+MA(X_1,36))/3;
X_4:=(EMA(X_1,13)+MA(X_1,26)+MA(X_1,52))/3;
X_5:=(EMA(X_1,24)+MA(X_1,48)+MA(X_1,96))/3;
X_6:=MAX(MAX(X_2,X_3),X_4);
X_7:=LONGCROSS(X_2,X_4,30) AND (X_5-X_4)/X_4<0.05 AND X_6<X_5;
COUNT(X_7,20)=1;