| | | |
[大智慧]大智慧 合力选股----指标公式(合几个指标之力选强势股 精品源码)
大智慧合力选股
钱龙长线:=LON;
m钱龙长线:=ma(LON,10);
a1:=钱龙长线>=0 and 钱龙长线>=m钱龙长线 ;
V1:=(c/ref(c,1)-indexc/ref(indexc,1))*200;
RAD:=sum(v1,0);
MRAD:=MA(RAD,30);
A2:= RAD>=MRAD and RAD>ref(RAD,1) ;
A:=(H+L)/2;
B:=(REF(H,1)+REF(L,1))/2;
MID:=A-B;
BRO:=VOL/(H-L);
EMV:=MA(MID/BRO,14)*EMA(V,250);
EMVA:=MA(EMV,6);
A3:=EMV>=0 and EMV>=EMVA and EMV>=ref(EMV,1);
qr:=CLOSE/indexc*1000;
mqr1:=ma(qr,5);
mqr2:=ma(qr,10);
a4:= qr>= mqr1 and qr>= mqr2 and mqr1>=ref(mqr1,1);
hh:=if(c/ref(c,1)>1.098 and l>ref(h,1),2*c-ref(c,1)-h,2*c-h-l);
v11:=BARSCOUNT(c)-1;
v22:=2*ref(c,v11)-ref(h,v11)-ref(l,v11);
dk:=sum(hh,0)+v22;
MDK5:=MA(DK,5);
MDK10:=MA(DK,10);
A5:= dk>= MDK5 and dk>= MDK10 and MDK5>= ref(MDK5,1);
jcs:=ZLSHORT;
jcm:=ma(zlshort ,12);
jcl:=ma(zlshort,26);
A6:= jcs>= jcm and jcs>= jcl and jcm>=ref(jcm,1);
mtm:=c-ref(c,1);
mms:=100*ema(ema(mtm,6),6)/ema(ema(abs(mtm),6),6);
mmm:=100*ema(ema(mtm,12),12)/ema(ema(abs(mtm),12),12);
mml:=100*ema(ema(mtm,26),26)/ema(ema(abs(mtm),26),26);
A7:= mms>= mmm and mms>= mml and mmm>= ref(mmm,1);
a01:=vol/indexv*1000;
lb:=sma(a01,5,1);
mlb:=ma(lb,10);
a8:=lb>ref(lb,1) and lb>=mlb;
M1:=(CLOSE-OPEN)/(HIGH-LOW)*VOL;
WVAD:=SUM(M1,21);
a9:=WVAD>ref(WVAD,1) and WVAD>=0;
主力控盘:=cyw;
cyw短期:=ma(cyw,5);
a10:=cyw>=0 and cyw短期>=ref(cyw短期,1);
PS:=ZHPS(C);
PSM:=MA(PS,6);
PSL:=MA(PS,12);
a11:=PS>=0 and PSM>=ref(PSM,1) and PSM>=PSL;
A12:=REF((HHV(HIGH,23)-LLV(LOW,23))/LLV(LOW,23)*100<49,1)
AND C>=REF(HHV(H,23),1) AND BARSCOUNT(C)>23;
QS:=A1 AND A2 AND A3 AND A4 AND A5 AND A6 AND A7 AND A8 AND A9 AND A10 AND
A11 AND A12;
综合选股:IF(CROSS(QS,0.5) AND REF(COUNT(QS=0,8)=8,1),28,0);
这是用大智慧特有的函数做的综合选股指标。是我个人用来选择强势股的。应用时一定要结合大盘的情况。当初做这个指标的目的是尽量不漏掉强势股,这个目的看来是实现了,如2010年8月4日的002324。9日的600641,600644等等,但是使用这个指标需要很强的甄别能力。否则也有可能买完就跌。
为解决买完就跌的问题,我对指标作了修改。修改后该指标准确率大大增强了。变成了精品指标。
|
| | | | |
|