腰部买入法 源码
2013-01-15 09:54:00来源:本站整理浏览:344
K1:=MA(C,60)<MA(C,120) AND MA(C,60)<MA(C,250) AND COUNT(MA(C,60)>REF(MA(C,60),1),3)=3;
K2:=VOL/REF(VOL,1)>2 AND C>MA(C,250) AND C/MA(C,250)<1.10;
K3:=REF(CLOSE,1)<REF(OPEN,1) AND REF(CLOSE,1)<REF(CLOSE,2) AND OPEN<REF(CLOSE,1)AND CLOSE>REF(CLOSE,1) AND CLOSE>(REF(CLOSE,1)+REF(OPEN,1))/2;
K4:=CLOSE>OPEN AND (OPEN-LOW)/(CLOSE-OPEN)>2 AND (HIGH-CLOSE)<(CLOSE-OPEN) AND LLV(LOW,5)=LOW;
K5:=OPEN>CLOSE AND (CLOSE-LOW)/(OPEN-CLOSE)>2 AND (HIGH-OPEN)<(OPEN-CLOSE) AND LLV(LOW,5)=LOW;
K6:=REF(MA(C,5),1)<MA(C,250) AND REF(C,1)<MA(C,250) AND O>REF(C,1) AND C>O;
SELECT(K3 OR K4 OR K5 OR K6 AND K1 AND K2);