当前位置:→ 公式网 > 大智慧公式 > 正文  公式解密、改选股等业务 联系点击查看详情...

以下是天河饮马转送分时超赢指标(分时图用)源码(无源码的请下载附件导入)

 

C/C++ www.gszb.com 股票公式指标网提供 Code复制内容到剪贴板
  1. {分时超赢A-(分时主图.叠加超赢)}       
  2. DRAWTEXTABS(0,5,'《夏卫东-自编》'),COLOR0000FF;       
  3. {叠加大盘线}       
  4. TC:=STRCMP(STRLEFT(MARKETLABEL,2),'SZ');       
  5. DPSH:="SH000001$CLOSE"/HHV(STKINDI('SH000001','分超引用.昨收#DAY'),0);       
  6. DPSZ:="399001$CLOSE"/HHV(STKINDI('399001','分超引用.昨收#DAY'),0);       
  7. DPC:=IF(INBLOCK('A股板块'),DYNAINFO(3)*IF(TC=0,DPSZ,DPSH),C);       
  8. POLYLINE(C>0,DPC),COLORFF00FF,LINETHICK2,LAYER0;       
  9. {分时线}       
  10. 最新:C,COLORWHITE,LINETHICK2,PRECIS2,LAYER0;       
  11. AA:=SUM(AMOUNT,BARSCOUNT(C))/SUM(VOL*100,BARSCOUNT(C));       
  12. BB:=BETWEEN(C/AA,C+H,C-H);       
  13. 均线:IF(BB=0,MA(C,BARSCOUNT(C)),AA),COLOR00FFFF,LINETHICK2,PRECIS2;       
  14. {分时超赢}       
  15. ZLLR:=SUM((AMOUNT*(DYNAINFO(95)+DYNAINFO(94))/10000),0);       
  16. ZLLC:=SUM((AMOUNT*(DYNAINFO(98)+DYNAINFO(97))/10000),0);       
  17. 主净:ZLLR-ZLLC,COLOR00FFFF,LINETHICK0,PRECIS2;       
  18. TDLR:=SUM((AMOUNT*DYNAINFO(95)/10000),0);       
  19. TDLC:=SUM((AMOUNT*DYNAINFO(98)/10000),0);       
  20. 超净:TDLR-TDLC,COLORFF00FF,LINETHICK0,PRECIS2;       
  21. DDLR:=SUM((AMOUNT*DYNAINFO(94)/10000),0);       
  22. DDLC:=SUM((AMOUNT*DYNAINFO(97)/10000),0);       
  23. 大净:DDLR-DDLC,COLOR00FF00,LINETHICK0,PRECIS2;       
  24. ZDLR:=SUM((AMOUNT*DYNAINFO(93)/10000),0);       
  25. ZDLC:=SUM((AMOUNT*DYNAINFO(96)/10000),0);       
  26. 中净:ZDLR-ZDLC,COLORB5B5B5,LINETHICK0,PRECIS2;       
  27. XDLR:=IF(AMOUNT*(DYNAINFO(95)+DYNAINFO(94)+DYNAINFO(93))>0,SUM(((AMOUNT-AMOUNT*(DYNAINFO(95)+DYNAINFO(94)+DYNAINFO(93)))/10000),0),0);       
  28. XDLC:=IF(AMOUNT*(DYNAINFO(98)+DYNAINFO(97)+DYNAINFO(96))>0,SUM(((AMOUNT-AMOUNT*(DYNAINFO(98)+DYNAINFO(97)+DYNAINFO(96)))/10000),0),0);       
  29. 散净:XDLR-XDLC,COLORFF9911,LINETHICK0;       
  30. 外盘:=sum(if(DYNAINFO(23)*close,DYNAINFO(23),0),0)*0.003906;       
  31. 内盘:=sum(if(DYNAINFO(22)*close,DYNAINFO(22),0),0)*0.003906;       
  32. 主动率:=(外盘-内盘)/(内盘+外盘)*100;       
  33. 单数比:=DYNAINFO(92)/DYNAINFO(91);       
  34. 通吃率:=((DYNAINFO(95)+DYNAINFO(94))-(DYNAINFO(98)+DYNAINFO(97)))*VOL/VOL*100;       
  35. DRAWTEXTABS(440,5,'主动率:'+ NUMTOSTRN(主动率,2)+' 单数比:'+ NUMTOSTRN(单数比,2)+' 通吃率:'+ NUMTOSTRN(通吃率,2)),COLOR00FFFF;       
  36. DRAWTEXTABS(110,5,'上涨家数:'+NUMTOSTRN(DYNAINFO(69),0)+' 家'),COLOR0000FF;       
  37. DRAWTEXTABS(210,5,'下跌家数:'+NUMTOSTRN(DYNAINFO(70),0)+' 家'),COLOR00FF00;       
  38. DRAWTEXTABS(310,5,'平盘家数:'+NUMTOSTRN(DYNAINFO(71),0)+' 家'),COLORFFFFFF;       
  39. {五分钟资金趋势}       
  40. 主5:=主净-REF(主净,5);       
  41. 超5:=超净-REF(超净,5);       
  42. 大5:=大净-REF(大净,5);       
  43. 中5:=中净-REF(中净,5);       
  44. 散5:=散净-REF(散净,5);       
  45. DRAWTEXTABS(110,20,'五分钟各单净买(万):'),COLORFFFF00;       
  46. DRAWTEXTABS(230,20,'主力:'+ NUMTOSTRN(主5,2)),COLOR00FFFF;       
  47. DRAWTEXTABS(320,20,'超大:'+ NUMTOSTRN(超5,2)),COLORFF00FF;       
  48. DRAWTEXTABS(410,20,'大户:'+ NUMTOSTRN(大5,2)),COLOR00FF00;       
  49. DRAWTEXTABS(500,20,'中户:'+ NUMTOSTRN(中5,2)),COLORB5B5B5;       
  50. DRAWTEXTABS(590,20,'散户:'+ NUMTOSTRN(散5,2)),COLORFF9911;       
  51. {画柱图};       
  52. 最大值:=400/(MAX(ZLLR,ZLLC,TDLR,TDLC,DDLR,DDLC,ZDLR,ZDLC,XDLR,XDLC,散净,中净,大净,超净,主净));       
  53. 主力买:=600-(ZLLR*最大值);       
  54. 主力卖:=600-(ZLLC*最大值);       
  55. 超大买:=600-(TDLR*最大值);       
  56. 超大卖:=600-(TDLC*最大值);       
  57. 大户买:=600-(DDLR*最大值);       
  58. 大户卖:=600-(DDLC*最大值);       
  59. 中户买:=600-(ZDLR*最大值);       
  60. 中户卖:=600-(ZDLC*最大值);       
  61. 散户买:=600-(XDLR*最大值);       
  62. 散户卖:=600-(XDLC*最大值);       
  63. 散户净买:=600-(ABS(散净)*最大值);       
  64. 中户净买:=600-(ABS(中净)*最大值);       
  65. 大户净买:=600-(ABS(大净)*最大值);       
  66. 超大净买:=600-(ABS(超净)*最大值);       
  67. 主力净买:=600-(ABS(主净)*最大值);       
  68.       
  69. {各单增减比例显示}       
  70. ZLB:=SUM((ORDERVOL(1,2)/CAPITAL*100),0);       
  71. ZLS:=SUM((ORDERVOL(2,2)/CAPITAL*100),0);       
  72. 主增:=ZLB-ZLS;       
  73. TDB:=SUM((ORDERVOL(1,3)/CAPITAL*100),0);       
  74. TDS:=SUM((ORDERVOL(2,3)/CAPITAL*100),0);       
  75. 超增:=TDB-TDS;       
  76. DDB:=SUM(((ORDERVOL(1,2)/CAPITAL*100-ORDERVOL(1,3)/CAPITAL*100)),0);       
  77. DDS:=SUM(((ORDERVOL(2,2)/CAPITAL*100-ORDERVOL(2,3)/CAPITAL*100)),0);       
  78. 大增:=DDB-DDS;       
  79. ZDB:=SUM(((ORDERVOL(1,1)/CAPITAL*100-ORDERVOL(1,2)/CAPITAL*100)),0);       
  80. ZDS:=SUM(((ORDERVOL(2,1)/CAPITAL*100-ORDERVOL(2,2)/CAPITAL*100)),0);       
  81. 中增:=ZDB-ZDS;       
  82. XDB:=SUM(((VOL-ORDERVOL(1,1))/CAPITAL*100),0);       
  83. XDS:=SUM(((VOL-ORDERVOL(2,1))/CAPITAL*100),0);       
  84. 散增:=XDB-XDS;       
  85.       
  86. DRAWRECTREL(330,主力买,350,610,RGB(200,0,0)),COLOR000000,LAYER5;       
  87. DRAWRECTREL(350,主力卖,370,610,RGB(0,200,0)),COLOR000000,LAYER5;       
  88. DRAWRECTREL(370,主力净买,390,610,(IF((主净 >= 0),RGB(200,0,255),RGB(255,255,0)))),COLOR000000,LAYER5;       
  89. DRAWRECTREL(445,超大买,465,610,RGB(200,0,0)),COLOR000000,LAYER5;       
  90. DRAWRECTREL(465,超大卖,485,610,RGB(0,200,0)),COLOR000000,LAYER5;       
  91. DRAWRECTREL(485,超大净买,505,610,(IF((超净 >= 0),RGB(200,0,255),RGB(255,255,0)))),COLOR000000,LAYER5;       
  92. DRAWRECTREL(560,大户买,580,610,RGB(200,0,0)),COLOR000000,LAYER5;       
  93. DRAWRECTREL(580,大户卖,600,610,RGB(0,200,0)),COLOR000000,LAYER5;       
  94. DRAWRECTREL(600,大户净买,620,610,(IF((大净 >= 0),RGB(200,0,255),RGB(255,255,0)))),COLOR000000,LAYER5;       
  95. DRAWRECTREL(675,中户买,695,610,RGB(200,0,0)),COLOR000000,LAYER5;       
  96. DRAWRECTREL(695,中户卖,715,610,RGB(0,200,0)),COLOR000000,LAYER5;       
  97. DRAWRECTREL(715,中户净买,735,610,(IF((中净 >= 0),RGB(200,0,255),RGB(255,255,0)))),COLOR000000,LAYER5;       
  98. DRAWRECTREL(790,散户买,810,610,RGB(200,0,0)),COLOR000000,LAYER5;       
  99. DRAWRECTREL(810,散户卖,830,610,RGB(0,200,0)),COLOR000000,LAYER5;       
  100. DRAWRECTREL(830,散户净买,850,610,(IF((散净 >= 0),RGB(200,0,255),RGB(255,255,0)))),COLOR000000,LAYER5;       
  101.       
  102. DRAWRECTREL( 330,620,390,635,RGB(255,255,0));       
  103. DRAWRECTREL( 445,620,505,635,RGB(255,0,255));       
  104. DRAWRECTREL( 560,620,620,635,RGB(0,200,0));       
  105. DRAWRECTREL( 675,620,735,635,RGB(200,200,200));       
  106. DRAWRECTREL( 790,620,850,635,RGB(0,0,200));       
  107.       
  108. DRAWTEXTREL(310,530,'主'),ColorDDFFFF;       
  109. DRAWTEXTREL(310,600,'力'),ColorDDFFFF;       
  110. DRAWTEXTREL(425,530,'超'),ColorDDFFFF;       
  111. DRAWTEXTREL(425,600,'大'),ColorDDFFFF;       
  112. DRAWTEXTREL(540,530,'大'),ColorDDFFFF;       
  113. DRAWTEXTREL(540,600,'户'),ColorDDFFFF;       
  114. DRAWTEXTREL(655,530,'中'),ColorDDFFFF;       
  115. DRAWTEXTREL(655,600,'户'),ColorDDFFFF;       
  116. DRAWTEXTREL(770,530,'散'),ColorDDFFFF;       
  117. DRAWTEXTREL(770,600,'户'),ColorDDFFFF;       
  118.       
  119. DRAWTEXTREL(290,660,'买入'),colorred;       
  120. DRAWTEXTREL(290,720,'卖出'),Color00FF00;       
  121. DRAWTEXTREL(290,780,'净买'),COLOR1199FF;       
  122. DRAWTEXTREL(290,830,'增减'),COLORFFFF00;       
  123. DRAWTEXTREL(330,660,NUMTOSTRN(ZLLR,2)),colorred;       
  124. DRAWTEXTREL(330,720,NUMTOSTRN(ZLLC,2)),COLOR00FF00;       
  125. DRAWTEXTREL(330,780,NUMTOSTRN(主净,2)),COLOR1199FF;       
  126. DRAWTEXTREL(330,830,NUMTOSTRN(主增,2)+'%'),COLORFFFF00;       
  127. DRAWTEXTREL(445,660,NUMTOSTRN(TDLR,2)),colorred;       
  128. DRAWTEXTREL(445,720,NUMTOSTRN(TDLC,2)),COLOR00FF00;       
  129. DRAWTEXTREL(445,780,NUMTOSTRN(超净,2)),COLOR1199FF;       
  130. DRAWTEXTREL(445,830,NUMTOSTRN(超增,2)+'%'),COLORFFFF00;       
  131. DRAWTEXTREL(560,660,NUMTOSTRN(DDLR,2)),colorred;       
  132. DRAWTEXTREL(560,720,NUMTOSTRN(DDLC,2)),COLOR00FF00;DRAWTEXTREL(560,780,NUMTOSTRN(大净,2)),COLOR1199FF;       
  133. DRAWTEXTREL(560,830,NUMTOSTRN(大增,2)+'%'),COLORFFFF00;       
  134. DRAWTEXTREL(675,660,NUMTOSTRN(ZDLR,2)),colorred;       
  135. DRAWTEXTREL(675,720,NUMTOSTRN(ZDLC,2)),COLOR00FF00;  DRAWTEXTREL(675,780,NUMTOSTRN(中净,2)),COLOR1199FF;       
  136. DRAWTEXTREL(675,830,NUMTOSTRN(中增,2)+'%'),COLORFFFF00;       
  137. DRAWTEXTREL(790,660,NUMTOSTRN(XDLR,2)),colorred;       
  138. DRAWTEXTREL(790,720,NUMTOSTRN(XDLC,2)),COLOR00FF00;       
  139. DRAWTEXTREL(790,780,NUMTOSTRN(散净,2)),COLOR1199FF;       
  140. DRAWTEXTREL(790,830,NUMTOSTRN(散增,2)+'%'),COLORFFFF00;  



关于我们 - 联系我们 - 广告合作 - 下载声明 - 网站帮助 - 友情链接 - 网站地图 - RSS订阅 - TOP
湘ICP备09016573号-3 增值电信业务经营ICP许可证:湘B2-20210269 湘公网安备43108102000039号
Copyright © 铭网科技,All Rights Reserved.
股票公式,股票指标,股票软件,股票知识