VAR1:=CLOSE>MA(CLOSE,5) AND CLOSE>MA(CLOSE,10) AND OPEN<MA(CLOSE,5) AND CLOSE>MA(CLOSE,10) AND MA(CLOSE,5)>MA(CLOSE,10);
VAR2:=MA(CLOSE,5)>MA(CLOSE,10) OR CROSS(MA(CLOSE,5),MA(CLOSE,10));
VAR3:=CLOSE>OPEN AND OPEN*1.01<CLOSE AND CLOSE<OPEN*1.06 AND CLOSE>MA(CLOSE,17);
VAR4:=(HIGH-CLOSE)/(CLOSE-OPEN)<0.2;
CROSS(MA(CLOSE,5),MA(CLOSE,10));
VAR5:=EXISTR(CROSS(MA(C,5),MA(C,10)),7,1) OR CROSS(MA(CLOSE,5),MA(CLOSE,10));
VAR6:=VAR1 AND VAR3 AND VAR4 AND VAR5;
VAR7:=COUNT(VAR6,7)>=2 AND VAR6;
VAR8:=IF(SETCODE=0 OR SETCODE=1,100*VOL,VOL)/(FINANCE(7)/100);
VAR9:=MA(VAR8,5)<VAR8*1.2 AND REF(MA(VAR8,5),1)<VAR8 AND UPNDAY(MA(VAR8,5),4);
VAR10:=VOL/REF(VOL,1)>1 AND VOL/REF(VOL,1)<2 AND COUNT(CLOSE>OPEN,1) OR (LOW>REF(HIGH,1) AND COUNT(OPEN>CLOSE,1) AND VOL/REF(VOL,1)>2);
VAR11:=VAR9 AND VAR10 AND VAR6;
NULL:=EXISTR(VAR11,10,1);
X2:(NULL) AND VAR7;
{----------------- ------------------}