先看图,点击看大图
飞狐原码:
n1:=5;n2:=10;n3:=20;n4:=30;p:=2;m:=20;n:=250;m1:=55;
ma1:ema(close,n1);
ma2:ema(close,n2);
ma3:ema(close,n3);
ma4:ema(close,n4);
tj1:=cross(ma1,ma2) and c>o and c>ref(c,1) and c/ref(c,1)>=1.018
or cross(ma1,ma4) and c>o and c>ref(c,1) and c/ref(c,1)>=1.018
or cross(ma2,ma3) and c>o and c>ref(c,1) and c/ref(c,1)>=1.018
or cross(ma1,ma3) and c>o and c>ref(c,1) and c/ref(c,1)>=1.018;
tj2:=(max(ma1,max(ma2,ma3))-min(ma1,min(ma2,ma3)))/
min(ma1,min(ma2,ma3))*100<=p;
xg:=tj1 and tj2;
rsv:=(close-llv(low,9))/(hhv(high,9)-llv(low,9))*100;
k:=sma(rsv,3,1);
d:=sma(k,3,1);
diff:= ema(close,12) - ema(close,26);
dea :=ema(diff,9);
macd:=2*(diff-dea);
做多:=if(k>d and macd>0 and v>1,2,0),colorred;
做空:=if(k<d and macd<0 and v>1,-2,0),color00ff00;
强洗:=if(macd>0 and k<d and v>1,1,0),color0099ff;
弱升:=if(macd<0 and k>d and v>1,-1,0),colorffff00;
stickline(做多,l,h,0,0),colorred;
stickline(做多 and c<o,l,h,0,0),colorffff00;
stickline(做多 and c>=o,c,o,8,1),colorred;
stickline(做多 and c<o,c,o,8,0),color990099;
stickline(做多 and c<o,c,o,4,0),colorcc00cc;
stickline(做多 and c<o,c,o,2,0),colorff00ff;
stickline(做多 and c>=o,c,o,8,0),color000099;
stickline(做多 and c>=o,c,o,4,0),color0000bb;
stickline(做多 and c>=o,c,o,2,0),color0000dd;
stickline(做多 and c>=o,c,o,1,0),color0000ff;
stickline(做空 and c>=o,l,h,0.1,0),color0000ff;
stickline(做空 and c>=o,c,o,8,1),color00ff00;
stickline(做空 and c<o,c,o,8,0),color009900;
stickline(做空 and c<o,c,o,4,0),color00cc00;
stickline(做空 and c<o,c,o,1,0),color00ff00;
stickline(强洗 and c>=o,l,h,0.1,0),color0000ff;
stickline(强洗 and c>=o,c,o,8,1),colorffffff;
stickline(强洗 and c<o,c,o,8,0),color999999;
stickline(强洗 and c<o,c,o,4,0),colorcccccc;
stickline(强洗 and c<o,c,o,1,0),colorffffff;
stickline(弱升 and c>=o,l,h,0,0),color0000ff;
stickline(弱升 and c>=o,c,o,8,1),color00ffff;
stickline(弱升 and c<o,c,o,8,0),color009999;
stickline(弱升 and c<o,c,o,4,0),color00cccc;
stickline(弱升 and c<o,c,o,1,0),color00ffff;
stickline(filter(tj1,3),c,o,8,0),color0000ff;
drawicon(filter(xg,3),l*0.97,1);
get:=zig(3,3),coloryellow;
pl5:=zig(3,5);
en1:=zig(3,5)>ref(zig(3,5),1) and ref(zig(3,5),1)<=ref(zig(3,5),2) and ref(zig(3,5),2)<=ref(zig(3,5),3);
ex1:=zig(3,5)<ref(zig(3,5),1) and ref(zig(3,5),1)>=ref(zig(3,5),2) and ref(zig(3,5),2)>=ref(zig(3,5),3);
pl10:=zig(3,10);
en2:=zig(3,10)>ref(zig(3,10),1) and ref(zig(3,10),1)<=ref(zig(3,10),2) and ref(zig(3,10),2)<=ref(zig(3,10),3);
ex2:=zig(3,10)<ref(zig(3,10),1) and ref(zig(3,10),1)>=ref(zig(3,10),2) and ref(zig(3,10),2)>=ref(zig(3,10),3);
pl20:=zig(3,20);
en3:=zig(3,20)>ref(zig(3,20),1) and ref(zig(3,20),1)<=ref(zig(3,20),2) and ref(zig(3,20),2)<=ref(zig(3,20),3);
ex3:=zig(3,20)<ref(zig(3,20),1) and ref(zig(3,20),1)>=ref(zig(3,20),2) and ref(zig(3,20),2)>=ref(zig(3,20),3);
pl40:=zig(3,40);
走强1:=barslast(pl5<ref(pl5,1));
走弱1:=barslast(pl5>ref(pl5,1));
走强2:=barslast(pl10<ref(pl10,1));
走弱2:=barslast(pl10>ref(pl10,1));
走强3:=barslast(pl20<ref(pl20,1));
走弱3:=barslast(pl20>ref(pl20,1));
ztjz5:=if(pl10>ref(pl10,1),count(en1,走强2),0);
ztjd5:=if(pl10>ref(pl10,1),count(ex1,走强2),0);
dtjz5:=if(pl10<ref(pl10,1),count(en1,走弱2),0);
dtjd5:=if(pl10<ref(pl10,1),count(ex1,走弱2),0);
ztjz10:=if(pl20>ref(pl20,1),count(en2,走强3),0);
ztjd10:=if(pl20>ref(pl20,1),count(ex2,走强3),0);
dtjz10:=if(pl20<ref(pl20,1),count(en2,走弱3),0);
dtjd10:=if(pl20<ref(pl20,1),count(ex2,走弱3),0);
drawtext(en1 and dtjz5=1,l*0.98,'(a)'),colorffff00;
drawtext(ex1 and dtjd5=2,h*1.02,'(b)'),colorff00ff;
drawtext(en2 and ztjz5=1,l*0.98,'(c)'),color0000ff;
drawtext(ex1 and pl10>ref(pl10,1) and ztjd5=1,h*1.02,'⑴'),color0000ff;
drawtext(en1 and pl10>ref(pl10,1) and ztjz5=2,l*0.98,'⑵'),color0000ff;
drawtext(ex1 and pl10>ref(pl10,1) and ztjz5=2,h*1.02,'⑶'),color0000ff;
drawtext(en1 and pl10>ref(pl10,1) and ztjz5=3,l*0.98,'⑷'),color0000ff;
drawtext(ex2 and pl20>ref(pl20,1) and ztjd10=1,h*1.02,'⑸'),color0000ff;
drawtext(en2 and dtjz10=1,l*0.93,'ⅰ'),colorff00ff;
drawtext(ex2 and dtjd10=2,h*1.05,'ⅱ'),colorffff00;
drawtext(en3 and ztjz10=1,l*0.93,'ⅲ'),color0000ff;
drawtext(ex2 and pl20>ref(pl20,1) and ztjd10=1,h*1.03,'①'),linethick3,color00ffff;
drawtext(en2 and pl20>ref(pl20,1) and ztjz10=2,l*0.95,'②'),linethick3,color00ffff;
drawtext(ex2 and pl20>ref(pl20,1) and ztjd10=2 or (ztjd10=0 or ztjd10=2)
and ex2,h*1.03,'③'),linethick3,color00ffff;
drawtext(en2 and pl20>ref(pl20,1) and ztjz10=3,l*0.95,'④'),
linethick3,color00ffff;
hr:=hhv(high,m1);
hry:=llv(low,m1);
hry11:=hr*hry;
hry33:sqrt(hry11),colorgreen,linethick2;partline(c>hry33 and
hry33 >=ref(hry33 ,1), hry33),linethick2,colorred;
上一指标公式:飘零顶庄解盘组合公式 飞狐飘零源码指标 源码
☉ 好公式网发布的指标公式主要用于软件技术面分析,仅供参考,勿用于实际操作,据此操作风险自负!
☉ 解压密码:www.goodgongshi.com 就是好公式网域名,希望大家看清楚,切勿输错。
☉ tnc和tni格式指标公式,仅可以用通达信软件引入使用,例如可以用通达信软件引入使用指标公式;
☉ tne格式指标公式,仅可以用通达信软件公式编辑器5.0版导入,高版本兼容低版本;
☉ fnc格式指标公式,可以用大智慧软件新一代高速行情分析系统股票软件使用,少部分可以用分析家软件引入使用;
☉ alg格式指标公式,仅仅可以用飞狐交易师软件引入使用;exp格式指标公式,仅可以用大智慧经典版软件引入使用;
☉ hxf格式指标公式,仅可以用同花顺软件引入使用。
☉ 如果您发现下载软件链接错误,请联系管理员报告错误。
☉ 好公式网欢迎各位网友帮忙宣传转发本站网址,有您的支持,我们会做得更好!
☉ 本文特发五里7号-强弱判官版公式 飞狐五里指标 源码仅供学习研究。