N:=6;
X_1:=(2*CLOSE+HIGH+LOW)/4;
X_2:=MA(X_1,N);
X_3:=X_2-MA(X_1,N/2)<0;
X_4:=X_2-MA(X_1,N/2)>0;
X_5:=BARSLAST(X_3);
X_6:=0-BARSLAST(X_4);
X_7:=IF(X_3<=0,X_5,X_6);
X_8:=(-1)*X_7;
X_9:=REF(X_8,1)<0 AND X_8>0;
X_10:=EMA(CLOSE,12)-EMA(CLOSE,26);
X_11:=EMA(X_10,9);
X_12:=(X_10-X_11)*2;
X_13:=OPEN/REF(CLOSE,1)*100-100;
X_14:=CLOSE>REF(CLOSE,1)*1.095 AND CLOSE=HIGH;
X_15:=VOL/REF(VOL,1);
X_16:=REF(VOL,1)/REF(VOL,2);
买:X_15>1.9 OR X_13<0 AND X_8>0 AND REF(COUNT(X_14,10)<3,1) AND X_14 AND X_11>0 AND REF(X_14,1)!=1,COLORYELLOW,LINETHICK2;