X_1:=(6*(vol/SUM(VOL,1))+3*(VOL/SUM(VOL,2))+2*(VOL/SUM(VOL,3)))/11;
X_2:=DMA(CLOSE,X_1);
X_3:=IF(CLOSE>(HIGH+LOW)/2,((7*HIGH+2*LOW)/9+23*CLOSE)/24,IF(CLOSE<(HIGH+LOW)/2,((2*HIGH+7*LOW)/9+23*CLOSE)/24,((HIGH+LOW)/2+23*CLOSE)/24));
X_4:=(X_3+X_2)/2;
X_5:=(3.6*X_4+1.4*(2*X_4+7*(MA(X_4,1)+MA(X_4,2))/2)/9+1.5*((MA(X_4,1)+MA(X_4,2))/2+17*((MA(X_4,1)+MA(X_4,2))/2+MA(X_4,2))/2)/18)/6.5;
X_6:=X_5*(7.7/9);
X_7:=MAX(WINNER(X_6)-WINNER(REF(X_6,1)),0)*100;
X_8:=(1.1*(7*SUM(X_7,2)+2*SUM(X_7,3))/9+1.2*(7*SUM(X_7,4)+2*SUM(X_7,6))/9+1.3*(7*SUM(X_7,6)+2*SUM(X_7,9))/9)/3.6;
X_9:=(1.1*(7*SUM(X_7,4)+2*SUM(X_7,6))/9+1.2*(7*SUM(X_7,8)+2*SUM(X_7,12))/9+1.3*(7*SUM(X_7,12)+2*SUM(X_7,18))/9)/3.6;
X_10:=(1.1*(7*SUM(X_7,6)+2*SUM(X_7,9))/9+1.2*(7*SUM(X_7,12)+2*SUM(X_7,18))/9+1.3*(7*SUM(X_7,18)+2*SUM(X_7,27))/9)/3.6;
X_11:=(1.1*X_8+1.2*X_9+1.3*X_10)/3.6;
XG:C/REF(C,1)>1.05 AND X_11>REF(X_11,1) AND X_11<20 ;