X_1:=IF(HHV(ABS(HHV(CLOSE,6)/LLV(CLOSE,6)-1),6)>10/100,3,6);
X_2:=SUM(AMOUNT,X_1)/SUM(VOL,X_1)/100;
X_3:=MA(CLOSE,5);
X_4:=X_3>REF(X_3,1) AND HIGH/CLOSE<1.02;
X_5:=REF(X_3X_6:=CLOSE>OPEN AND REF(CLOSE>OPEN,1) AND REF(CLOSE
X_7:=IF(CROSS(CLOSE,REF(X_2,1)),REF(X_2,1),0);
X_8:=HHV(X_7>0,BARSLAST(IF(CROSS(REF(X_2,1),CLOSE),REF(X_2,1),0)>0)+1);
X_9:=X_8>REF(X_8,1) AND CROSS(EMA(CLOSE,3),EMA(CLOSE,21));
XG:X_4 AND X_5 AND X_6 AND X_9;
STICKLINE(XG,0,3,2,0)COLORRED;
DRAWICON(XG,1.5,34);