通达信外部数据采集系统V2.5(新增幅图指标大数据)
-
相关简介:通达信外部数据采集系统V2.5(新增幅图指标大数据) 所有数据不断增加的同时,也在不断的对通达信的框架结构进行了解,后期更新的同时肯定是不用替换文件,尽可能做到在线实时自动更新数据的功能。 之后增加更强大的通达信幅图指标数据系统 流通股东数据号默认201-220 解禁限售据号默认数221-224 股东户数数据号默认229 -232 机构持股数据号默认225-228 必须默认 不然肯定弄混,不解释。 以下代码的股东数据、解禁数据、机构持股 请自行按照序列号编辑 {十大流通股东副图} {股东数据直接
-
文章来源:股海网作者:股海网发布时间:2020-03-12浏览次数:
通达信外部数据采集系统V2.5(新增幅图指标大数据)
所有数据不断增加的同时,也在不断的对通达信的框架结构进行了解,后期更新的同时肯定是不用替换文件,尽可能做到在线实时自动更新数据的功能。
之后增加更强大的通达信幅图指标数据系统
流通股东数据号默认201-220
解禁限售据号默认数221-224
股东户数数据号默认229 -232
机构持股数据号默认225-228
必须默认 不然肯定弄混,不解释。
以下代码的股东数据、解禁数据、机构持股 请自行按照序列号编辑
{十大流通股东副图}
{股东数据直接放在:TDX\T0002\SIGNALS\EXTERN_USER.TXT--可以将下载的自定义数据直接复制到这里即可}
DRAWRECTREL(0,0,998,998,RGB(0,28,0));
DRAWRECTREL(40,0,40,998,RGB(128,128,128));
DRAWRECTREL(430,0,430,998,RGB(128,128,128));
DRAWRECTREL(515,0,515,998,RGB(128,128,128));
DRAWRECTREL(595,0,595,998,RGB(128,128,128));
DRAWRECTREL(740,0,740,998,RGB(128,128,128));
DRAWRECTREL(0,100,998,100,RGB(128,128,128));
DRAWTEXT_FIX(ISLASTBAR,0.010,0.020,0,'序号'),COLORGREEN;
DRAWTEXT_FIX(ISLASTBAR,0.015,0.120,0,'一'),COLOR00FFFF;
DRAWTEXT_FIX(ISLASTBAR,0.015,0.207,0,'二'),COLOR00FF00;
DRAWTEXT_FIX(ISLASTBAR,0.015,0.294,0,'三'),COLORLIGRAY;
DRAWTEXT_FIX(ISLASTBAR,0.015,0.381,0,'四'),COLORFFFF00;
DRAWTEXT_FIX(ISLASTBAR,0.015,0.468,0,'五'),COLORLIRED;
DRAWTEXT_FIX(ISLASTBAR,0.015,0.555,0,'六'),COLOR00FFFF;
DRAWTEXT_FIX(ISLASTBAR,0.015,0.642,0,'七'),COLOR00FF00;
DRAWTEXT_FIX(ISLASTBAR,0.015,0.729,0,'八'),COLORLIGRAY;
DRAWTEXT_FIX(ISLASTBAR,0.015,0.816,0,'九'),COLORFFFF00;
DRAWTEXT_FIX(ISLASTBAR,0.015,0.903,0,'十'),COLORLIRED;
DRAWTEXT_FIX(ISLASTBAR,0.18,0.020,0,'十大流通股东名称'),COLORGREEN;
DRAWTEXT_FIX(ISLASTBAR,0.050, 0.120, 0, EXTERNSTR(0,201) ),COLOR00FFFF;
DRAWTEXT_FIX(ISLASTBAR,0.050, 0.207, 0, EXTERNSTR(0,202) ),COLOR00FF00;
DRAWTEXT_FIX(ISLASTBAR,0.050, 0.294, 0, EXTERNSTR(0,203) ),COLORLIGRAY;
DRAWTEXT_FIX(ISLASTBAR,0.050, 0.381, 0, EXTERNSTR(0,204) ),COLORFFFF00;
DRAWTEXT_FIX(ISLASTBAR,0.050, 0.468, 0, EXTERNSTR(0,205) ),COLORLIRED;
DRAWTEXT_FIX(ISLASTBAR,0.050, 0.555, 0, EXTERNSTR(0,206) ),COLOR00FFFF;
DRAWTEXT_FIX(ISLASTBAR,0.050, 0.642, 0, EXTERNSTR(0,207) ),COLOR00FF00;
DRAWTEXT_FIX(ISLASTBAR,0.050, 0.729, 0, EXTERNSTR(0,208) ),COLORLIGRAY;
DRAWTEXT_FIX(ISLASTBAR,0.050, 0.816, 0, EXTERNSTR(0,209) ),COLORFFFF00;
DRAWTEXT_FIX(ISLASTBAR,0.050, 0.903, 0, EXTERNSTR(0,210) ),COLORLIRED;
DRAWTEXT_FIX(ISLASTBAR,0.447,0.020,0,'持股量(万股)'),COLORGREEN;
DRAWNUMBER_FIX(ISLASTBAR,0.440, 0.120, 0, EXTERNVALUE(0,201) ),COLOR00FFFF;
DRAWNUMBER_FIX(ISLASTBAR,0.440, 0.207, 0, EXTERNVALUE(0,202) ),COLOR00FF00;
DRAWNUMBER_FIX(ISLASTBAR,0.440, 0.294, 0, EXTERNVALUE(0,203) ),COLORLIGRAY;
DRAWNUMBER_FIX(ISLASTBAR,0.440, 0.381, 0, EXTERNVALUE(0,204) ),COLORFFFF00;
DRAWNUMBER_FIX(ISLASTBAR,0.440, 0.468, 0, EXTERNVALUE(0,205) ),COLORLIRED;
DRAWNUMBER_FIX(ISLASTBAR,0.440, 0.555, 0, EXTERNVALUE(0,206) ),COLOR00FFFF;
DRAWNUMBER_FIX(ISLASTBAR,0.440, 0.642, 0, EXTERNVALUE(0,207) ),COLOR00FF00;
DRAWNUMBER_FIX(ISLASTBAR,0.440, 0.729, 0, EXTERNVALUE(0,208) ),COLORLIGRAY;
DRAWNUMBER_FIX(ISLASTBAR,0.440, 0.816, 0, EXTERNVALUE(0,209) ),COLORFFFF00;
DRAWNUMBER_FIX(ISLASTBAR,0.440, 0.903, 0, EXTERNVALUE(0,210) ),COLORLIRED;
DRAWTEXT_FIX(ISLASTBAR,0.532,0.020,0,'持股比例 %'),COLORGREEN;
DRAWNUMBER_FIX(ISLASTBAR,0.525, 0.120, 0, EXTERNVALUE(0,211) ),COLOR00FFFF;
DRAWNUMBER_FIX(ISLASTBAR,0.525, 0.207, 0, EXTERNVALUE(0,212) ),COLOR00FF00;
DRAWNUMBER_FIX(ISLASTBAR,0.525, 0.294, 0, EXTERNVALUE(0,213) ),COLORLIGRAY;
DRAWNUMBER_FIX(ISLASTBAR,0.525, 0.381, 0, EXTERNVALUE(0,214) ),COLORFFFF00;
DRAWNUMBER_FIX(ISLASTBAR,0.525, 0.468, 0, EXTERNVALUE(0,215) ),COLORLIRED;
DRAWNUMBER_FIX(ISLASTBAR,0.525, 0.555, 0, EXTERNVALUE(0,216) ),COLOR00FFFF;
DRAWNUMBER_FIX(ISLASTBAR,0.525, 0.642, 0, EXTERNVALUE(0,217) ),COLOR00FF00;
DRAWNUMBER_FIX(ISLASTBAR,0.525, 0.729, 0, EXTERNVALUE(0,218) ),COLORLIGRAY;
DRAWNUMBER_FIX(ISLASTBAR,0.525, 0.816, 0, EXTERNVALUE(0,219) ),COLORFFFF00;
DRAWNUMBER_FIX(ISLASTBAR,0.525, 0.903, 0, EXTERNVALUE(0,220) ),COLORLIRED;
DRAWTEXT_FIX(ISLASTBAR,0.638,0.020,0,'增减 万股 比例'),COLORGREEN;
DRAWTEXT_FIX(ISLASTBAR,0.605, 0.120, 0, EXTERNSTR(0,211) ),COLOR00FFFF;
DRAWTEXT_FIX(ISLASTBAR,0.605, 0.207, 0, EXTERNSTR(0,212) ),COLOR00FF00;
DRAWTEXT_FIX(ISLASTBAR,0.605, 0.294, 0, EXTERNSTR(0,213) ),COLORLIGRAY;
DRAWTEXT_FIX(ISLASTBAR,0.605, 0.381, 0, EXTERNSTR(0,214) ),COLORFFFF00;
DRAWTEXT_FIX(ISLASTBAR,0.605, 0.468, 0, EXTERNSTR(0,215) ),COLORLIRED;
DRAWTEXT_FIX(ISLASTBAR,0.605, 0.555, 0, EXTERNSTR(0,216) ),COLOR00FFFF;
DRAWTEXT_FIX(ISLASTBAR,0.605, 0.642, 0, EXTERNSTR(0,217) ),COLOR00FF00;
DRAWTEXT_FIX(ISLASTBAR,0.605, 0.729, 0, EXTERNSTR(0,218) ),COLORLIGRAY;
DRAWTEXT_FIX(ISLASTBAR,0.605, 0.816, 0, EXTERNSTR(0,219) ),COLORFFFF00;
DRAWTEXT_FIX(ISLASTBAR,0.605, 0.903, 0, EXTERNSTR(0,220) ),COLORLIRED;
DRAWTEXT_FIX(ISLASTBAR,0.850,0.020,0,'统计分析'),COLORGREEN;
DRAWTEXT_FIX(ISLASTBAR,0.748,0.120,0,'1、前十大股东持股合计:'),COLORYELLOW;
QSDGDCGBL:=EXTERNVALUE(0,211)+EXTERNVALUE(0,212)+EXTERNVALUE(0,213)+EXTERNVALUE(0,214)+EXTERNVALUE(0,215)
+EXTERNVALUE(0,216)+EXTERNVALUE(0,217)+EXTERNVALUE(0,218)+EXTERNVALUE(0,219)+EXTERNVALUE(0,220);
QSDGDCGSL:=EXTERNVALUE(0,201)+EXTERNVALUE(0,202)+EXTERNVALUE(0,203)+EXTERNVALUE(0,204)+EXTERNVALUE(0,205)
+EXTERNVALUE(0,206)+EXTERNVALUE(0,207)+EXTERNVALUE(0,208)+EXTERNVALUE(0,209)+EXTERNVALUE(0,210);
环比增减1:=(FINONE(245,0,0)-FINONE(245,0,1))/FINONE(245,0,1)*100;
HG111:=IF(环比增减1>0,VARCAT(VARCAT( '增加 ' ,VAR2STR( 环比增减1,2)),' % '),IF(环比增减1<0,VARCAT(VARCAT( '减少 ' ,VAR2STR(-环比增减1,2)),' % '),' '));
HGH111:=STRCAT(STRCAT('占总股本 ',STRCAT(CON2STR(FINVALUE(245)/FINVALUE(238)*100,2),' % ')),STRCAT('占流通盘 ',STRCAT(CON2STR(FINVALUE(245)/FINVALUE(239)*100,2),' % ')));
SDGDCGLXFX:=IF(FINONE(245,0,0)<FINONE(245,0,1) AND FINONE(245,0,1)<FINONE(245,0,2) AND FINONE(245,0,2)<FINONE(245,0,3),'连续三季度减少',IF(FINVALUE(245)>FINONE(245,0,1) AND FINONE(245,0,1)>FINONE(245,0,2) AND FINONE(245,0,2)>FINONE(245,0,3),'连续三季度增加',''));
DRAWTEXT_FIX(ISLASTBAR,0.760,0.207,0,STRCAT(STRCAT('持股比 ',STRCAT(CON2STR(QSDGDCGBL,2),' % ')),STRCAT('持股数 ',STRCAT(CON2STR(QSDGDCGSL,2),' 万股')))),COLORYELLOW;
DRAWTEXT_FIX(ISLASTBAR,0.760,0.294,0,HGH111),COLORYELLOW;
DRAWTEXT_FIX(ISLASTBAR,0.760,0.381,0,STRCAT('较上期 ',STRCAT(HG111,SDGDCGLXFX))),COLORYELLOW;
GDRSLXZJFX:=IF(FINONE(242,0,0)<FINONE(242,0,1) AND FINONE(242,0,1)<FINONE(242,0,2) AND FINONE(242,0,2)<FINONE(242,0,3),'连续三季度减少',IF(FINVALUE(242)>FINONE(242,0,1) AND FINONE(242,0,1)>FINONE(242,0,2) AND FINONE(242,0,2)>FINONE(242,0,3),'连续三季度增加',''));
DRAWTEXT_FIX(ISLASTBAR AND ((FINVALUE(242)-FINONE(242,0,1))/FINONE(242,0,1))<=0,0.748,0.468,0,STRCAT('2、本期股东人数较上期减: ',STRCAT(CON2STR((FINVALUE(242)-FINONE(242,0,1))/FINONE(242,0,1)*100,2),STRCAT(' %,',GDRSLXZJFX)))),COLORFFAAFF;
DRAWTEXT_FIX(ISLASTBAR AND ((FINVALUE(242)-FINONE(242,0,1))/FINONE(242,0,1))> 0,0.748,0.468,0,STRCAT('2、本期股东人数较上期增: ',STRCAT(CON2STR((FINVALUE(242)-FINONE(242,0,1))/FINONE(242,0,1)*100,2),STRCAT(' %,',GDRSLXZJFX)))),COLORFFAA00;
HGH222:=STRCAT(STRCAT('占总股本 ',STRCAT(CON2STR(FINVALUE(247)/FINVALUE(238)*100,2),' % ')),STRCAT('占流通盘 ',STRCAT(CON2STR(FINVALUE(247)/FINVALUE(239)*100,2),' % ')));
JGCGLXZJFX:=IF(FINONE(247,0,0)<FINONE(247,0,1) AND FINONE(247,0,1)<FINONE(247,0,2) AND FINONE(247,0,2)<FINONE(247,0,3),'连续三季度减少',IF(FINVALUE(247)>FINONE(247,0,1) AND FINONE(247,0,1)>FINONE(247,0,2) AND FINONE(247,0,2)>FINONE(247,0,3),'连续三季度增加',''));
DRAWTEXT_FIX(ISLASTBAR,0.748,0.555,0,STRCAT('3、共 ',STRCAT(CON2STR(FINVALUE(246),0),STRCAT(' 家机构,共持有 ',STRCAT(CON2STR(FINVALUE(247)/10000,2),' 万股'))))),COLORGREEN;
DRAWTEXT_FIX(ISLASTBAR,0.760,0.642,0,HGH222),COLORGREEN;
DRAWTEXT_FIX(ISLASTBAR,0.760,0.729,0,STRCAT('增幅 ',STRCAT(CON2STR((FINONE(247,0,0)-FINONE(247,0,1))/FINONE(247,0,1)*100,2),STRCAT(' % ',JGCGLXZJFX)))),COLORGREEN;
环比增减3:=(FINONE(284,0,0)-FINONE(284,0,1))/FINONE(284,0,1)*100;
HG333:=IF(环比增减3>0,VARCAT(VARCAT( '增加 ' ,VAR2STR( 环比增减3,2)),' % '),IF(环比增减3<0,VARCAT(VARCAT( '减少 ' ,VAR2STR(-环比增减3,2)),' % '),' '));
GJDCGLXFX:=IF(FINONE(284,0,0)<FINONE(284,0,1) AND FINONE(284,0,1)<FINONE(284,0,2) AND FINONE(284,0,2)<FINONE(284,0,3),'连续三季度减少',IF(FINVALUE(284)>FINONE(284,0,1) AND FINONE(284,0,1)>FINONE(284,0,2) AND FINONE(284,0,2)>FINONE(284,0,3),'连续三季度增加',''));
DRAWTEXT_FIX(ISLASTBAR,0.748,0.816,0,STRCAT('4、国家队持 ',STRCAT(CON2STR(FINVALUE(284),2),STRCAT(' 万股,占总股本 ',STRCAT(CON2STR(FINVALUE(284)*10000/FINVALUE(238)*100,2),' % '))))),COLORWHITE;
DRAWTEXT_FIX(ISLASTBAR,0.760,0.903,0,STRCAT('较上期 ',STRCAT(HG333,GJDCGLXFX))),COLORWHITE;
|