原理:
1、KDJ(5,2,2): J上漲; 2、MACD(2,13,5):MACD大于0并且上漲;3、MACD(2,13,5):DIF上漲; 4、量比大于 1.6; 5、MA(3,5,7,13):MA3上漲; 6、換手率大于3.01%;7、OBV上漲; 8、去除ST股.
選股公式:
{KDJ(5,2,2)}
RSV:=(CLOSE-LLV(LOW,5))/(HHV(HIGH,5)-LLV(LOW,5))*100;
K:=SMA(RSV,2,1);
D:=SMA(K,2,1);
J:=3*K-2*D;
{MACD(2,13,5)}
DIF:=EMA(CLOSE,2)-EMA(CLOSE,13);
DEA:=EMA(DIF,5);
MACD:=(DIF-DEA)*2;
{MA均線}
MA3:=MA(CLOSE,3);
{通達(dá)信動(dòng)態(tài)量比}
量比:=DYNAINFO(17);
{換手率}
換手率:=DYNAINFO(37);
{OBV}
VA:=IF(CLOSE>REF(CLOSE,1),VOL,-VOL);
OBV:=SUM(IF(CLOSE=REF(CLOSE,1),0,VA),0);
{去除ST}
ZF:=(C-REF(C,1))/REF(C,1)*100;
NOST:=EXIST(ZF>5.5,120) OR EXIST(ZF<-5.5,120) ;
黑馬騰飛:J>REF(J,1) AND MACD>0 AND MACD>REF(MACD,1)
AND DIF>REF(DIF,1) AND 量比>1.6 AND MA3>REF(MA3,1)
AND 換手率>3.01 AND OBV>REF(OBV,1) AND NOST;