X_2:=(2*CLOSE+HIGH+LOW)/4-EMA(CLOSE,20);
X_3:=Abs(REF(CLOSE,1)*IF(INBLOCK(1),1.2,IF(INBLOCK(2),1.2,IF(INBLOCK(3),1.05,1.1))));
X_4:=X_3/REF(CLOSE,1)>1.02 AND X_3/REF(CLOSE,2)>1.02;
XG:IF(X_1 AND X_2>(-10) AND X_2<0.9 AND WINNER(CLOSE)*100>20 AND X_4,220000,0);