VAR1:=(((CLOSE - REF(CLOSE,1)) / REF(CLOSE,1)) * 100);
VAR2:=(MA(vol,2) / MA(VOL,10));
VAR3:=(VOL / CAPITAL);
XG1:=((((0 - (12.24 * ((((0.0068 * VAR1) - (0.0072 * VAR2)) - (0.5676 * VAR3)) - 0.0105))) - (1 * ((((0.0015 * VAR1) - (0.0124 * VAR2)) + (1.7461 * VAR3)) - 0.0074))) + 0.32) < 0)*110 ;
XG:IF(XG1,1,0);