X_1:=5;
X_2:=10;
X_3:=20;
X_4:=60;
X_5:=VOL;
X_6:=MA(VOL,X_1);
X_7:=MA(VOL,X_2);
X_8:=MA(VOL,X_3);
X_9:=MA(VOL,18);
X_10:=MA(VOL,50);
X_11:=MIN(REF(VOL,1),REF(VOL,2));
X_12:=MIN(REF(VOL,3),REF(VOL,4));
X_13:=MIN(REF(VOL,5),REF(VOL,6));
X_14:=MIN(REF(VOL,7),REF(VOL,8));
X_15:=MIN(REF(VOL,9),REF(VOL,10));
X_16:=MIN(REF(VOL,11),REF(VOL,12));
X_17:=MIN(REF(VOL,13),REF(VOL,14));
X_18:=MIN(REF(VOL,15),REF(VOL,16));
X_19:=MIN(MIN(X_11,X_12),MIN(X_13,X_14));
X_20:=MIN(MIN(X_15,X_16),MIN(X_17,X_18));
X_21:=MIN(X_19,X_20);
X_22:=X_21;
X_23:=VOL/MA(VOL,8);
X_24:=X_23>=1;
XG:CROSS(X_9,X_10) AND X_24=1 AND VOL<=X_22*1.5 AND WINNER(CLOSE)<0.25;