根据理想技术指标提取的10个选股公式
以下是根据个人从理想搜集的主、副图技术指标中,自己制作的部分选股公式,若单个选股公式选出的股票数量稍多,可加以组合使用。
1、B点选股:
var11:=zig(3,6)>ref(zig(3,6),1) and ref(zig(3,6),1)<=ref(zig(3,6),2) and ref(zig(3,6),2)<=ref(zig(3,6),3);
var13:=zig(3,22)>ref(zig(3,22),1) and ref(zig(3,22),1)<=ref(zig(3,22),2) and ref(zig(3,22),2)<=ref(zig(3,22),3);
var15:=zig(3,51)>ref(zig(3,51),1) and ref(zig(3,51),1)<=ref(zig(3,51),2) and ref(zig(3,51),2)<=ref(zig(3,51),3);
var17:=zig(3,72)>ref(zig(3,72),1) and ref(zig(3,72),1)<=ref(zig(3,72),2) and ref(zig(3,72),2)<=ref(zig(3,72),3);
停牌:=(DYNAINFO(4)=0);
买:=(var11+var13+var15+var17);
买>0 AND low-0.02 and not(停牌);
2、D点选股
var1:=ma(close,26);
var3:=llv(high,240);
var4:=100*(close-var3)/var3;
var5:=(close-llv(low,528))/(hhv(high,528)-llv(low,528))*100;
var6:=(close-llv(close,530))/(hhv(close,530)-llv(close,530))*100;
var7:=0;
var8:=sma(max(close-ref(close,1),0),34,1)/sma(abs(close-ref(close,1)),7,1)*100;
var9:=sma(max(close-ref(close,1),0),13,1)/sma(abs(close-ref(close,1)),13,1)*100;
vara:=barscount(close);
varb:=var8<20 and var9<23 and vara>35;
varc:=varb and count(varb,1)=1;
vard:=ema(close,21)-ema(close,8);
vare:=ema(vard,5);
varf:=troughbars(3,6,1)<4 and cross(vard,vare);
var10:=if(troughbars(3,16,1)=0 and high>low+0.04,4,0);
var11:=zig(3,6)>ref(zig(3,6),1) and ref(zig(3,6),1)<=ref(zig(3,6),2) and ref(zig(3,6),2)<=ref(zig(3,6),3);
var12:=zig(3,6)<ref(zig(3,6),1) and ref(zig(3,6),1)>=ref(zig(3,6),2) and ref(zig(3,6),2)>=ref(zig(3,6),3);
var13:=zig(3,22)>ref(zig(3,22),1) and ref(zig(3,22),1)<=ref(zig(3,22),2) and ref(zig(3,22),2)<=ref(zig(3,22),3);
var14:=zig(3,22)<ref(zig(3,22),1) and ref(zig(3,22),1)>=ref(zig(3,22),2) and ref(zig(3,22),2)>=ref(zig(3,22),3);
var15:=zig(3,51)>ref(zig(3,51),1) and ref(zig(3,51),1)<=ref(zig(3,51),2) and ref(zig(3,51),2)<=ref(zig(3,51),3);
var16:=zig(3,51)<ref(zig(3,51),1) and ref(zig(3,51),1)>=ref(zig(3,51),2) and ref(zig(3,51),2)>=ref(zig(3,51),3);
var17:=zig(3,72)>ref(zig(3,72),1) and ref(zig(3,72),1)<=ref(zig(3,72),2) and ref(zig(3,72),2)<=ref(zig(3,72),3);
var18:=zig(3,72)<ref(zig(3,72),1) and ref(zig(3,72),1)>=ref(zig(3,72),2) and ref(zig(3,72),2)>=ref(zig(3,72),3);
var19:=ema(close,2)-ema(close,150);
var1a:=ema(var19,100);
var1b:=2*(var19-var1a);
var1c:=pow(var1b,3)*0.1+pow(var1b,1);
var1d:=sqrt(sqrt(low*high*open*close));
var1e:=ema(var1d*0.97,3);
var1f:=(high+low+close)/3;
var20:=(var1f-ma(var1f,14))/(0.015*avedev(var1f,14));
var21:=cross(var1e,low);
var2:=ma(close,10);
var3a:=ma(close,30);
var4a:=ma(close,60);
var5a:=ema(cost(85),7);
var6a:=ema(cost(15),7);
var7a:=sum(close*vol*100,4)/sum(vol*100,4);
var8a:=intpart(var7a*100)/100;
var9a:=sum(close*vol*100,7)/sum(vol*100,7);
varaa:=intpart(var9a*100)/100;
varba:=sum(close*vol*100,28)/sum(vol*100,28);
varca:=intpart(varba*100)/100;
varda:=ema(close,5)-ema(close,10);
varea:=ema(varda,9);
varfa:=(-100)*(hhv(close,5)-close)/(hhv(close,5)-llv(low,5))+100;
var10a:=(-100)*(hhv(close,10)-close)/(hhv(close,10)-llv(low,10))+100;
var11a:=(-100)*(hhv(close,20)-close)/(hhv(close,20)-llv(low,20))+100;
var12a:=(-100)*(hhv(close,30)-close)/(hhv(close,30)-llv(low,30))+100;
var13a:=ref(varea,1);
var14a:=varea;
var15a:=var14a-var13a;
var16a:=ref(varda,1);
var17a:=varda;
var18a:=var17a-var16a;
var19a:=open;
var1k:=close;
停牌:=(DYNAINFO(4)=0);
if(var19a<=var1 and var19a<=var2 and var19a<=var3a and var1k>=var1 and
var1k>=varca and var15a>0 and var18a>0,0.5,0) AND NOT(停牌);
3、变盘
VAR1R:=(HIGH+LOW+CLOSE*2)/4;
VAR2R:=EMA(VAR1R,21);
VAR3R:=STD(VAR1R,21);
VAR4R:=((VAR1R-VAR2R)/VAR3R*100+200)/4;
VAR5R:=(EMA(VAR4R,5)-25)*1.56;
AK:=EMA(VAR5R,2)*1.22;
AD1:=EMA(AK,2);
停牌:=(DYNAINFO(4)=0);
CROSS(AD1,AK) AND NOT(停牌);
4、资金运转
VAR1:=SMA(AMOUNT,10,1)/10000;
VAR2:=REF(VAR1,1);
VAR3:=SMA(AMOUNT,10,1)/10000;
AA:=VAR1>VAR2;
BB:=VAR1< VAR2;
停牌:=(DYNAINFO(4)=0);
AA AND REF(BB,1) AND NOT(停牌);
5、
MA5:=MA(CLOSE,5);
MA21:=MA(CLOSE,21);
MA65:=MA(CLOSE,65);
EA5:=EMA(CLOSE,5);
DIFF:=EMA(CLOSE,12) - EMA(CLOSE,26);
DEA:=EMA(DIFF,9);
MACD:=2*(DIFF-DEA);
RSV:=(CLOSE-LLV(LOW, 55))/(HHV(HIGH, 55)-LLV(LOW, 55))*100;
K:=SMA(RSV, 13, 1);
D:=SMA(K, 5, 1);
J:=3*K-2*D;
KM3:=EMA(K, 3);
LC:=REF(CLOSE,2);
RSI:=SMA(MAX(CLOSE-LC,0),7,1)/SMA(ABS(CLOSE-LC),7,1)*100;
多排:=COUNT(MA21>MA65,10)=10;
GX:=MAX(MA5,MAX(MA21,MA65));
DX:=MIN(MA5,MIN(MA21,MA65));
整理:=ABS(GX/DX-1)*100<=15;
强势:=COUNT(MACD<0,10)=10;
目标:=IF(多排 AND 整理 AND 强势,5,0);
停牌:=(DYNAINFO(4)=0);
CROSS(0.1,目标) AND CROSS(MACD,0) AND NOT(停牌);
6、拐点
上线:=SMA(C,6.5,1);
下线:=SMA(C,13.5,1);
上线1:=SMA(C,3,1);
下线1:=SMA(C,8,1);
停牌:=(DYNAINFO(4)=0);
CROSS(C,下线) AND LOW AND NOT(停牌);
7、可买
多头线:=DMA(MA((2*CLOSE+OPEN+HIGH+LOW)/5,8),VOL/SUM(VOL,4));
空头线:=LLV(多头线,8);
停牌:=(DYNAINFO(4)=0);
CROSS(C,空头线) AND LOW*0.97 AND NOT(停牌);
8、拉抬
VUR0:=(((((2 * OPEN) + HIGH) + LOW) + (3 * CLOSE)) / 7);
VUR1:=(CAPITAL * VUR0);
VUR2:=(SMA(AMOUNT,10,1) / 1000);
VUR3:=MA((CLOSE * 3),5);
VUR4:=((((VUR2 * (CLOSE * 3)) / VUR3) * 1) / 10);
VUR5:=((((VUR2 * (OPEN * 3)) / VUR3) * 1) / 10);
VUR6:=((((VUR2 * (HIGH * 3)) / VUR3) * 1) / 10);
VUR7:=((((VUR2 * (LOW * 3)) / VUR3) * 1) / 10);
VUR8:=(((((2 * VUR5) + VUR6) + VUR7) + (3 * VUR4)) / 7);
VUR9:=EMA(DMA(EMA(VUR4,2),(SUM(VOL,1) * VUR8)),2);
VURA:=EMA((VUR1 - VUR9),1);
VU1:=IF((VURA > REF(VURA,1)),((VURA - REF(VURA,1)) * 15 / 1000),0);
VU3:=SUM(VU1,15);
VU4:=EMA(VU3,10);
VU5:=REF(VU4,1);
VUF:=((VU4 > VU5) AND VUD);
拉抬:=VUF AND VU5 AND VU4 * 1.1;
停牌:=(DYNAINFO(4)=0);
CROSS(拉抬,0) AND NOT(停牌);
9、极品
买线:=EMA(C,2);
卖线:=EMA(SLOPE(C,21)*20+C,42);
停牌:=(DYNAINFO(4)=0);
BU:CROSS(买线,卖线) AND LOW*0.999 AND NOT(停牌);
10、持仓
N:=22;JJ:=(HIGH+LOW+CLOSE)/3;QJ0:=VOL/IF(HIGH=LOW,4,HIGH-LOW);
QJ1:=IF(CAPITAL=0,QJ0*(JJ-MIN(CLOSE,OPEN)),QJ0*IF(HIGH=LOW,1,(MIN(OPEN,CLOSE)-LOW)));
QJ2:=IF(CAPITAL=0,QJ0*(MIN(OPEN,CLOSE)-LOW),QJ0*IF(HIGH=LOW,1,(JJ-MIN(CLOSE,OPEN))));
QJ3:=IF(CAPITAL=0,QJ0*(HIGH-MAX(OPEN,CLOSE)),QJ0*IF(HIGH=LOW,1,(HIGH-MAX(OPEN,CLOSE))));
QJ4:=IF(CAPITAL=0,QJ0*(MAX(CLOSE,OPEN)-JJ),QJ0*IF(HIGH=LOW,1,(MAX(CLOSE,OPEN)-JJ)));
SVZL:=SUM(((QJ1+QJ2)-(QJ3+QJ4))/SUM(VOL,60),0);
CZ:=SVZL-REF(SVZL,1);
停牌:=(DYNAINFO(4)=0);
CROSS(CZ,0) and not(停牌);
|