MAX(MA(C,30),MAX(MA(C,60),MA(C,90)))/MIN(MA(C,30),MIN(MA(C,60),MA(C,90)))<1.05 AND
C/REF(C,1)>=1.05 AND C>O AND C>MAX(MA(C,30),MAX(MA(C,60),MA(C,90))) AND C/MAX(MA(C,30),MAX(MA(C,60),MA(C,90)))<=1.15 AND
MA(C,250)>=REF(MA(C,250),1) AND CLOSE>REF(CLOSE,1)*1.097;
SELECT COUNT(CLOSE>REF(CLOSE,1)*1.097,2)=2 AND CLOSE>0.10 ;
bb1:=CLOSE>REF(CLOSE,1)*1.099;