源码:
{N(2,100,9)、M1(2,100,3)、M2(2,100,3)}
A1:=(CLOSE-LLV(LOW,15))/(HHV(HIGH,15)-LLV(LOW,15))*100;
A2:=SMA(A1,3.1,1);
A3:=SMA(A2,3.1,1);
底部:=5;
阻力:=3*A2-2*A3;
狙击:=3*A3-2*A2;
RSV:=(CLOSE-LLV(LOW,N))/(HHV(HIGH,N)-LLV(LOW,N))*100;
K:=SMA(RSV,M1,1);
D:=SMA(K,M2,1);
E:=(K+D)/2;
B1:=IF(NAMELIKE('S'),0,1);
B2:=IF(NAMELIKE('*'),0,1);
去ST股:=B1 AND B2;
去除停牌:=DYNAINFO(4)>0;
中小盘股:=TOTALCAPITAL/1000000<5;
主动买入=LARGEINTRDVOL*10000/FINANCE(7)*10000;
主动卖出:=LARGEOUTTRDVOL*10000/FINANCE(7)*10000;
净流入:=主动买入-主动卖出;
净流比:=主动买入/主动卖出;
VARA:=AMOUNT/((HIGH-LOW)*2-ABS(CLOSE-OPEN));
流入:=IF(CLOSE>OPEN,VARA*(HIGH-LOW),IF(CLOSE<OPEN,VARA*((HIGH-OPEN)+(CLOSE-LOW)),AMOUNT/2))/10000000;
流出:=IF(CLOSE>OPEN,0-VARA*((HIGH-CLOSE)+(OPEN-LOW)),IF(CLOSE<OPEN,0-VARA*(HIGH-LOW),0-AMOUNT/2))/10000000; 净流:=流入+流出;
狙击点:CROSS(狙击,底部) AND E<25 AND 去ST股 AND 去除停牌 AND 中小盘股 AND 净流比>1.05 AND 净流>0.8 AND CLOSE/REF(CLOSE,1)<1.04;
感觉此选股公式应该不错,但每次选股时总会漏掉一些(今天选了几次,有时候只选出明牌珠宝和宏昌电子,有时候棕榈园林也选出来了。会不会还有漏掉的),不知是什么原因,选股结果总是不稳定(是否和行情主站有关呢