您现在的位置:程序化交易>> 股票公式>> 其他>> 其他软件公式>>正文内容

飞狐富贵花开公式指标源码[其他软件公式]

相关标签:

参数:

n3.1.10.1 n19.1.10.1 n26.1.10.1 n3 -23 -50 0 1

n475 50 100 1 p119 1100 1 p2 118 1 25011

源代码:

 
cxh2:=(c-ref(c,1))/ref(c,1)*100;
cxh3:=(c-llv(l,18))/(hhv(h,18)-llv(l,18))*100;
cxh4:=sma(cxh3,9,1);
cxh5:=sma(cxh4,3,1);
j:3*cxh4-2*cxh5,Color00FFFF;
cxh6:=j>1*ref(j,1);
cxh7:=llvbars(l,50);
cxh8:=sum(v,cxh7);
cxh9:=hhvbars(h,50);
cxh10:=sum(v,cxh9);
cxh11:=(c-ref(o,cxh9))/ref(o,cxh9)*100;
cxh12:=cxh10/capital*100;
cxh13:=(c-ref(o,cxh7))/ref(o,cxh7)*100;
cxh14:=cxh8/capital*100;
cxh15:=ma(winner(c),n)*100;
cxh16:=ema(cxh4,n);
a2:ema(cxh4,n),colorffddcc;
a3:=ema(a2,n);
a4:=ema(a3,n);
a5:=ema(a4,n);
a6:=ema(a5,n);
a7:=ema(a6,n);
cxh17:=ema(a7,n);
cxh18:=ema(cxh17,n);
cxh19:=ema(cxh18,n);
aa:=ema(a5,n2);
中期大底:llv(j,aa),Linethick2,Color0000FF;
上:=if(ma(h,3)*1.05,30,0)*10-aa;
下:=if(ma(l,3)*0.96,30,0)*2/中期大底;
中:=if(ma(h,3)*1.05,30,0);
电:=j;
drawtext(cross(a4,aa) and cxh11<n3,aa,'●底'),colorffff00;
drawtext(cross(a2,j) and a2>n4,a2+4.22,'●峰'),Color00FFFF;
drawtext(cross(j,a2) and cxh6 and a2<20 and cxh2>9 or a2>1*ref(a2,1) and cxh2>4 and a2<60,a2,'●拉升'),colorffffcc;
STICKLINE(j>=a2,a2,j,6,0),color0000ff;
STICKLINE(j<=a2,j,a2,6,0),color00ff00;
压力:hhv(j,60),color00ffff;
支撑:=llv(aa,13);
stickline(j<=中期大底 and 中-ref(中,1)>0 and c>=o*0.99,1,88,3,0),color0000ff;
drawicon(j<=中期大底 and 中-ref(中,1)>0 and c>=o*0.99,88,1),Color00FF00;
drawtext(j<=中期大底 and 中-ref(中,1)>0 and c>=o*0.99,85,'-绝对底部'),Color00FF00;
stickline(filter(cross(上,中期大底) and 中-ref(中,1)>=0,3),中期大底,70,3,0),color00ff00;
drawicon(filter(cross(上,中期大底) and 中-ref(中,1)>=0,3),70,1);
drawtext(filter(cross(上,中期大底) and 中-ref(中,1)>=0,3),64,'-买了不输'),colorffffff;
stickline(cross(上,下) and c>=o,中期大底,60,2,0),colorff0000;
drawicon(cross(上,下) and c>=o,60,1),colorff00ff;
drawtext(cross(上,下) and c>=o,55,'-短线'),colorff00ff;
drawtext(j>=压力 and 压力-ref(压力,6)>25 and c<o,压力+4.22,'●头部'),Color008000;
ma1:=ma(c,p1);
ma2:=ma(c,p2);
n15high:=ref(h,15);
n1low:=ref(l,1);
ff:=(n15high-n1low)/n1low>0.15;
stickline(cross(ma(c,p1),ma(c,p2))>0 and (n15high-n1low)/n1low<0.15 and l<=ma(c,p1) and c>=ma(c,p1) and c>=o,中期大底,60,0,1),Linethick3,Color0000FF;
drawicon(cross(ma(c,p1),ma(c,p2))>0 and (n15high-n1low)/n1low<0.15 and c>=ma(c,p1) and l<=ma(c,p1) and c>=o,60,1);
drawtext(cross(ma(c,p1),ma(c,p2))>0 and (n15high-n1low)/n1low<0.15 and c>=ma(c,p1) and l<=ma(c,p1) and c>=o,60,'^回头望月'),colorff0000;
x:=c-ref(ma(c,20),11);
lgl:=if(ema(c,5)/ema(ema(c,9),16)<=0.85 and c/ref(c,1)>0.905 and c/ref(c,1)<1.05 and v/capital*100<5,50,0);
wr1:=-(100*(hhv(h,34)-c)/(hhv(h,34)-llv(l,34)))+100*x;
wr2:=-(100*(hhv(h,50)-c)/(hhv(h,50)-llv(l,50)))+100;
wr3:=-(100*(hhv(h,70)-c)/(hhv(h,70)-llv(l,70)))+100*x;
bias1:=((c-ma(c,34))/ma(c,34)*100+10)*5;
bias2:=((c-ma(c,50))/ma(c,50)*100+10)*5;
bias3:=((c-ma(c,70))/ma(c,70)*100+10)*5;
s1:=(wr1+wr2+wr3+bias1+bias2+bias3)/6*x;
s2:=ema(s1,3);
s3:=abs(bias1-bias3);
sx:=(s1+s3)/2;
xc1:=(-1)*(ema(100*(1-winner(c)),1)-50)+50;
ccc:=xc1+sx;
zjz:=if(lgl>0 and ccc<0,200,0)*x;
lxl:=if(sx<0 and c=llv(c,5) and c/ref(c,1)>0.905 and c/ref(c,1)<1.05 and v/capital*100<5,-50,0);
jbj:=if(ccc<0 and lxl=-50,100,0)*x;
ma3:=ma(c,3);
c0:=ref(c,2)*0.865;
c1:=ref(c,13)*0.772;
bot:=min(c0,c1);
hsl:=100*v/capital*x;
ma13:=ma(c,13)*x;
cxc:=if((c-bot)/c<3/100 and sum(hsl,5)/5<1.8,1,0);
vmc:=if(cxc>0 and (lxl<0 or lgl>0),10,0);
满仓:if(vmc>0,60,中期大底),Color0000FF;
drawtext(满仓>=60,59,'满仓'),Color0000FF;
半仓:if(zjz>0 and jbj>0 and sum(v/capital*100,5)/5<1 or cxc>0 and ref(c,1)/ref(c,2)>0.902 or (zjz>0 and jbj>0 and sum(v/capital*100,5)/5<1 or cxc>0) and (lxl<0 or lgl>0) and vmc<10,50,中期大底),colorcc99ff;
drawtext(半仓>=50,49,'半仓'),colorcc99ff;
b0:=ma(c,3);
b01:=ma(c,4);
b1:=(h+l+c)/3;
b2:=hhv(b1,15);
b3:=llv(b1,15);
b4:=b2-b3;
b5:ma((b1-b3)/b4,2)*100,Color000080;
b6:=hhv(b1,4*15);
b7:=llv(b1,4*15);
b8:=b6-b7;
b9:ma((b1-b7)/b8,2)*100,ColorFFCD00;
ba:=hhv(b1,16*15);
bb:=llv(b1,16*15);
bc:=ba-bb;
bd:ma((b1-bb)/bc,2)*100,ColorFFEEFF;
顶线:98,ColorFFFFFF;
底线:1,ColorFFFF00;
stickline(cross(b5,底线) and b0-ref(b0,1)>0 and j-ref(j,1)>0 and c>=o,中期大底,50,2,0),Color0000FF;
drawicon(cross(b5,底线) and b0-ref(b0,1)>0 and j-ref(j,1)>0 and c>=o,50,1);
drawtext(cross(b5,底线) and b0-ref(b0,1)>0 and j-ref(j,1)>0 and c>=o,65,'开花一'),colorcc99ff;
stickline(cross(b5,底线) and cross(b9,底线) and b01-ref(b01,1)>0,中期大底,64,2,0),Color0000FF;
drawicon(cross(b5,底线) and cross(b9,底线) and b01-ref(b01,1)>0,64,1);
drawtext(cross(b5,底线) and cross(b9,底线) and b01-ref(b01,1)>0,75,'开花二'),ColorFF00FF;
drawtext(cross(98,b5) and c<h/1.03,98,'↑出局'),Color00FF00;
stickline(cross(bd,1) and 中-ref(中,1)>0 and b5-ref(b5,2)>0,1,80,3,0);
drawicon(cross(bd,1) and 中-ref(中,1)>0 and b5-ref(b5,2)>0,80,1);
drawtext(cross(bd,1) and 中-ref(中,1)>0 and b5-ref(b5,2)>0,73,'开花三'),color00ffff;
stickline(cross(j,aa) and a2>=a3 and 中-ref(中,1)>0 and c>=o and a3>=a4,中期大底,60,2,0),colorffffff;
drawtext(cross(j,aa) and a2>=a3 and 中-ref(中,1)>0 and c>=o and a3>=a4,60,'●买'),Color00FFFF;
均线:=ma(c,5);
drawtext(cross(b5,a2)>0and 均线-ref(均线,1)>0,98,'关注'),color0000ff;
cxhw2:=(c-ma(c,6))/ma(c,6)*100 and 中-ref(中,1)>0;
cxhw3:=(c-ma(c,12))/ma(c,12)*100 and 中-ref(中,1)>0;
cxhw4:=(c-ma(c,24))/ma(c,24)*100;
cxhw5:=(cxhw2+2*cxhw3+3*cxhw4)/6;
cxhw6:=ma(cxhw5,3);
犀牛王:=70*cxhw6<=-8;
{程序化交易 www.cxh99.com }
 

飞狐富贵花开公式指标源码

 

公式导入教程: 【通达信公式源码导入方法教程】 【同花顺公式源码导入方法教程】 【大智慧新一代公式源码导入方法教程

 

 

有思路,想编写各种指标公式,交易模型,选股公式,还原公式的朋友

可联系技术人员 QQ: 262069696  点击在线交流或微信:cxhjy888 进行 有偿收费 编写!(注:由于人数限制,QQ或微信请选择方便的一个联系我们就行,加好友时请简单备注下您的需求,否则无法通过。谢谢您!)

怎么收费,代编流程等详情请点击查阅!

(注:由于人数限制,QQ或微信请选择方便的一个联系我们就行,加好友时请简单备注下您的需求,否则无法通过。谢谢您!)

 


【字体: 】【打印文章】【查看评论

相关文章

    没有相关内容