aaa:=refdate(hhv(h,130),date);
bbb:=refdate(llv(l,130),date);
drawband(aaa,rgb(0,80,80),bbb,rgb(00,00,00));
mid:=(3*close+low+open+high)/6;
dkx:(20*mid+19*ref(mid,1)+18*ref(mid,2)+17*ref(mid,3)+16*ref(mid,4)
+15*ref(mid,5)+14*ref(mid,6)+13*ref(mid,7)+12*ref(mid,8)+11*ref(mid,9)
+10*ref(mid,10)+9*ref(mid,11)+8*ref(mid,12)+7*ref(mid,13)+6*ref(mid,14)
+5*ref(mid,15)+4*ref(mid,16)+3*ref(mid,17)
+2*ref(mid,18)+ref(mid,20))/210;
dkma:ma(dkx,6);{}
drawband(dkx,rgb(128,128,0),dkma,rgb(0,0,128));
{红}
stickline(c>o,c,o,3,0),color000077;
stickline(c>o,c,o,2,0),color000099;
stickline(c>o,c,o,1,0),color0000bb;
stickline(c>o,h,l,0,0),color0000ff;
{绿}
stickline(c<o,c,o,3,0),color007700;
stickline(c<o,c,o,2,0),color009900;
stickline(c<o,c,o,1,0),color00bb00;
stickline(c<o,h,l,0,0),color00ff00;
套牢盘%:=100*(1-winner(c));
获利盘%:=100*winner(c);
集中度90%:=(cost(95)-cost(5))/(cost(100))*100;
集中度70%:=(cost(85)-cost(15))/(cost(100))*100;
平均成本:=cost(50);
主力成本:=cost(4);
短期压力:=hhv(h,20);
短期支撑:=llv(l,20);
pt:=ref(high,1)-ref(low,1);
中价:=(h+l+c)/3;
近高:=2*中价-low;
近低:=2*中价-high;
最高:=中价+pt;
最低:=中价-pt;
t1:=const(if(获利盘%,1,0));
t2:=const(if(套牢盘%,1,0));
t3:=const(if(集中度90%,1,0));
t4:=const(if(集中度70%,1,0));
t5:=const(if(平均成本,1,0));
t6:=const(if(主力成本,1,0));
t7:=const(if(短期压力,1,0));
t8:=const(if(短期支撑,1,0));
t9:=const(if(中价,1,0));
t10:=const(if(近高,1,0));
t11:=const(if(近低,1,0));
t12:=const(if(最高,1,0));
t13:=const(if(最低,1,0));
ts1:=if(t1=1,0+0.03,0);
ts2:=if(t2=1,ts1+0.03,ts1);
ts3:=if(t3=1,ts2+0.05,ts2);
ts4:=if(t4=1,ts3+0.03,ts3);
ts5:=if(t5=1,0+0.03,0);
ts6:=if(t6=1,ts5+0.03,ts5);
ts7:=if(t7=1,ts6+0.05,ts6);
ts8:=if(t8=1,ts7+0.03,ts7);
ts9:=if(t9=1,0+0.03,0);
ts10:=if(t10=1,ts9+0.05,ts9);
ts11:=if(t11=1,ts10+0.03,ts10);
ts12:=if(t12=1,ts11+0.05,ts11);
ts13:=if(t13=1,ts12+0.03,ts12);
n1:=115;
n2:=80;
n3:=45;
drawtext(t1=1 and currbarscount=n1 and period=5,aaa-(aaa*ts1),'【获利盘%】'),colorred;
drawtext(t2=1 and currbarscount=n1 and period=5,aaa-(aaa*ts2),'【套牢盘%】'),color00ff00;
drawtext(t3=1 and currbarscount=n1 and period=5,aaa-(aaa*ts3),'【90%成本集中度】'),coloryellow;
drawtext(t4=1 and currbarscount=n1 and period=5,aaa-(aaa*ts4),'【70%成本集中度】'),color008fff;
drawtext(t5=1 and currbarscount=n2 and period=5,aaa-(aaa*ts5),'【平均成本】'),colorff99ff;
drawtext(t6=1 and currbarscount=n2 and period=5,aaa-(aaa*ts6),'【主力成本】'),colorff00ff;
drawtext(t7=1 and currbarscount=n2 and period=5,aaa-(aaa*ts7),'【短期压力】'),colorffffbf;
drawtext(t8=1 and currbarscount=n2 and period=5,aaa-(aaa*ts8),'【短期支撑】'),colorf0f000;
drawtext(t9=1 and currbarscount=n3 and period=5,aaa-(aaa*ts9),'【中价】'),colorwhite;
drawtext(t10=1 and currbarscount=n3 and period=5,aaa-(aaa*ts10),'【近高】'),colorffffbf;
drawtext(t11=1 and currbarscount=n3 and period=5,aaa-(aaa*ts11),'【近低】'),colorf0f000;
drawtext(t12=1 and currbarscount=n3 and period=5,aaa-(aaa*ts12),'【最高】'),colorff99ff;
drawtext(t13=1 and currbarscount=n3 and period=5,aaa-(aaa*ts13),'【最低】'),colorff00ff;
drawnumber(t1=1 and currbarscount=n1-12 and period=5,aaa-(aaa*ts1),const(获利盘%)),colorred;
drawnumber(t2=1 and currbarscount=n1-12 and period=5,aaa-(aaa*ts2),const(套牢盘%)),color00ff00;
drawnumber(t3=1 and currbarscount=n1-18 and period=5,aaa-(aaa*ts3),const(集中度90%)),coloryellow;
drawnumber(t4=1 and currbarscount=n1-18 and period=5,aaa-(aaa*ts4),const(集中度70%)),color008fff;
drawnumber(t5=1 and currbarscount=n2-12 and period=5,aaa-(aaa*ts5),const(平均成本)),colorff99ff;
drawnumber(t6=1 and currbarscount=n2-12 and period=5,aaa-(aaa*ts6),const(主力成本)),colorff00ff;
drawnumber(t7=1 and currbarscount=n2-12 and period=5,aaa-(aaa*ts7),const(短期压力)),colorffffbf;
drawnumber(t8=1 and currbarscount=n2-12 and period=5,aaa-(aaa*ts8),const(短期支撑)),colorf0f000;
drawnumber(t9=1 and currbarscount=n3-9 and period=5,aaa-(aaa*ts9),const(中价)),colorwhite;
drawnumber(t10=1 and currbarscount=n3-9 and period=5,aaa-(aaa*ts10),const(近高)),colorffffbf;
drawnumber(t11=1 and currbarscount=n3-9 and period=5,aaa-(aaa*ts11),const(近低)),colorf0f000;
drawnumber(t12=1 and currbarscount=n3-9 and period=5,aaa-(aaa*ts12),const(最高)),colorff99ff;
drawnumber(t13=1 and currbarscount=n3-9 and period=5,aaa-(aaa*ts13),const(最低)),colorff00ff;
hh0:=const(hhv(h,75));
ll0:=const(llv(l,75));
mm0:=const((hh0+ll0)/2);
hl0:=const(if(const(c)>=mm0,ll0-(hh0-ll0)*0.2,hh0+(hh0-ll0)*0.2));
hh1:=if(const(c)<mm0,hh0*1.01,hl0);
ll1:=if(const(c)>=mm0,ll0*0.99,hl0);
hl1:=(hh1+ll1)/2,colorffffff;
stickline("macd.macd">0,"macd.macd"+hl1,hl1,2,1),color00ffff;
stickline("macd.macd">0 and "macd.macd">ref("macd.macd",1),
"macd.macd"+hl1,hl1,2,0),colorff00ff;
stickline("macd.macd"<0,"macd.macd"+hl1,hl1,2,0),color00ffff;
stickline("macd.macd"<0 and "macd.macd">ref("macd.macd",1),
"macd.macd"+hl1,hl1,2,1),colorff00ff;
上一指标公式:抄底专用次日大涨指标详解 通达信次日大涨
下一指标公式:四季彩虹指标详解 通达信彩虹
☉ 好公式网发布的指标公式主要用于软件技术面分析,仅供参考,勿用于实际操作,据此操作风险自负!
☉ 解压密码:www.goodgongshi.com 就是好公式网域名,希望大家看清楚,切勿输错。
☉ tnc和tni格式指标公式,仅可以用通达信软件引入使用,例如可以用通达信软件引入使用指标公式;
☉ tne格式指标公式,仅可以用通达信软件公式编辑器5.0版导入,高版本兼容低版本;
☉ fnc格式指标公式,可以用大智慧软件新一代高速行情分析系统股票软件使用,少部分可以用分析家软件引入使用;
☉ alg格式指标公式,仅仅可以用飞狐交易师软件引入使用;exp格式指标公式,仅可以用大智慧经典版软件引入使用;
☉ hxf格式指标公式,仅可以用同花顺软件引入使用。
☉ 如果您发现下载软件链接错误,请联系管理员报告错误。
☉ 好公式网欢迎各位网友帮忙宣传转发本站网址,有您的支持,我们会做得更好!
☉ 本文主力追踪 主图 通达信主图主力仅供学习研究。