通达信公式宝塔筹码主图附效果测试图指标
{ 筹码分布 }
da1:=if(130>totalbarscount,totalbarscount,130);
da:=if(currbarscount>da1,0,da1);
hi:=refdate(hhv(h,da),date);
lo:=refdate(llv(l,da),date);
c1:=if(currbarscount<=da,c,drawnull);
gz:=exp(ln(hi/lo)/10);
lh1:=sum(if(c1>=(hi/gz),v,0),da);
lh2:=sum(if(c1>=(hi/pow(gz,2)) and c1<(hi/gz),v,0),da);
lh3:=sum(if(c1>=(hi/pow(gz,3)) and c1<(hi/pow(gz,2)),v,0),da);
lh4:=sum(if(c1>=(hi/pow(gz,4)) and c1<(hi/pow(gz,3)),v,0),da);
lh5:=sum(if(c1>=(hi/pow(gz,5)) and c1<(hi/pow(gz,4)),v,0),da);
lh6:=sum(if(c1>=(hi/pow(gz,6)) and c1<(hi/pow(gz,5)),v,0),da);
lh7:=sum(if(c1>=(hi/pow(gz,7)) and c1<(hi/pow(gz,6)),v,0),da);
lh8:=sum(if(c1>=(hi/pow(gz,8)) and c1<(hi/pow(gz,7)),v,0),da);
lh9:=sum(if(c1>=(lo*gz) and c1<lo*pow(gz,2),v,0),da);
lh10:=sum(if(c1>=lo and c1<lo*gz,v,0),da);
l1:=refdate(hhv(lh1,da),date),linethick0;
l2:=refdate(hhv(lh2,da),date),linethick0;
l3:=refdate(hhv(lh3,da),date),linethick0;
l4:=refdate(hhv(lh4,da),date);
l5:=refdate(hhv(lh5,da),date);
l6:=refdate(hhv(lh6,da),date);
l7:=refdate(hhv(lh7,da),date);
l8:=refdate(hhv(lh8,da),date);
l9:=refdate(hhv(lh9,da),date);
l10:=refdate(hhv(lh10,da),date);
ss:=(l1+l2+l3+l4+l5+l6+l7+l8+l9+l10);
stickline(ceiling(da*l1/ss)*3>=currbarscount,hi*99/100,hi/gz,9,0)colorligray,linethick3;
stickline(ceiling(da*l2/ss)*3>=currbarscount,hi/pow(gz,1)*99/100,hi/pow(gz,2),9,0)colorligray,linethick3;
stickline(ceiling(da*l3/ss)*3>=currbarscount,hi/pow(gz,2)*99/100,hi/pow(gz,3),9,0)colorligray,linethick3;
stickline(ceiling(da*l4/ss)*3>=currbarscount,hi/pow(gz,3)*99/100,hi/pow(gz,4),9,0)colorligray,linethick3;
stickline(ceiling(da*l5/ss)*3>=currbarscount,hi/pow(gz,4)*99/100,hi/pow(gz,5),9,0)colorligray,linethick3;
stickline(ceiling(da*l6/ss)*3>=currbarscount,hi/pow(gz,5)*99/100,hi/pow(gz,6),9,0)colorligray,linethick3;
stickline(ceiling(da*l7/ss)*3>=currbarscount,hi/pow(gz,6)*99/100,hi/pow(gz,7),9,0)colorligray,linethick3;
stickline(ceiling(da*l8/ss)*3>=currbarscount,lo*pow(gz,2),lo*pow(gz,3)*99/100,9,0)colorligray,linethick3;
stickline(ceiling(da*l9/ss)*3>=currbarscount,lo*pow(gz,1),lo*pow(gz,2)*99/100,9,0)colorligray,linethick3;
stickline(ceiling(da*l10/ss)*3>=currbarscount,lo,lo*pow(gz,1)*99/100,9,0)colorligray,linethick3;
{宝塔线}
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),2.3,0),colorred;
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),2.3,0),colorcyan;
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; {好公式网-最好的股票公式网站 www.goodgongshi.com}
stickline(var19,ref(close,1),ref(close,2),2.3,0),coloryellow;
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),2.3,0),color008e48;
上一指标公式:通达信风云突破追副图附实际测试图指标下载
下一指标公式:通达信公式心愿副图附源码效果图指标下载
☉ 好公式网发布的指标公式主要用于软件技术面分析,仅供参考,勿用于实际操作,据此操作风险自负!
☉ 解压密码:www.goodgongshi.com 就是好公式网域名,希望大家看清楚,切勿输错。
☉ tnc和tni格式指标公式,仅可以用通达信软件引入使用,例如可以用通达信软件引入使用指标公式;
☉ tne格式指标公式,仅可以用通达信软件公式编辑器5.0版导入,高版本兼容低版本;
☉ fnc格式指标公式,可以用大智慧软件新一代高速行情分析系统股票软件使用,少部分可以用分析家软件引入使用;
☉ alg格式指标公式,仅仅可以用飞狐交易师软件引入使用;exp格式指标公式,仅可以用大智慧经典版软件引入使用;
☉ hxf格式指标公式,仅可以用同花顺软件引入使用。
☉ 如果您发现下载软件链接错误,请联系管理员报告错误。
☉ 好公式网欢迎各位网友帮忙宣传转发本站网址,有您的支持,我们会做得更好!
☉ 本文通达信公式宝塔筹码主图附效果测试图指标下载仅供学习研究。