改编波神凯线主图图片说明
送给有需要的同学!
请大家一齐参予去完善这一个指标; 注:记得调整参数....谢谢!
{改编波神凯线源码}
input:年(8,0,100),月(1,1,12),日(1,1,31),年2(8,0,100),月2(1,1,12),日2(1,1,31),做多吗(1,0,1),测量(1,1,4);
date1:=年*10000+月*100+日+1000000;
date2:=年2*10000+月2*100+日2+1000000;
hh:=ref(h,barslast(date1=date));
hh2:=if(ref(h,barslast(date1=date))<ref(h,barslast(date1=date)-1),ref(h,barslast(date1=date)-1),if(ref(h,barslast(date1=date))<ref(h,barslast(date1=date)-2),ref(h,barslast(date1=date)-2),ref(h,barslast(date1=date)-1)));
ll2:=if(ref(l,barslast(date1=date))>ref(l,barslast(date1=date)-1),ref(l,barslast(date1=date)-1),if(ref(l,barslast(date1=date))>ref(l,barslast(date1=date)-2),ref(l,barslast(date1=date)-2),ref(l,barslast(date1=date)-1)));
hh31:=ref(o,barslast(date1=date));
hh32:=ref(c,barslast(date1=date));
hh3:=min(hh31,hh32);
ll3:=max(hh31,hh32);
hh4:=if(做多吗,ref(h,barslast(date=date2)),ref(h,barslast(date=date1)));
ll4:=if(做多吗,ref(l,barslast(date=date1)),ref(l,barslast(date=date2)));
llow:=ref(low,barslast(date1=date));
h1:=strtonum(numtostr(hh));
l1:=strtonum(numtostr(llow));
h2:=strtonum(numtostr(hh2));
l2:=strtonum(numtostr(ll2));
h3:=strtonum(numtostr(hh3));
l3:=strtonum(numtostr(ll3));
h4:=strtonum(numtostr(hh4));
l4:=strtonum(numtostr(ll4));
ll1:=if(测量=1,h1-l1,if(测量=2 and 做多吗=1,h2-l1,if(测量=2 and 做多吗<>1,h1-l2,if(测量=3 and 做多吗=1,h3-l1,if(测量=3 and 做多吗<>1,h1-l3,if(测量=4,h4-l4,h4-l4))))));
ll:=strtonum(numtostr(ll1));
vertline(date=date1,0),colorb0b0b0,linethick2;
if 测量=4 then vertline(date=date2,1),colorbbbbbb;
if 做多吗=1 then
begin
多开门:ll*1.508 + l1,colorred,linethick2;
一线:l1+ll*2,colorwhite,dotline;
二线:l1+ll*2.4,colorwhite,dotline;
三线:l1+ll*3.05,color0045ff;
四线:l1+ll*3.75,colorwhite,dotline;
五线:l1+ll*4.15,color00a5ff;
六线:l1+ll*4.8,colorwhite,dotline;
七线:l1+ll*5.5,colorcbc0ff;
八线:l1+ll*6.1,colorwhite,dotline;
多关门:l1+ll*6.90001,linethick2;
drawtext(barstatus=2,ll*1.50801+l1,numtostr(ll*1.508+l1)+'多开门'),colorb0b0b0,align2;
drawtext(barstatus=2,l1+ll*3.05001,numtostr(l1+ll*3.05)+' no:3'),colorb0b0b0,align2;
drawtext(barstatus=2,l1+ll*4.15001,numtostr(l1+ll*4.15)+' no:5'),colorb0b0b0,align2;
drawtext(barstatus=2,l1+ll*5.50001,numtostr(l1+ll*5.5)+' no:7'),colorb0b0b0,align2;
drawtext(barstatus=2,l1+ll*6.90001,numtostr(l1+ll*6.9)+'多关门'),colorb0b0b0,align2;
end;
if 做多吗<>1 then
begin
空开门:h1-ll*1.508,linethick2;
空一线:h1-ll*2,colorwhite,dotline;
空二线:h1-ll*2.4,colorwhite,dotline;
空三线:h1-ll*3.05,colord30094;
空四线:h1-ll*3.75,colorwhite,dotline;
空五线:h1-ll*4.15,color00a5ff;
空六线:h1-ll*4.8,colorwhite,dotline;
空七线:h1-ll*5.5,color104974;
空八线:h1-ll*6.1,colorwhite,dotline;
空关门:h1-ll*6.9,linethick2;
drawtext(barstatus=2,h1-ll*1.50801,numtostr(h1-ll*1.508)+'空开门'),colorb0b0b0,align2;
drawtext(barstatus=2,h1-ll*3.05001,numtostr(h1-ll*3.05)+' no:3'),colorb0b0b0,align2;
drawtext(barstatus=2,h1-ll*5.50001,numtostr(h1-ll*5.5)+' no:7'),colorb0b0b0,align2;
drawtext(barstatus=2,h1-ll*6.90001,numtostr(h1-ll*6.9)+'空关门'),colorb0b0b0,align2;
end;
{-----------------------------立体k线--------------------------------------}
ko:=close;
kc:=ref(close,1);
stickline(ko<=kc ,close ,open,8,0 ),color008800;
stickline(ko<=kc ,close ,open,7,0 ),color009900;
stickline(ko<=kc ,close ,open,6,0 ),color00aa00;
stickline(ko<=kc ,close ,open,5,0 ),color00bb00;
stickline(ko<=kc,close ,open,4,0 ),color00cc00;
stickline(ko<=kc,close ,open,3,0 ),color33dd00;
stickline(ko<=kc,close ,open,2,0 ),color00ee00;
stickline(ko<=kc,close ,open,1,0 ),color66ff00;
stickline(ko>kc,close,open,8,0 ),color000088;
stickline(ko>kc,close,open,7,0 ),color000099;
stickline(ko>kc,close,open,6 ,0 ),color0000aa;
stickline(ko>kc,close,open,5,0 ),color0000bb;
stickline(ko>kc,close,open,4,0 ),color0000cc;
stickline(ko>kc,close,open,3 ,0 ),color0000dd;
stickline(ko>kc,close,open,2,0 ),color0000ee;
stickline(ko>kc,close,open,1 ,0 ),color0033ff;
stickline(ko>kc,open,low,0.5,0 ),colorred;
stickline(ko>kc,close,high,0.5 ,0 ),colorred;
stickline(ko<=kc,close,low,0.5 ,0 ),color66cc33;
stickline(ko<=kc,open,high,0.5 ,0 ),color66cc33;
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,13);
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,26);
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)>=#p##e#ref(zig(3,20),2) and ref(zig(3,20),2)>=ref(zig(3,20),3);
pl40:=zig(3,55);
走强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,low*0.98,'(ⅰ)'),colorffff00;
drawtext(ex1 and dtjd5=2,high*1.02,'(ⅱ)'),colorffff00;
drawtext(en2 and ztjz5=1,low*0.98,'(ⅲ)'),colorffff00;
drawtext(ex1 and pl10>ref(pl10,1) and ztjd5=1,high*1.02,'⑴'),color0000ff;
drawtext(en1 and pl10>ref(pl10,1) and ztjz5=2,low*0.98,'⑵'),color0000ff;
drawtext(ex1 and pl10>ref(pl10,1) and ztjz5=2,high*1.02,'⑶'),color0000ff;
drawtext(en1 and pl10>ref(pl10,1) and ztjz5=3,low*0.98,'⑷'),color0000ff;
drawtext(ex2 and pl20>ref(pl20,1) and ztjd10=1,high*1.02,'⑸'),color0000ff;
drawtext(en2 and dtjz10=1,low*0.94,'【a】'),color00ff00;
drawtext(ex2 and dtjd10=2,high*1.03,'【b】'),color00ff00;
drawtext(en3 and ztjz10=1,low*0.94,'【c】'),color00ff00;
drawtext(ex2 and pl20>ref(pl20,1) and ztjd10=1,high*1.04,'①'),linethick3,color00ffff;
drawtext(en2 and pl20>ref(pl20,1) and ztjz10=2,low*0.94,'②'),linethick3,color00ffff;
drawtext(ex2 and pl20>ref(pl20,1) and ztjd10=2 or (ztjd10=0 or ztjd10=2) and ex2,high*1.04,'③'),linethick3,color00ffff;
drawtext(en2 and pl20>ref(pl20,1) and ztjz10=3,low*0.94,'④'),linethick3,color00ffff;
dmlj:=hhv(high,120);
ty:=close;
hd:=filter(backset(filter(ref(ty,10)=hhv(ty,2*10+1),10),10+1),10);
ld:=filter(backset(filter(ref(ty,10)=llv(ty,2*10+1),10),10+1),10);
a:=ref(close,barslast(hd));
b:=ref(close,barslast(ld));
t1:=barslast(hd)<barslast(ld) and not(hd) ;
t2:=barslast(hd)>barslast(ld) and not(ld);
波浪顶:if(t1,a,a),colorff00ff,pointdot,linethick4;
stickline(t1,a,a,9,0),colorff00ff;
波浪底:if(t2,b,b),color80ff00,pointdot,linethick4;
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:=ma(hhv(close-ref(close,1),0),34)/ma(abs(close-ref(close,1)),7)*100;
var9:=ma(hhv(close-ref(close,1),0),13)/ma(abs(close-ref(close,1)),13)*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:=trough(3,6,1)<4 and cross(vard,vare);
var10:=if(trough(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);
买点1:=var10;
买点2:=(var11+var13+var15+var17);
卖点1:=(var12+var14+var16+var18){,linethick2};
var22:=买点1 and varf and varc and var21 and var4<0 and var5=0 and var6=0 and var20<(-110);
var1:=ma(close,6);
var2:=ma(close,18);
var31:=ma(close,30);
varb1:=sum(close*vol*100,28)/sum(vol*100,28);
varc1:=intpart(varb1*100)/100;
vard1:=ema(close,5)-ema(close,10);
vare1:=ema(vard1,9);
var131:=ref(vare1,1);
var141:=vare1;
var151:=var141-var131;
var161:=ref(vard1,1);
var171:=vard1;
var181:=var171-var161;
var191:=open;
var1a1:=close;
drawtext(买点1>0,low-0.01,'▲买!'),colorred;
drawtext(买点2>0,low-0.01,'▲要涨'),coloryellow;
drawtext(卖点1>0,high+0.1,'▼快卖'), colorwhite;
a:=barscount(close);
ah:=hhv(high,72);
al:=llv(low,72);
a0:=(ah-al)/21;
b#p##e#1:=low-a0;
drawtext((a+0)/15=floor((a+0)/15),b1-2.5*a0,'▲时窗'),colorwhite;
var31:=hhvbars(zig(3, 19)>ref(zig(3,19),1)
and ref(zig(3,19), 1)<ref(zig(3,19), 2),0);
stickline(var31=2,low*0.95,low*0.98,8,0),color0000ff;
drawtext(var31=2,low*0.95,'3天'),colorwhite;
stickline(var31=4,high*1.05,high*1.02,8,0),color9966ff;
drawtext(var31=4,high*1.06,'5天'),colorwhite;
stickline(var31=7,low*0.95,low*0.98,8,0),color00ffff;
drawtext(var31=7,low*0.95,'8天'),colorwhite;
stickline(var31=12,high*1.05,high*1.02,8,0),colorff33ff;
drawtext(var31=12,high*1.06,'13天'),colorwhite;
stickline(var31=20,low*0.95,low*0.98,8,0),color0066ff;
drawtext(var31=20,low*0.95,'21天'),colorwhite;
stickline(var31=33,high*1.05,high*1.02,8,0),colorffff00;
drawtext(var31=33,high*1.06,'34天'),colorwhite;
stickline(var31=54,low*0.95,low*0.98,8,0),colorwhite;
drawtext(var31=54,low*0.95,'55天'),colorwhite;
stickline(var31=88,high*1.05,high*1.02,8,0),color00ff00;
drawtext(var31=88,high*1.06,'89天'),colorwhite;
stickline(var31=143,low*0.95,low*0.98,8,0),colorccffff;
drawtext(var31=143,low*0.95,'144天'),colorwhite;
stickline(var31=232 ,high*1.05,high*1.02,8,0),colorff0033;
drawtext(var31=232,high*1.06,'233天'),colorwhite;
stickline(var31=376,low*0.95,low*0.98,8,0),colorff9966;
drawtext(var31=376,low*0.95,'377天'),colorwhite;
get:zig(3,5),colorwhite,linethick2;
上一指标公式:突破箱顶选股有图公式下载 大智慧有图选股
下一指标公式:变色龙彩色主图公式下载 大智慧彩色源码
☉ 好公式网发布的指标公式主要用于软件技术面分析,仅供参考,勿用于实际操作,据此操作风险自负!
☉ 解压密码:www.goodgongshi.com 就是好公式网域名,希望大家看清楚,切勿输错。
☉ tnc和tni格式指标公式,仅可以用通达信软件引入使用,例如可以用通达信软件引入使用指标公式;
☉ tne格式指标公式,仅可以用通达信软件公式编辑器5.0版导入,高版本兼容低版本;
☉ fnc格式指标公式,可以用大智慧软件新一代高速行情分析系统股票软件使用,少部分可以用分析家软件引入使用;
☉ alg格式指标公式,仅仅可以用飞狐交易师软件引入使用;exp格式指标公式,仅可以用大智慧经典版软件引入使用;
☉ hxf格式指标公式,仅可以用同花顺软件引入使用。
☉ 如果您发现下载软件链接错误,请联系管理员报告错误。
☉ 好公式网欢迎各位网友帮忙宣传转发本站网址,有您的支持,我们会做得更好!
☉ 本文改编波神凯线主图图片说明公式下载 大智慧图片源码仅供学习研究。