X_1:=vol>=REF(VOL,1)*2 AND CLOSE/REF(CLOSE,1)>=1.05;
X_2:=REF(VOL,2)>=REF(VOL,3)*2 AND REF(CLOSE,2)/REF(CLOSE,3)>=1.05;
X_3:=REF(VOL,4)>=REF(VOL,5)*2 AND REF(CLOSE,4)/REF(CLOSE,5)>=1.05;
X_4:=REF(VOL,6)>=REF(VOL,7)*2 AND REF(CLOSE,6)/REF(CLOSE,7)>=1.05;
X_5:=REF(VOL,8)>=REF(VOL,9)*2 AND REF(CLOSE,8)/REF(CLOSE,9)>=1.05;
X_6:=IF(X_2 AND REF(CLOSE,2)>OPEN AND REF(HIGH,2)<CLOSE,1,0);
X_7:=IF(X_3 AND REF(CLOSE,4)>OPEN AND REF(HIGH,4)<CLOSE,1,0);
X_8:=IF(X_4 AND REF(CLOSE,6)>OPEN AND REF(HIGH,6)<CLOSE,1,0);
X_9:=IF(X_5 AND REF(CLOSE,8)>OPEN AND REF(HIGH,8)<CLOSE,1,0);
X_10:=X_6 OR X_7 OR X_8 OR X_9;
XG:X_10 AND X_1;