//黑马组合选股公式出炉,给大家(源码)送上来了.
//选股指标源码,记得顶哟.
//{g: 1 60 15
//z: 1 100 5}
g:=15;
z:=5;
rv:=(close-llv(low,27))/(hhv(high,27)-llv(low,27))*100;
rg:=(close-llv(low,5))/(hhv(high,5)-llv(low,5))*100;
rv1:=(close-llv(low,27))/(hhv(high,27)-llv(low,27))*1;
rg1:=(close-llv(low,5))/(hhv(high,5)-llv(low,5))*1;
var04:=sma(rv1,3,1);
var05:=sma(var04,3,1);
kk:=ema(sma(rg1,3,1),2),linethick2,color0000ff;
dd:=sma(kk,3,1),linethick1,colorff0000;
p:=(high+low+close)/3;
cci1:=(p-ma(p,14))*1000/(15*avedev(p,14)),colorred;
cci2:=(p-ma(p,36))*1000/(15*avedev(p,36)),colorgreen;
rsv:=(close-llv(low,9))/(hhv(high,9)-llv(low,9))*100;
k:=sma(rsv,3,1);
d:=sma(k,3,1);
抄底王:=cross(cci1,cci2) and ref(cci1,1)=llv(cci1,70) and cross(k,d);
a2:=ma(c,18);
a3:=(c-a2)/a2*100>=-9.9 and c<a2;
美人如玉剑如虹:=a3 and c/ref(c,1)>1.080,colorred;
roc:=100*(close-ref(close,12))/ref(close,12);
maroc:=ma(roc,6);
变动速率:=roc/maroc*z;
p1:=(high+low+close)/3;
cci01:=(p1-ma(p1,14))*1000/(g*avedev(p1,14)),colorred;
cci02:=(p1-ma(p1,36))*1000/(g*avedev(p1,36)),colorgreen;
b1:=barslast(cci01=llv(cci01,60));
dd1:=c<ref(c,b1) and cci01>ref(cci01,b1);
底背离:=if(dd1,100,0),linethick2,colorred;
机会难得:=if(cross(cci01,cci02) and ref(cci01,1)=llv(cci01,70),1,0),linethick2,coloryellow;
kd:=cross(k,d);
{选股:机会难得 and kd;}
{百年难遇:drawicon(机会难得 and kd,1,1),coloryellow;};
腰线:=(ma(close,3)+ma(close,6)+ma(close,12)+ma(close,24))/4,,;
kka:=ema(c-l,5) ;
顶线:=ma((c+ref(c,1)+ref(c,1))/3+kka,5);
底线:=ma(ref(c,1)-kka,5);
ma10:= ma(c,10);
ma20:= ma(c,20);
ma60:= ma(c,60);
bba:=ma(c,2);
cca:=ma(c,10);
dda:=ma(c,20);
eea:=exist(cross(bba,cca) and cross(bba,dda),1);
j0:=(high+low)/2;
qj:=ema(j0,3);
j1:=if(close>qj,vol,0);
j2:=if(close<qj,vol,0);
bb:=ma(sum(j1-j2,22),3);
累加:=21*bb+20*ref(bb,1)+19*ref(bb,2)+18*ref(bb,3)+17*ref(bb,4)
+16*ref(bb,5)+15*ref(bb,6)+14*ref(bb,7)+13*ref(bb,8)+12*ref
(bb,9)+11*ref(bb,10)+10*ref(bb,11)+9*ref(bb,12)+8*ref(bb,13)
+7*ref(bb,14)+6*ref(bb,15)+5*ref(bb,16)+4*ref(bb,17)+3*ref
(bb,18)+2*ref(bb,19)+ref(bb,20);
wwma:=累加/(21+1)/21*2;
cc1:=wwma;
var3:=(bb-cc1);
var4:=sma(rv,3,1);
var5:=sma(var4,3,1);
t:=if((barscount(c) > 7),(100)*((ma(c,7))/(llv(ma(c,7),7)) - 1),1);
n:=if((t > 0.35),6,65);
w:=((-((100)*(hhv(h,n) - c))/(hhv(high,n) - llv(l,n))));
rv2:=(close-llv(low,27))/(hhv(high,27)-llv(low,27))*100;
rg2:=(close-llv(low,5))/(hhv(high,5)-llv(low,5))*100;
j01:=(high+low)/2;
qj1:=ema(j01,3);
j11:=if(close>qj1,vol,0);
j21:=if(close<qj1,vol,0);
bb1:=ma(sum(j11-j21,22),3);
累加1:=21*bb1+20*ref(bb1,1)+19*ref(bb1,2)+18*ref(bb1,3)+17*ref(bb1,4)
+16*ref(bb1,5)+15*ref(bb1,6)+14*ref(bb1,7)+13*ref(bb1,8)+12*ref
(bb1,9)+11*ref(bb1,10)+10*ref(bb1,11)+9*ref(bb1,12)+8*ref(bb1,13)
+7*ref(bb1,14)+6*ref(bb1,15)+5*ref(bb1,16)+4*ref(bb1,17)+3*ref
(bb1,18)+2*ref(bb1,19)+ref(bb1,20);
wma1:=累加1/(21+1)/21*2;
cc:=wma1;
var03:=(bb-cc);var004:=sma(rv,3,1);
var005:=sma(var004,3,1);
kk1:=ema(sma(rg,3,1),2),colorffffff;
dd2:=sma(kk1,3,1),color00ffff;
天天涨停:=cross(w,-2) and cross(var004,var005) and cross(kk1,dd2);
明月战神:=(腰线>o and o>底线 and c>顶线 and c>ma20 and c>腰线 and eea and cross(var4,var5) and cross(kk,dd));
rsv3:=(((close - llv(low,9)) / (hhv(high,9) - llv(low,9))) * 100);
k11:=sma(rsv3,3,1);
d11:=sma(k11,3,1);
kk5:=intpart(sma(rsv3,3,1));
dd5:=intpart(sma(k11,3,1));
jj5:=intpart(((3 * k11) - (2 * d11)));
n1:=(kk5 + dd5);
kx:=(n1 < 25);
kx1:=ref(kx,29);
xx:=(n1 < 18);
xx1:=ref(xx,31);
xxx:=(n1 < 23);
xxx1:=ref(xxx,198);
kp:=((kx1 or xx1) or xxx1);
ka1:=(((ref(close,2) / ref(open,2)) < 0.95) and (ref(close,2) < ref(close,3)));
ka2:=(((ref(open,1) < ref(close,2)) and (ref(close,1) > ref(close,2))) and (ref(close,1) > ((ref(close,2) + ref(open,2)) / 2)));
ka3:=(close > ref(close,1));
ka4:=(llv(low,13) = ref(low,1));
kp2:=(count((((ka1 and ka2) and ka3) and ka4),3) > 0);
kp3:=cross((-100*(hhv(high,14)-close)/(hhv(high,14)-llv(low,14))),80);
kd3:=(n1 < 45);
kd1:=(((((ref(kd3,180) or ref(kd3,179)) or ref(kd3,31)) or ref(kd3,29)) or ref(kd3,13)) or ref(kd3,11));
kp4:=((kp2 and kp3) and kd1);
diff:=ema(close,12) - ema(close,26);
dea:=ema(diff,9);
kp5:=2*(diff-dea);
kd2:=((((ref(kd3,180) or ref(kd3,261)) or ref(kd3,98)) or ref(kd3,77)) or ref(kd3,1));
kp6:=((kp2 and kp5) and kd2);
kp7:=(n1 < 34);
kp8:=ref(kp7,11);
kp9:=(n1 < 45);
kp10:=((ref(kp9,83) and kp8) and kp2);
kp11:=(n1 < 38);
kp12:=((ref(kp11,19) and ref(kp11,32)) and kp2);
kp13:=((ref(kp9,28) and ref(kp11,101)) and kp2);
kp14:=(n1 < 43);
kp15:=((ref(kp14,28) and ref(kp14,189)) and kp2);
i:=((((((ref(close,2) / ref(open,2)) < 0.95) and (ref(open,1) < ref(close,2))) and ((abs((ref(open,1) - ref(close,1))) / ref(close,1)) < 0.03)) and ((close / open) > 1.05)) and (close > ref(close,2)));
i1:=2*(diff-dea);
t3:=(n1 < 40);
t4:=((ref(t3,34) or ref(t3,28)) or ref(t3,57));
kp16:=((i and i1) and t4);
黑马出击:=if(kp and kp2 or kp4 or kp6 or kp10 or kp12 or kp13 or kp15 or kp16,100,0);
var6:="kdj.j#week"(9,3,3);
var8:="kdj.j#month"(9,3,3);
dea7:="macd.dea#week";
diff7:="macd.dif#week";
d7:=diff7-dea7;
dea8:="macd.dea#month";
diff8:="macd.dif#month";
d8:=diff8-dea8;
黑马抄底:=cross(var6,0) and d8>0 or cross(var8,0) and d7>0;
quan:=(close-dma(close,vol/sum(vol,13)))/dma(close,vol/sum(vol,13))*100<=-28 and (close-dma(close,vol/sum(vol,34)))/dma(close,vol/sum(vol,34))*100<=-19
and c/ref(c,25)<=1.1 and if((((high > (low * 1.051)) and (count((high > (low * 1.051)),5) > 1)) and ((((close / ma(close,40)) * 100) < 78) or
(((close / ma(close,60)) * 100)< 74))),2,0) and(sma(max(c-ref(c,2),0),7,1)/sma(abs(c-ref(c,2)),7,1)*100)<15 and if(sma((close-llv(low,8))/(hhv(high,8)-llv(low,8))*100,2,1)>ref(sma((close-llv(low,8))/(hhv(high,8)-llv(low,8))*100,2,1),1)
and ref(sma((close-llv(low,8))/(hhv(high,8)-llv(low,8))*100,2,1),1)<ref(sma((close-llv(low,8))/(hhv(high,8)-llv(low,8))*100,2,1),2)
and sma((close-llv(low,8))/(hhv(high,8)-llv(low,8))*100,2,1)<23 ,1.5,0) and filter((c/ma(c,48))<0.75 and (c/ma(c,70))<0.70 and
((c-l)/c>0.02 or c>ref(c,1)*1.01) and v<ref(v,1)*2.8 and (count(c<o*0.93,2)=2 or count(h/l>1.1,5)>3),3) ;
机会难得 or 明月战神 or 美人如玉剑如虹 or 抄底王 or 黑马出击 or 天天涨停 or 黑马抄底 or quan;
测试结果(利润1:用目标周期内最高价计算的全部指示的平均利润,利润2:期末价平均利润)
测试证券数:1388曾指示证券数:1363
共发出指示:13991 成功指示:7852 失败指示:5931 未完成指示:208
平均成功率:56.97%, 成功率达到50%的股票有:68.2%
利润1总平均:16.49% 利润1最大值:64.27% 利润1最小值:0.00%
最高利润达到2倍目标利润以上指示: 4154 (30.14%)
最高利润达到3倍目标利润以上指示: 2178 (15.80%)
利润2总平均: 1.74% 利润2最大值: 47.65% 利润2最小值: -27.47%
期末低于介入点指示: 6801 (49.34%)
上一指标公式:佛缘选股公式 飞狐选股佛缘指标 源码
下一指标公式:稳操胜券13逃顶公式 飞狐稳操胜券指标 源码
☉ 好公式网发布的指标公式主要用于软件技术面分析,仅供参考,勿用于实际操作,据此操作风险自负!
☉ 解压密码:www.goodgongshi.com 就是好公式网域名,希望大家看清楚,切勿输错。
☉ tnc和tni格式指标公式,仅可以用通达信软件引入使用,例如可以用通达信软件引入使用指标公式;
☉ tne格式指标公式,仅可以用通达信软件公式编辑器5.0版导入,高版本兼容低版本;
☉ fnc格式指标公式,可以用大智慧软件新一代高速行情分析系统股票软件使用,少部分可以用分析家软件引入使用;
☉ alg格式指标公式,仅仅可以用飞狐交易师软件引入使用;exp格式指标公式,仅可以用大智慧经典版软件引入使用;
☉ hxf格式指标公式,仅可以用同花顺软件引入使用。
☉ 如果您发现下载软件链接错误,请联系管理员报告错误。
☉ 好公式网欢迎各位网友帮忙宣传转发本站网址,有您的支持,我们会做得更好!
☉ 本文黑马组合选股公式 飞狐黑马公式指标 源码仅供学习研究。