量价积分统计和划线功能
{建立两个公式} {001} c1:close; o1:open; h1:high; l1:low; vvla:vol; {日周叠加2} 流通盘:capital/1000000,colorgreen,linethick0; 上市年: ref(year,barscount(c)-1),linethick0; a1:=ref(h,5)=hhv(h,2*5+1); b1:=filter(a1,5); c1:=backset(b1,5+1); d1:=filter(c1,5); a2:=ref(l,5)=llv(l,2*5+1); b2:=filter(a2,5); c2:=backset(b2,5+1); d2:=filter(c2,5); e1:=(ref(llv(l,2*5),1)+ref(hhv(h,2*5),1))/2; e2:=(h+l)/2; h1:=(d1 and not(d2 and e1>=e2)) or barstatus=2 or barscount(c)=1; l1:=(d2 and not(d1 and e1<e2)); h2:=d1 and not(d2 and e1>=e2); x1:=ref(barslast(h1),1)+1; f1:=backset(h1 and count(l1,x1)>0,llvbars (if(l1,l,10000),x1)); g1:=f1>ref(f1,1); i1:=backset(g1,2); ld:=i1>ref(i1,1); l2:=ld or barstatus=2 or barscount(c)=1; x2:=ref(barslast(l2),1)+1; f2:=backset(l2 and count(h2,x2)>0,hhvbars (if(h2,h,0),x2)); g2:=f2>ref(f2,1); i2:=backset(g2,2); hd:=i2>ref(i2,1); r1:=backset(barstatus=2,barslast(hd)+1); s1:=r1>ref(r1,1); t1:=backset(barstatus=2,barslast(ld)+1); u1:=t1>ref(t1,1); r2:=backset(s1,ref(barslast(hd),1)+2); s2:=r2>ref(r2,1); t2:=backset(u1,ref(barslast(ld),1)+2); u2:=t2>ref(t2,1); 短期压力:drawline(s2,h,s1,h,1),colorred; 短期支撑:drawline(u2,l,u1,l,1),colorgreen; hh1:=if(s2,h,ref(h,barslast(s2))); hh2:=if(s1,h,ref(h,barslast(s1))); ll1:=if(u2,l,ref(l,barslast(u2))); ll2:=if(u1,l,ref(l,barslast(u1))); 上线:hh1+(hh2-hh1)*barslast(s2)/(barslast(s2)-barslast(s1)),linethick0; 下线:ll1+(ll2-ll1)*barslast(u2)/(barslast(u2)-barslast(u1)),linethick0; ccc1:="001.c1#week"; ooo1:="001.o1#week"; hhh1:="001.h1#week"; lll1:="001.l1#week"; vvar1:=if(weekday=3,hhh1,ccc1); vvar2:=if(weekday=3,lll1,ooo1); stickline(ccc1>=ooo1,ooo1,ccc1,10,0),color613076; stickline(ccc1>=ooo1,vvar1,vvar2,4,0),color613076; stickline(ooo1>ccc1,ccc1,ooo1,10,0),colorfa7d32; stickline(ooo1>ccc1,vvar1,vvar2,4,0),colorfa7d32; stickline(c>=o,c,o,8,0),color0000bb; stickline(c>=o,h,l,0,0),color0000bb; stickline(c<=o,c,o,8,0),colorffff00; stickline(c<=o,h,l,0,0),colorffff00; today:=dynainfo(7)=close and dynainfo(10)=amount and (order(1)=0 and order(2)=0); ddmr:=if(today,("ddedata@bigorder"(1,2)-"ddedata@bigorder"(2,2)),(bigorder(1,2)-bigorder(2,2)))*vol/capital*100; ddmrs:=sum(ddmr,0); 小单买:=if(today,(1-"ddedata@bigorder"(1,1)),(1-bigorder(1,1))); 小单卖:=if(today,(1-"ddedata@bigorder"(2,1)),(1-bigorder(2,1))); 中单买:=if(today,("ddedata@bigorder"(1,1)-"ddedata@bigorder"(1,2)),(bigorder(1,1)-bigorder(1,2))); 中单卖:=if(today,("ddedata@bigorder"(2,1)-"ddedata@bigorder"(2,2)),(bigorder(2,1)-bigorder(2,2))); 大单买:=if(today,("ddedata@bigorder"(1,2)-"ddedata@bigorder"(1,3)),(bigorder(1,2)-bigorder(1,3))); 大单卖:=if(today,("ddedata@bigorder"(2,2)-"ddedata@bigorder"(2,3)),(bigorder(2,2)-bigorder(2,3))); 特单买:=if(today,"ddedata@bigorder"(1,3),bigorder(1,3)); 特单卖:=if(today,"ddedata@bigorder"(2,3),bigorder(2,3)); 主单买:=if(today,("ddedata@bigorder"(1,2)),bigorder(1,2)); 主单卖:=if(today,("ddedata@bigorder"(2,2)),bigorder(2,2)); 主净:=sum((主单买-主单卖),10)*amount/10000; 超净:=sum((特单买-特单卖),10)*amount/10000; 大净:=sum((大单买-大单卖),10)*amount/10000; 中净:=sum((中单买-中单卖),10)*amount/10000; 散净:=sum((小单买-小单卖),10)*amount/10000; drawtextabs(0,5,'十日各单动态'),color1199ff; drawtextabs(0,20,'主净:'+ numtostrn(主净,2)),color00ffff; drawtextabs(0,35,'超净:'+ numtostrn(超净,2)),colorff00ff; drawtextabs(0,50,'大净:'+ numtostrn(大净,2)),color00ff00; drawtextabs(0,65,'中净:'+ numtostrn(中净,2)),colorb5b5b5; drawtextabs(0,80,'散净:'+ numtostrn(散净,2)),colorff9911; 最大值:=50/(max(散净,中净,大净,超净,主净)); 散户净买:=140+abs(散净*最大值); 中户净买:=140+abs(中净*最大值); 大户净买:=140+abs(大净*最大值); 超大净买:=140+abs(超净*最大值); 主力净买:=140+abs(主净*最大值); drawrectabs(140,20,abs(主力净买),35,(if((主净 >= 0),rgb(255,0,0),rgb(0,200,0)))),color000000,layer0; drawrectabs(140,35,abs(超大净买),50,(if((超净 >= 0),rgb(255,0,0),rgb(0,200,0)))),color000000,layer0; drawrectabs(140,50,abs(大户净买),65,(if((大净 >= 0),rgb(255,0,0),rgb(0,200,0)))),color000000,layer0; drawrectabs(140,65,abs(中户净买),80,(if((中净 >= 0),rgb(255,0,0),rgb(0,200,0)))),color000000,layer0; drawrectabs(140,80,abs(散户净买),95,(if((散净 >= 0),rgb(255,0,0),rgb(0,200,0)))),color000000,layer0; 股东增减比例:=(pffin(4253,0)-pffin(4253,1))/pffin(4253,1)*100; 量价齐升:=c>ref(c,1) and v>ref(v,1); 量减价升:=c>ref(c,1) and v<ref(v,1); 量价齐跌:=c<ref(c,1) and v<ref(v,1); 量增价跌:=c<ref(c,1) and v>ref(v,1); 积分:=if(量价齐升,2,if(量减价升,1,if(量价齐跌,-1,if(量增价跌,-2,0)))); 累计计分:=sum(积分,10); drawtextrel(30,780,'股东增减比例:'+numtostrn(股东增减比例,2)),coloryellow; drawtextrel(30,850,'★量价积分:'+numtostrn(累计计分,2)),color0000ff; drawrectrel(10,750,160,900,rgb(0,0,400)); {看各单动态需在论坛下载长风老师的dde数据} drawrectabs(140,50,abs(大户净买),65,(if((大净 >= 0),rgb(255,0,0),rgb(0,200,0)))),color000000,layer0; drawrectabs(140,65,abs(中户净买),80,(if((中净 >= 0),rgb(255,0,0),rgb(0,200,0)))),color000000,layer0; drawrectabs(140,80,abs(散户净买),95,(if((散净 >= 0),rgb(255,0,0),rgb(0,200,0)))),color000000,layer0;
上一指标公式:量线买点提示公式下载 大智慧量线指标源码
☉ 好公式网发布的指标公式主要用于软件技术面分析,仅供参考,勿用于实际操作,据此操作风险自负!
☉ 解压密码:www.goodgongshi.com 就是好公式网域名,希望大家看清楚,切勿输错。
☉ tnc和tni格式指标公式,仅可以用通达信软件引入使用,例如可以用通达信软件引入使用指标公式;
☉ tne格式指标公式,仅可以用通达信软件公式编辑器5.0版导入,高版本兼容低版本;
☉ fnc格式指标公式,可以用大智慧软件新一代高速行情分析系统股票软件使用,少部分可以用分析家软件引入使用;
☉ alg格式指标公式,仅仅可以用飞狐交易师软件引入使用;exp格式指标公式,仅可以用大智慧经典版软件引入使用;
☉ hxf格式指标公式,仅可以用同花顺软件引入使用。
☉ 如果您发现下载软件链接错误,请联系管理员报告错误。
☉ 好公式网欢迎各位网友帮忙宣传转发本站网址,有您的支持,我们会做得更好!
☉ 本文量价积分统计和划线功能、让强弱趋势一目了然的主图公式下载 大智慧指标源码仅供学习研究。