一套精品饼图型超赢实时监控图指标公式原码(附图+使用说明)
-
相关简介:特发一套我自用的饼图型超赢实时监控图原码. 图型原码可看到(主力持仓比例)增减数,而拄图只能看到主力持仓比例,看不到(主力持仓)增减数, 如600158,600220,600127,600093,601727,(指用深圳模板,理想超赢模板看沪市),还有些股票超大, 大户,中户(持仓比例)增减数为负数,看不到(持仓)增减数,(指用深圳模板,理想超赢模板看沪市), 而有些股票散户(持仓比例)过百,看不到(持仓)增减数,(指用深圳模板,理想超赢模板看沪市). 故发此套原码,以表来理想论坛近1年的谢意.
-
文章来源:择股网作者:股海网发布时间:2009-09-24浏览次数:
特发一套我自用的饼图型超赢实时监控图原码.
图型原码可看到(主力持仓比例)增减数,而拄图只能看到主力持仓比例,看不到(主力持仓)增减数,
如600158,600220,600127,600093,601727,(指用深圳模板,理想超赢模板看沪市),还有些股票超大,
大户,中户(持仓比例)增减数为负数,看不到(持仓)增减数,(指用深圳模板,理想超赢模板看沪市),
而有些股票散户(持仓比例)过百,看不到(持仓)增减数,(指用深圳模板,理想超赢模板看沪市).
故发此套原码,以表来理想论坛近1年的谢意.谢谢各位老师和学长,谢谢各位版主,也谢谢陆叶青朋友
发图核对数据.祝愿大家节日快乐!
感觉好加分,顶兄弟一把,
★说一下建模板操作过程,点TOP图表右上角"设"字,出现提示后,点"新建指标",复制粘贴公式,注意公式
最后一行有没有带'.....'字句,必须删除到左边线顶端,否则有提示...通不过.复制公式名称.
复制'◆◆当天沪市综合(超赢分类统计)◆◆饼图'到公式描述中,这都可自取名称.测试完成后,
●千万别望了在"饼图"二字前空圆中点一下,最后按"确认"即可.
★再说一下,因为各人的模板大小不同,修改方法,上下移动分割线,如果还不行,点"设"字,点"修改指标",
将"DRAWTEXTABS(140,4,'分 类'),COLORFFFFFF;"中140进行修改,数字改小望前,改大望后,一般10一移动,
按"确认",看一下位置,不行,就重复上面动作.到行为止.按可行数据,修改后面的数据,即可.
★提示一下,先建深圳或理想模板,因为沪市模板公式中有TOP涵数会自动屏蔽,所以可按先建的深圳或
理想模板数据进行修改,直接建成.
★提示一下,公式中N:=1;是当天的监控模板,如果改成3或5,可建3天或5天的监控模板.
★模板中散户,中户,大户,超大,主力的颜色是根据盘中趋势(盘中趋势不可调)而定颜色.
★以下是理想模板原码,因为要沪深合用,有些持仓比例负数,故用双色变色显示,前面颜色为正,
后面颜色为负,数据有显示,主力前面颜色,表示为大户+超大等于主力.最后别望点"饼图".
★可用于理想数据包.
- {理想当天 择股网 www.zegu.cn 整理}
- {公式描述:★当天理想综合(超赢分类统计)★饼图}
- DRAWTEXTABS(0, 0,''+ YEAR+'/'+MONTH+'/'+DAY+' '+STKNAME),COLOR00FFFF;
- N:=1;
- HS:=vol/capital;
- TODAY:=DYNAINFO(7)=CLOSE and DYNAINFO(10)=AMOUNT; {判断是否当天}
- DD1:=BIGORDER(1,3)-BIGORDER(2,3);
- DD2:="DDEDATA@BIGORDER"(1,3)-"DDEDATA@BIGORDER"(2,3);
- CD:=IF(TODAY,DD2,DD1);
- 超大a:=HS*CD*100;
- 超大增减:=SUM(超大a,N);
- 超大持仓:= 25+Sum(超大a,0);
- 超大净额:=SUM((CD*AMOUNT/10000),N);
- DD3:=((BIGORDER(1,2)-BIGORDER(1,3))-(BIGORDER(2,2)-BIGORDER(2,3)));
- DD4:=(("DDEDATA@BIGORDER"(1,2)-"DDEDATA@BIGORDER"(1,3))-("DDEDATA@BIGORDER"(2,2)-"DDEDATA@BIGORDER"(2,3)));
- DD:=IF(TODAY,DD4,DD3);
- 大户a:=HS*DD*100;
- 大户增减:=SUM(大户a,N);
- 大户持仓:=25+Sum(大户a,0);
- 大户净额:=SUM((DD*AMOUNT/10000),N);
- DD5:=(BIGORDER(1,1)-BIGORDER(2,1))-(BIGORDER(1,2)-BIGORDER(2,2));
- DD6:=("DDEDATA@BIGORDER"(1,1)-"DDEDATA@BIGORDER"(2,1))-("DDEDATA@BIGORDER"(1,2)-"DDEDATA@BIGORDER"(2,2));
- ZD:=IF(TODAY,DD6,DD5);
- 中户a:=HS*ZD*100;
- 中户增减:=SUM(中户a,N);
- 中户持仓:= 25+Sum(中户a,0);
- 中户净额:=SUM((ZD*AMOUNT/10000),N);
- DD7:=(1-BIGORDER(1,1))-(1-BIGORDER(2,1));
- DD8:=(1-"DDEDATA@BIGORDER"(1,1))-(1-"DDEDATA@BIGORDER"(2,1));
- XD:=IF(TODAY,DD8,DD7);
- 散户a:=HS*XD*100;
- 散户增减:=SUM(散户a,N);
- 散户持仓:= 25+Sum(散户a,0);
- 散户净额:=SUM((XD*AMOUNT/10000),N);
- 主力:=(超大a+大户a);
- 主力增减:=(超大a+大户a);
- 主力持仓:=(超大持仓+大户持仓);
- 主力净额:=(超大净额+大户净额);
- {以下显示饼图}
- 散户:=散户持仓;
- 中户:=中户持仓;
- 大户:=大户持仓;
- 超大:=超大持仓;
- 散户,COLORFF9911;
- 中户,COLOR999999;
- -中户,COLORFEDCBA;
- 大户,COLOR00FF00;
- -大户,COLOR00A800;
- 超大,COLORFF11FF;
- -超大,COLOR5B5BFF;
- DRAWTEXTABS(140,4,'分 类'),COLORFFFFFF;
- DRAWTEXTABS(140,20,'■散户'),COLORFF9911;
- DRAWTEXTABS(135,36,'■'),COLOR999999;{正}
- DRAWTEXTABS(145,36,'■中户'),COLORFEDCBA;{负}
- DRAWTEXTABS(135,52,'■'),COLOR00FF00;{正}
- DRAWTEXTABS(145,52,'■大户'),COLOR00A800;{负}
- DRAWTEXTABS(135,68,'■'),COLORFF11FF;{正}
- DRAWTEXTABS(145,68,'■超大'),COLOR5B5BFF;{负}
- DRAWTEXTABS(135,84,'■'),COLOR11FF11;
- DRAWTEXTABS(145,84,'■主力'),COLORFF11FF;
- DRAWTEXTABS(135,100,'SV大资金'),COLOR11FFFF;
- DRAWTEXTABS(185,4,'持仓%'),COLOR1199FF;
- DRAWTEXTABS(185,22,NUMTOSTRN(散户持仓,2)),COLOR1199FF;
- DRAWTEXTABS(185,36,NUMTOSTRN(中户持仓,2)),COLOR1199FF;
- DRAWTEXTABS(185,52,NUMTOSTRN(大户持仓,2)),COLOR1199FF;
- DRAWTEXTABS(185,68,NUMTOSTRN(超大持仓,2)),COLOR1199FF;
- DRAWTEXTABS(185,84,NUMTOSTRN(主力持仓,2)),COLOR1199FF;
- DRAWTEXTABS(185,100,NUMTOSTRN(主力持仓,2)),COLOR1199FF;
- DRAWTEXTABS(230,4,'增减%'),COLORFFFF00;
- DRAWTEXTABS(230,20,NUMTOSTRN(散户增减,2)),COLORFFFF00;
- DRAWTEXTABS(230,36,NUMTOSTRN(中户增减,2)),COLORFFFF00;
- DRAWTEXTABS(230,52,NUMTOSTRN(大户增减,2)),COLORFFFF00;
- DRAWTEXTABS(230,68,NUMTOSTRN(超大增减,2)),COLORFFFF00;
- DRAWTEXTABS(230,84,NUMTOSTRN(主力增减,2)),COLORFFFF00;
- DRAWTEXTABS(230,100,NUMTOSTRN(主力增减,2)),COLORFFFF00;
- DRAWTEXTABS(270,4,'净额(万)'),COLOR00FFFF;
- DRAWTEXTABS(270,20,numtostrn(散户净额,2)),COLOR00FFFF;
- DRAWTEXTABS(270,36,numtostrn(中户净额,2)),COLOR00FFFF;
- DRAWTEXTABS(270,52,numtostrn(大户净额,2)),COLOR00FFFF;
- DRAWTEXTABS(270,68,numtostrn(超大净额,2)),COLOR00FFFF;
- DRAWTEXTABS(270,84,numtostrn(主力净额,2)),COLOR00FFFF;
- DRAWTEXTABS(270,100,numtostrn(主力净额,2)),COLOR00FFFF;
★以下是深圳模板原码,因为沪市新股无TOP数据,而不能用沪市模板,可用本模板替代,因而要沪深合用,
会有些持仓比例负数,故用双色变色显示,前面颜色为正,后面颜色为负,数据有显示,主力前面颜色,
表示为大户+超大等于主力.最后别望点"饼图".
★需L2行情支持,可用于雨扬版,小百股民版,可用于有DDE数据的盘后分析.
- {深圳当天 择股网 www.zegu.cn 整理}
- {公式描述:★当天深圳综合(超赢分类统计)★饼图}
- N:=1;
- DRAWTEXTABS(0, 0,''+ YEAR+'/'+MONTH+'/'+DAY+' '+STKNAME),COLOR00FFFF;
- HS:=vol/capital;
- ZL:=(BIGORDER(1,2)-BIGORDER(2,2));
- 主力a:=HS*ZL*100;
- 主力增减:=SUM(主力a,N);
- 主力持仓:= 50+Sum(主力a,0);
- 主力净额:=SUM((ZL*AMOUNT/10000),N);
- CD:=BIGORDER(1,3)-BIGORDER(2,3);
- 超大a:=HS*CD*100;
- 超大增减:=SUM(超大a,N);
- 超大持仓:= 25+Sum(超大a,0);
- 超大净额:=SUM((CD*AMOUNT/10000),N);
- DD:=(BIGORDER(1,2)-BIGORDER(2,2))-(BIGORDER(1,3)-BIGORDER(2,3));
- 大户a:=HS*DD*100;
- 大户增减:=SUM(大户a,N);
- 大户持仓:=25+Sum(大户a,0);
- 大户净额:=SUM((DD*AMOUNT/10000),N);
- ZD:=(BIGORDER(1,1)-BIGORDER(2,1))-(BIGORDER(1,2)-BIGORDER(2,2));
- 中户a:=HS*ZD*100;
- 中户增减:=SUM(中户a,N);
- 中户持仓:= 25+Sum(中户a,0);
- 中户净额:=SUM((ZD*AMOUNT/10000),N);
- XD:=(1-BIGORDER(1,1))-(1-BIGORDER(2,1));
- 散户a:=HS*XD*100;
- 散户增减:=SUM(散户a,N);
- 散户持仓:= 25+Sum(散户a,0);
- 散户净额:=SUM((XD*AMOUNT/10000),N);
- {以下显示饼图}
- 散户:=散户持仓;
- 中户:=中户持仓;
- 大户:=大户持仓;
- 超大:=超大持仓;
- {主力:=主力持仓;}
- 散户,COLORFF9911;
- 中户,COLOR999999;
- -中户,COLORFEDCBA;
- 大户,COLOR00FF00;
- -大户,COLOR00A800;
- 超大,COLORFF11FF;
- -超大,COLOR5B5BFF;
- {主力,COLOR00FFFF;}
- DRAWTEXTABS(140,4,'分 类'),COLORFFFFFF;
- DRAWTEXTABS(140,20,'■散户'),COLORFF9911;
- DRAWTEXTABS(135,36,'■'),COLOR999999;{正}
- DRAWTEXTABS(145,36,'■中户'),COLORFEDCBA;{负}
- DRAWTEXTABS(135,52,'■'),COLOR00FF00;{正}
- DRAWTEXTABS(145,52,'■大户'),COLOR00A800;{负}
- DRAWTEXTABS(135,68,'■'),COLORFF11FF;{正}
- DRAWTEXTABS(145,68,'■超大'),COLOR5B5BFF;{负}
- DRAWTEXTABS(135,84,'■'),COLOR11FF11;
- DRAWTEXTABS(145,84,'■主力'),COLORFF11FF;
- DRAWTEXTABS(135,100,'SV大资金'),COLOR11FFFF;
- DRAWTEXTABS(185,4,'持仓%'),COLOR1199FF;
- DRAWTEXTABS(185,22,NUMTOSTRN(散户持仓,2)),COLOR1199FF;
- DRAWTEXTABS(185,36,NUMTOSTRN(中户持仓,2)),COLOR1199FF;
- DRAWTEXTABS(185,52,NUMTOSTRN(大户持仓,2)),COLOR1199FF;
- DRAWTEXTABS(185,68,NUMTOSTRN(超大持仓,2)),COLOR1199FF;
- DRAWTEXTABS(185,84,NUMTOSTRN(主力持仓,2)),COLOR1199FF;
- DRAWTEXTABS(185,100,NUMTOSTRN(主力持仓,2)),COLOR1199FF;
- DRAWTEXTABS(230,4,'增减%'),COLORFFFF00;
- DRAWTEXTABS(230,20,NUMTOSTRN(散户增减,2)),COLORFFFF00;
- DRAWTEXTABS(230,36,NUMTOSTRN(中户增减,2)),COLORFFFF00;
- DRAWTEXTABS(230,52,NUMTOSTRN(大户增减,2)),COLORFFFF00;
- DRAWTEXTABS(230,68,NUMTOSTRN(超大增减,2)),COLORFFFF00;
- DRAWTEXTABS(230,84,NUMTOSTRN(主力增减,2)),COLORFFFF00;
- DRAWTEXTABS(230,100,NUMTOSTRN(主力增减,2)),COLORFFFF00;
- DRAWTEXTABS(270,4,'净额(万)'),COLOR00FFFF;
- DRAWTEXTABS(270,20,numtostrn(散户净额,2)),COLOR00FFFF;
- DRAWTEXTABS(270,36,numtostrn(中户净额,2)),COLOR00FFFF;
- DRAWTEXTABS(270,52,numtostrn(大户净额,2)),COLOR00FFFF;
- DRAWTEXTABS(270,68,numtostrn(超大净额,2)),COLOR00FFFF;
- DRAWTEXTABS(270,84,numtostrn(主力净额,2)),COLOR00FFFF;
- DRAWTEXTABS(270,100,numtostrn(主力净额,2)),COLOR00FFFF;
★以下是沪市模板原码,需L2行情支持,公式中有TOP涵数会自动屏蔽,可用于雨扬版,小百股民版,
可用于有DDE数据的盘后分析.
- {沪市当天 择股网 www.zegu.cn 整理}
- {公式描述:◆◆当天沪市综合(超赢分类统计)◆◆饼图}
- N:=1;
- DRAWTEXTABS(0, 0,''+ YEAR+'/'+MONTH+'/'+DAY+' '+STKNAME),COLOR00FFFF;
- T1:=topview(1430);
- T2:=topview(1431);
- T3:=topview(1432);
- T4:=topview(1433);
- T5:=topview(1436,0,200);
- 散:=(T1-REF(T1,1))*capital/10000*(c/if(TYPE=0,255.5,1));
- 中:=(T2-REF(T2,1))*capital/10000*(c/if(TYPE=0,255.5,1));
- 大:=(T3-REF(T3,1))*capital/10000*(c/if(TYPE=0,255.5,1));
- 超:=(T4-REF(T4,1))*capital/10000*(c/if(TYPE=0,255.5,1));
- 散户净额:=SUM((if(TYPE=0 and date<1090101,0,散)),N);
- 中户净额:=SUM((if(TYPE=0 and date<1090101,0,中)),N);
- 大户净额:=SUM((if(TYPE=0 and date<1090101,0,大)),N);
- 超大净额:=SUM((if(TYPE=0 and date<1090101,0,超)),N);
- 主力净额:=SUM((if(TYPE=0 and date<1090101,0,超+大)),N);
- 散户增减:=(T1-REF(T1,N));
- 中户增减:=(T2-REF(T2,N));
- 大户增减:=(T3-REF(T3,N));
- 超大增减:=(T4-REF(T4,N));
- 主力增减:=(T5-REF(T5,N));
- {以下显示饼图}
- 散户:=T1;
- 中户:=T2;
- 大户:=T3;
- 超大:=T4;
- 主力:=T5;
- 散户,COLORFF9911;
- 中户,COLOR999999;
- 大户,COLOR11FF11;
- 超大,COLORFF11FF;
- {主力,COLOR00FFFF;}
- {主力资金线显示}
- eye:=(BIGORDER(1,2)-BIGORDER(2,2))*vol/capital*100;
- eyes:=sum(eye,0);
- gold:=eyes+50;
- 资金线:=gold;
- 资金线增减:=资金线-ref(资金线,N);
- HS:=vol/capital;
- DD:=(BIGORDER(1,2)-BIGORDER(2,2));
- ZL:=HS*DD*100;
- 成交:=(ZL* capital) * (amount/(v*100))/10000;
- 资金线净额:=Sum(成交,N);
- DRAWTEXTABS(140,4,'分 类'),COLORFFFFFF;
- DRAWTEXTABS(140,20,'■散户'),COLORFF9911;
- DRAWTEXTABS(140,36,'■中户'),COLOR999999;
- DRAWTEXTABS(140,52,'■大户'),COLOR11FF11;
- DRAWTEXTABS(140,68,'■超大'),COLORFF11FF;
- DRAWTEXTABS(135,84,'■ 主'),COLOR11FF11;
- DRAWTEXTABS(145,84,'■ 力'),COLORFF11FF;
- DRAWTEXTABS(135,100,'SV大资金'),COLOR11FFFF;
- DRAWTEXTABS(185,4,'持仓%'),COLOR1199FF;
- DRAWTEXTABS(185,20,NUMTOSTRN(散户,2)),COLOR1199FF;
- DRAWTEXTABS(185,36,NUMTOSTRN(中户,2)),COLOR1199FF;
- DRAWTEXTABS(185,52,NUMTOSTRN(大户,2)),COLOR1199FF;
- DRAWTEXTABS(185,68,NUMTOSTRN(超大,2)),COLOR1199FF;
- DRAWTEXTABS(185,84,NUMTOSTRN(主力,2)),COLOR1199FF;
- DRAWTEXTABS(185,100,NUMTOSTRN(资金线,2)),COLOR1199FF;
- DRAWTEXTABS(230,4,'增减%'),COLORFFFF00;
- DRAWTEXTABS(230,20,NUMTOSTRN(散户增减,2)),COLORFFFF00;
- DRAWTEXTABS(230,36,NUMTOSTRN(中户增减,2)),COLORFFFF00;
- DRAWTEXTABS(230,52,NUMTOSTRN(大户增减,2)),COLORFFFF00;
- DRAWTEXTABS(230,68,NUMTOSTRN(超大增减,2)),COLORFFFF00;
- DRAWTEXTABS(230,84,NUMTOSTRN(主力增减,2)),COLORFFFF00;
- DRAWTEXTABS(230,100,NUMTOSTRN(资金线增减,2)),COLORFFFF00;
- DRAWTEXTABS(270,4,'净额(万)'),COLOR00FFFF;
- DRAWTEXTABS(270,20,numtostrn(散户净额,2)),COLOR00FFFF;
- DRAWTEXTABS(270,36,numtostrn(中户净额,2)),COLOR00FFFF;
- DRAWTEXTABS(270,52,numtostrn(大户净额,2)),COLOR00FFFF;
- DRAWTEXTABS(270,68,numtostrn(超大净额,2)),COLOR00FFFF;
- DRAWTEXTABS(270,84,numtostrn(主力净额,2)),COLOR00FFFF;
- DRAWTEXTABS(270,100,numtostrn(资金线净额,2)),COLOR00FFFF;
★以下委托统计模如果是10挡行情会统计10挡委托总量,委买,委卖,委差,委比,量比情况,
如果是15挡行情会统计15挡委托总量,委买,委卖,委差,委比,量比情况,当委差时正数红色
显示,负数时黄色显示,量比深圳没有,免费,付费通用.别望"饼图"点一下.
- {委托看盘- 择股网 www.zegu.cn 整理 公式描述:☆☆委托龙虎看盘☆☆}
- DRAWTEXTABS(0, 0,''+ YEAR+'/'+MONTH+'/'+DAY+' '+STKNAME),{COLOR00FF00;}COLORFFF00F;
- 总量:=DYNAINFO(18)+DYNAINFO(19);
- 委买:=DYNAINFO(18);
- 委卖:=DYNAINFO(19);
- 委差:=DYNAINFO(16);
- 委比:=DYNAINFO(15);
- 量比:=DYNAINFO(17);
- 委买总量:=DYNAINFO(89);
- 委卖总量:=DYNAINFO(90);
- 买比:=(委买总量/(委买总量+委卖总量))*100;
- 总量,COLOR1870E5;
- 委买,COLOR008000;
- 委卖,COLORBFBF3F;
- 委差,COLORFF00FF;
- (-委差),COLOR00FFFF;
- 委比,COLOR0000FF;
- 量比,COLOR00FFFF;
- DRAWTEXTABS(150,5,'■'),COLOR1870E5;
- DRAWTEXTABS(150,20,'■'),COLOR008000;
- DRAWTEXTABS(150,35,'■'),COLORBFBF3F;
- DRAWTEXTABS(145,50,'■'),COLORFF00FF;{正}
- DRAWTEXTABS(155,50,'■'),COLOR00FFFF;{负}
- DRAWTEXTABS(150,65,'☆'),COLOR0000FF;
- DRAWTEXTABS(150,80,'☆'),COLOR00FFFF;
- DRAWTEXTABS(150,95,'☆'),COLORFFF00F;
- DRAWTEXTABS(170,5,'总量:'+STRRIGHT(' '+NUMTOSTRN(总量,0),9)+' 手'),COLOR00FFFF;
- DRAWTEXTABS(170,20,'委买:'+STRRIGHT(' '+NUMTOSTRN(委买,0),9)+' 手'),COLOR00FFFF;
- DRAWTEXTABS(170,35,'委卖:'+STRRIGHT(' '+NUMTOSTRN(委卖,0),9)+' 手'),COLOR00FFFF;
- DRAWTEXTABS(170,50,'委差:'+STRRIGHT(' '+NUMTOSTRN(委差,0),9)+' 手'),COLOR00FFFF;
- DRAWTEXTABS(170,65,'委比:'+STRRIGHT(' '+NUMTOSTRN(委比,2),9)),COLOR00FFFF;
- DRAWTEXTABS(170,80,'量比:'+STRRIGHT(' '+NUMTOSTRN(量比,2),9)),COLOR00FFFF;
- DRAWTEXTABS(170,95,'买比:'+STRRIGHT(' '+NUMTOSTRN(买比,2),9)),COLOR00FFFF;
|