山水先生■新宝塔线■
{■新宝塔线■-----原码}
//注意其中的两个未来不影响买卖;
drawgbk((close > 0),colorrgb(0,0,88),colorrgb(0,0,55),1);
线1:hhv(forcast(close,10),18)*1.01,colore66878;
线2:hhv(forcast(close,10),14)*1.01,colorf0f000;
线3:hhv(forcast(close,10),10)*1.01,colorffff;
线4:hhv(forcast(close,10),6)*1.01,colorff00;
线:forcast(close,10)*1.01,linethick1,colorff;
fillrgn(线,线,线4),color9dadbb;
fillrgn(线4,线4,线3),color167400;
fillrgn(线3,线3,线2),color007368;
fillrgn(线2,线2,线1),color0029b9;
bddd:=c=llv(c,6),linethick0;
n20:=barslast(bddd);
低:if(n20,ref(c,n20),ref(c,n20))*0.99,colorred,linethick0;
启动:c>低 and ref(c=低,1),color00ff00,pointdot,linethick0;
partline(低=ref(低,1),低),colorred,linethick1;
{以下设置副图显示方式}
if(c,c,c),colorff00ff,linethick0;
drawtext(启动,l*0.98,'↑'),colorred, align0;
partline(低<ref(低,1),低),colorblack;
var1:=close>ref(close,1) and close>ref(close,2);
var2:=ref(var1,1) and close<=ref(close,1) and close>=ref(close,2);
var3:=ref(var2,1) and close>=ref(close,1) and close<=ref(close,2);
var4:=ref(var3,1) and close<=ref(close,1) and close>=ref(close,2);
var5:=ref(var4,1) and close>=ref(close,1) and close<=ref(close,2);
var6:=ref(var5,1) and close<=ref(close,1) and close>=ref(close,2);
var7:=ref(var6,1) and close>=ref(close,1) and close<=ref(close,2);
var8:=ref(var7,1) and close<=ref(close,1) and close>=ref(close,2);
var9:=ref(var8,1) and close>=ref(close,1) and close<=ref(close,2);
vara:=ref(var9,1) and close<=ref(close,1) and close>=ref(close,2);
varb:=ref(vara,1) and close>=ref(close,1) and close<=ref(close,2);
varc:=ref(varb,1) and close<=ref(close,1) and close>=ref(close,2);
stickline(var1 or var2 or var3 or var4 or var5 or var6 or var7 or var8 or var9 or vara or varb or varc,close,ref(close,1),9,0),color000055;
stickline(var1 or var2 or var3 or var4 or var5 or var6 or var7 or var8 or var9 or vara or varb or varc,close,ref(close,1),8,0),color000066;
stickline(var1 or var2 or var3 or var4 or var5 or var6 or var7 or var8 or var9 or vara or varb or varc,close,ref(close,1),7,0),color000077;
stickline(var1 or var2 or var3 or var4 or var5 or var6 or var7 or var8 or var9 or vara or varb or varc,close,ref(close,1),6,0),color000088;
stickline(var1 or var2 or var3 or var4 or var5 or var6 or var7 or var8 or var9 or vara or varb or varc,close,ref(close,1),5,0),color000099;
stickline(var1 or var2 or var3 or var4 or var5 or var6 or var7 or var8 or var9 or vara or varb or varc,close,ref(close,1),4,0),color0000aa;
stickline(var1 or var2 or var3 or var4 or var5 or var6 or var7 or var8 or var9 or vara or varb or varc,close,ref(close,1),3,0),color0000bb;
stickline(var1 or var2 or var3 or var4 or var5 or var6 or var7 or var8 or var9 or vara or varb or varc,close,ref(close,1),2,0),color0000cc;
stickline(var1 or var2 or var3 or var4 or var5 or var6 or var7 or var8 or var9 or vara or varb or varc,close,ref(close,1),1,0),color0000dd;
vard:=close<ref(close,1) and close<ref(close,2);
vare:=ref(vard,1) and close>=ref(close,1) and close<=ref(close,2);
varf:=ref(vare,1) and close<=ref(close,1) and close>=ref(close,2);
var10:=ref(varf,1) and close>=ref(close,1) and close<=ref(close,2);
var11:=ref(var10,1) and close<=ref(close,1) and close>=ref(close,2);
var12:=ref(var11,1) and close>=ref(close,1) and close<=ref(close,2);
var13:=ref(var12,1) and close<=ref(close,1) and close>=ref(close,2);
var14:=ref(var13,1) and close>=ref(close,1) and close<=ref(close,2);
var15:=ref(var14,1) and close<=ref(close,1) and close>=ref(close,2);
var16:=ref(var15,1) and close>=ref(close,1) and close<=ref(close,2);
var17:=ref(var16,1) and close<=ref(close,1) and close>=ref(close,2);
var18:=ref(var17,1) and close>=ref(close,1) and close<=ref(close,2);
stickline(vard or vare or varf or var10 or var11 or var12 or var13 or var14 or var15 or var16 or var17 or var18,close,ref(close,1),9,0),colorff1100;
stickline(vard or vare or varf or var10 or var11 or var12 or var13 or var14 or var15 or var16 or var17 or var18,close,ref(close,1),8,0),colorff2200;
stickline(vard or vare or varf or var10 or var11 or var12 or var13 or var14 or var15 or var16 or var17 or var18,close,ref(close,1),7,0),colorff3300;
stickline(vard or vare or varf or var10 or var11 or var12 or var13 or var14 or var15 or var16 or var17 or var18,close,ref(close,1),6,0),colorff4400;
stickline(vard or vare or varf or var10 or var11 or var12 or var13 or var14 or var15 or var16 or var17 or var18,close,ref(close,1),5,0),colorff5500;
stickline(vard or vare or varf or var10 or var11 or var12 or var13 or var14 or var15 or var16 or var17 or var18,close,ref(close,1),4,0),colorff6600;
stickline(vard or vare or varf or var10 or var11 or var12 or var13 or var14 or var15 or var16 or var17 or var18,close,ref(close,1),3,0),colorff7700;
stickline(vard or vare or varf or var10 or var11 or var12 or var13 or var14 or var15 or var16 or var17 or var18,close,ref(close,1),2,0),colorff8800;
stickline(vard or vare or varf or var10 or var11 or var12 or var13 or var14 or var15 or var16 or var17 or var18,close,ref(close,1),1,0),colorff9900;
var19:=(ref(vard or vare or varf or var10 or var11 or var12 or var13 or var14 or var15 or var16 or var17 or var18,1)) and var1;
stickline(var19,ref(close,1),ref(close,2),9,0),color225588;
stickline(var19,ref(close,1),ref(close,2),8,0),color225588;
stickline(var19,ref(close,1),ref(close,2),7,0),color226699;
stickline(var19,ref(close,1),ref(close,2),6,0),color3377aa;
stickline(var19,ref(close,1),ref(close,2),5,0),color3388bb;
stickline(var19,ref(close,1),ref(close,2),4,0),color4499cc;
stickline(var19,ref(close,1),ref(close,2),3,0),color44aadd;
stickline(var19,ref(close,1),ref(close,2),2,0),color55bbee;
stickline(var19,ref(close,1),ref(close,2),1,0),color66ccff;
var1a:=(ref(var1 or var2 or var3 or var4 or var5 or var6 or var7 or var8 or var9 or vara or varb or varc,1)) and vard;
stickline(var1a,ref(close,1),ref(close,2),9,0),color006600;
stickline(var1a,ref(close,1),ref(close,2),8,0),color007700;
stickline(var1a,ref(close,1),ref(close,2),7,0),color008800;
stickline(var1a,ref(close,1),ref(close,2),6,0),color009900;
stickline(var1a,ref(close,1),ref(close,2),5,0),color00aa00;
stickline(var1a,ref(close,1),ref(close,2),4,0),color00bb00;
stickline(var1a,ref(close,1),ref(close,2),3,0),color00cc00;
stickline(var1a,ref(close,1),ref(close,2),2,0),color00dd00;
stickline(var1a,ref(close,1),ref(close,2),1,0),color00ee00;
yyzq:=(sysparam(3)-sysparam(2))/1.6;
fill:=barscount(c)>sysparam(2) and barscount(c)<if(sysparam(3)-sysparam(2)>10,sysparam(2)+intpart(yyzq/2),10);
pich:=refx(hhv(sysparam(4),yyzq),yyzq);
picl:=refx(llv(sysparam(5),yyzq),yyzq);
fillrgn(ref(fill,1) and refx(fill,1),refx(pich,yyzq),refx(picl,yyzq)),color3a630e;
zhh:=h;
zgf1 := zhh/1.0809;zgf2 := zhh/1.1618;
zgf3 := zhh/1.0809/1.1618; zgf4 := zhh/1.1618/1.1618;
drawtextex(sysparam(3)=barpos,0,2,106,' 【第一回调位】:'+numtostr(zgf1[sysparam(1)],2)+'-'+numtostr(zgf2[sysparam(1)],2)+''),linethick2,colorff00ff;
drawtextex(sysparam(3)=barpos,0,2,124,' 【第二回调位】:'+numtostr(zgf3[sysparam(1)],2)+'-'+numtostr(zgf4[sysparam(1)],2)+''),linethick2,colorff00ff;
zll:=l;
zgfb1:=zll*1.0809; zgfb2 := zll*1.1618; zgfb3 := zll*1.0809*1.1618;zgfb4 := zll*1.1618*1.1618;
drawtextex(sysparam(3)=barpos,0,2,148,' 【第一压力位】:'+numtostr(zgfb1[sysparam(1)],2)+''+'--'+numtostr(zgfb2[sysparam(1)],2)+''),linethick2,colorff00ff;
drawtextex(sysparam(3)=barpos,0,2,166,' 【第二压力位】:'+numtostr(zgfb3[sysparam(1)],2)+''+'--'+numtostr(zgfb4[sysparam(1)],2)+''),linethick2,colorff00ff;
drawtextex(sysparam(3)=barpos,0,2,190,' 【起点价:'+numtostr(zll[sysparam(1)],2)+'】'),colorff00ff;
drawtextex(sysparam(3)=barpos,0,80,190,' 【回点价:'+numtostr(zhh[sysparam(1)],2)+'】'),colorff00ff;
drawtextex(1,10,10,15,'■所属板块:'+blkname),color00ff00;
drawtextex(1,0,23,30,stklabel+' '+stkname),linethick1,colorfffffc;
rh:=h-l;
r:=dynainfo(14)*100;
drawtextex(1,0,10,45,'日高低差:'+numtostr(rh,2)+'元'),colorwhite;
金叉:=barslast(filter(cross("kd.k","kd.d") and "kd.d"<30,13));
主力吸筹区:=if(金叉>0 and 金叉<61,金叉,0);
drawtextex(1,0,10,60,'主力建仓天数:'+numtostr(主力吸筹区,0)+'天'),colorfffffc,linethick1;
ma30:=ema(close,30);
ma60:=ema(close,60);
ma125:=ema(close,125);
ma250:=ema(close,250);
a1:=ma30[sysparam(1)];
ra1:=ma30[sysparam(1)-1];
jt1:=if(a1>ra1,'↑','↓');
sz1:='\n\n\n \n\n\n\n\n\n\n\n \n\n\n\n\n\n\n\nma30: '+numtostr(ma30[sysparam(1)],2)+jt1;
drawtext(barpos=sysparam(2),close,sz1),align4,colorgreen;
a2:=ma60[sysparam(1)];
ra2:=ma60[sysparam(1)-1];
jt2:=if(a2>ra2,'↑','↓');
sz2:='\n\n\n \n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\nma60: '+numtostr(ma60[sysparam(1)],2)+jt2;
drawtext(barpos=sysparam(2),close,sz2),align4,colorgreen;
a3:=ma125[sysparam(1)];
ra3:=ma125[sysparam(1)-1];
jt3:=if(a3>ra3,'↑','↓');
sz3:='\n\n\n \n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\nma125:'+numtostr(ma125[sysparam(1)],2)+jt3;
drawtext(barpos=sysparam(2),close,sz3),align4,colorgreen;
a4:=ma250[sysparam(1)];
ra4:=ma250[sysparam(1)-1];
jt4:=if(a4>ra4,'↑','↓');
sz4:='\n\n\n \n\n\n\n \n\n\n\n\n\n\n\n\n\n\n\n\n\n \nma250:'+numtostr(ma250[sysparam(1)],2)+jt4;
drawtext(barpos=sysparam(2),close,sz4),align4,colorgreen;
{换手100%}
svol:=intpart(sum(v,0)/capital);
tj0:=svol>ref(svol,1) or barssince(close)=0;
s1:=barslast(tj0)+1,precision,colorwhite;//时间1
tj2:=s1<ref(s1,1);//取点
s2:=if(tj2,ref(s1,1)+1,s1),precision,colormagenta;//时间2
s3:=sum(tj2,0),colormagenta;
阶段总额(万元):=sum(amount/10000,s2)*100,precision,linethick,color008bfa;//换手100%成交额
阶段总量(手):=sum(v,s2)*100,precision,linethick,colorcyan;//换手100%成交量
阶段成本(元):=(阶段总额(万元)/(阶段总量(手)/100)),linethick,precision2,colorred;
drawtextex(1,0,10,75,'■阶段平均成本:'+numtostr(阶段成本(元)[sysparam(1)],2)+'(元)'),align4,colorcyan;
aa3:=sumbars(vol,capital);
换手成本:=if(capital>0,sum(amount,aa3)/sum(vol,aa3)/100,ema(close,120));{100%换手平均成本线};
drawtextex(1,0,10,90,'换手成本:'),coloryellow;
drawtextex(1,0,70,90,numtostr(换手成本,2)),coloryellow;
drawtext(barpos=sysparam(2),high,'山水先生推荐//■新宝塔线■//(飞狐源码)'
)align4,coloryellow;
hh:=sysparam(4);ll:=sysparam(5);
x:=ll-(hh-ll+mindiff)/5;
y:=hhv(vol,sysparam(3)-sysparam(2)+1);
yvb:=y[sysparam(3)]/(ll-x+mindiff);
z:=vol/yvb+x;
stickline(close>ref(close,1),x,z,9,0) ,coloraa;
stickline(close>ref(close,1),x,z,8,0) ,color11bb;
stickline(close>ref(close,1),x,z,7,0) ,color22cc;
stickline(close>ref(close,1),x,z,6,0) ,color33dd;
stickline(close>ref(close,1),x,z,5,0) ,color44ee;
stickline(close>ref(close,1),x,z,4,0) ,color55ff;
stickline(close>ref(close,1),x,z,2.2,0) ,color66ff;
stickline(close>ref(close,1),x,z,1.5,0) ,color77ff;
stickline(close<=ref(close,1),x,z,9,0),coloraa00;
stickline(close<=ref(close,1),x,z,8,0),colorbb11;
stickline(close<=ref(close,1),x,z,7,0),colorcc22;
stickline(close<=ref(close,1),x,z,6,0),colordd33;
stickline(close<=ref(close,1),x,z,5,0),coloree44;
stickline(close<=ref(close,1),x,z,4,0),colorff55;
stickline(close<=ref(close,1),x,z,2.5,0),colorff66;
stickline(close<=ref(close,1),x,z,1.5,0),colorff77;
上一指标公式:RSI顶底公式 飞狐RSI指标 源码
下一指标公式:能量公式 飞狐能量指标 源码
☉ 好公式网发布的指标公式主要用于软件技术面分析,仅供参考,勿用于实际操作,据此操作风险自负!
☉ 解压密码:www.goodgongshi.com 就是好公式网域名,希望大家看清楚,切勿输错。
☉ tnc和tni格式指标公式,仅可以用通达信软件引入使用,例如可以用通达信软件引入使用指标公式;
☉ tne格式指标公式,仅可以用通达信软件公式编辑器5.0版导入,高版本兼容低版本;
☉ fnc格式指标公式,可以用大智慧软件新一代高速行情分析系统股票软件使用,少部分可以用分析家软件引入使用;
☉ alg格式指标公式,仅仅可以用飞狐交易师软件引入使用;exp格式指标公式,仅可以用大智慧经典版软件引入使用;
☉ hxf格式指标公式,仅可以用同花顺软件引入使用。
☉ 如果您发现下载软件链接错误,请联系管理员报告错误。
☉ 好公式网欢迎各位网友帮忙宣传转发本站网址,有您的支持,我们会做得更好!
☉ 本文山水先生■新宝塔线■公式 飞狐宝塔指标 源码仅供学习研究。