N:=5;
F:=9;
M1:=3;
M2:=3;
X_1:=(2*CLOSE+HIGH+LOW)/4;
X_2:=expma(EXPMA(EXPMA(X_1,4),4),4);
X_3:=(X_2-REF(X_2,1))/REF(X_2,1)*100;
X_4:=MA(X_3,3);
X_5:=MA((vol-REF(VOL,1))/REF(VOL,1),5);
X_6:=(CLOSE-MA(CLOSE,24))/MA(CLOSE,24)*100;
X_7:=X_6*(1+X_5);
X_8:=X_7;
X_9:=MA(X_8,N);
X_10:=(HHV(HIGH,F)-CLOSE)/(HHV(HIGH,F)-LLV(LOW,F))*100;
X_11:=SMA(X_10,M1,1);
X_12:=SMA(X_11,M2,1);
XG:crOSS(X_3,X_4) AND CROSS(X_7,X_9) AND X_3<0 AND X_9<0 AND CROSS(X_12,X_11);