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

以下是超赢分类持仓(资金 买卖单 源码)(无源码的请下载附件导入)

 

C/C++ www.gszb.com 股票公式指标网提供 Code复制内容到剪贴板
  1. 小单买:=1-BIGORDER(1,1)*V/CAPITAL;   
  2. 小单卖:=1-BIGORDER(2,1)*V/CAPITAL;   
  3. 散户净买:=(小单买-小单卖)*100;   
  4. 散户:sum(散户净买,1),linethick0,COLORGREEN;   
  5. 中户买:=BIGORDER(1,1)*V/CAPITAL-BIGORDER(1,2)*V/CAPITAL;   
  6. 中户卖:=BIGORDER(2,1)*V/CAPITAL-BIGORDER(2,2)*V/CAPITAL;   
  7. 中户净买:=(中户买-中户卖)*100;   
  8. 中户:sum(中户净买,1),linethick0,colorf00ff0;   
  9. 大户买:=BIGORDER(1,2)*V/CAPITAL-BIGORDER(1,3)*V/CAPITAL;   
  10. 大户卖:=BIGORDER(2,2)*V/CAPITAL-BIGORDER(2,3)*V/CAPITAL;   
  11. 大户净买:=(大户买-大户卖)*100;   
  12. 大户:sum(大户净买,1),linethick0,colorf0f000;   
  13. 机构买:=BIGORDER(1,3)*V/CAPITAL;   
  14. 机构卖:=BIGORDER(2,3)*V/CAPITAL;   
  15. 机构净买:=(机构买-机构卖)*100;   
  16. 超大:sum(机构净买,1),linethick0,color3399FF;   
  17. 大单买:=BIGORDER(1,2)*V/CAPITAL;   
  18. 大单卖:=BIGORDER(2,2)*V/CAPITAL;   
  19. 主力:(大单买-大单卖)*100,linethick0,COLORRED;   
  20. 散户增减:=散户-ref(散户,3);   
  21. 中户增减:=中户-ref(中户,5);   
  22. 大户增减:=大户-ref(大户,3);   
  23. 超大增减:=超大-ref(超大,10);   
  24. 主力增减:=主力-ref(主力,5);   
  25. S3:=ref(散户,3);   
  26. Z3:=ref(中户,3);   
  27. D3:=ref(大户,3);   
  28. F3:=ref(超大,3);   
  29. J3:=ref(主力,3);   
  30. S5:=ref(散户,5);   
  31. Z5:=ref(中户,5);   
  32. D5:=ref(大户,5);   
  33. F5:=ref(超大,5);   
  34. J5:=ref(主力,5);   
  35. S10:=ref(散户,10);   
  36. Z10:=ref(中户,10);   
  37. D10:=ref(大户,10);   
  38. F10:=ref(超大,10);   
  39. J10:=ref(主力,10);   
  40. S20:=ref(散户,20);   
  41. Z20:=ref(中户,20);   
  42. D20:=ref(大户,20);   
  43. F20:=ref(超大,20);   
  44. J20:=ref(主力,20);   
  45. BL3:=400/MAX(S3,Z3,D3,F3,J3);   
  46. BL5:=400/MAX(S5,Z5,D5,F5,J5);   
  47. BL10:=400/MAX(S10,Z10,D10,F10,J10);   
  48. BL20:=400/MAX(S20,Z20,D20,F20,J20);   
  49. S3B:=999-S3*BL3;   
  50. Z3B:=999-Z3*BL3;   
  51. D3B:=999-D3*BL3;   
  52. F3B:=999-F3*BL3;   
  53. J3B:=999-J3*BL3;   
  54. S5B:=999-S5*BL5;   
  55. Z5B:=999-Z5*BL5;   
  56. D5B:=999-D5*BL5;   
  57. F5B:=999-F5*BL5;   
  58. J5B:=999-J5*BL5;   
  59. S10B:=999-S10*BL10;   
  60. Z10B:=999-Z10*BL10;   
  61. D10B:=999-D10*BL10;   
  62. F10B:=999-F10*BL10;   
  63. J10B:=999-J10*BL10;   
  64. S20B:=999-S20*BL20;   
  65. Z20B:=999-Z20*BL20;   
  66. D20B:=999-D20*BL20;   
  67. F20B:=999-F20*BL20;   
  68. J20B:=999-J20*BL20;   
  69. {画直方图}   
  70. DRAWRECTREL(10,S3B,40,999,RGB(0,255,0));   
  71. DRAWRECTREL(30,Z3B,60,999,RGB(180,0,100));   
  72. DRAWRECTREL(50,D3B,80,999,RGB(0,0,255));   
  73. DRAWRECTREL(70,F3B,100,999,RGB(180,100,0));   
  74. DRAWRECTREL(90,J3B,120,999,RGB(255,0,0));   
  75. DRAWRECTREL(140,S5B,170,999,RGB(0,255,0));   
  76. DRAWRECTREL(160,Z5B,190,999,RGB(180,0,100));   
  77. DRAWRECTREL(175,D5B,210,999,RGB(0,0,255));   
  78. DRAWRECTREL(200,F5B,230,999,RGB(180,100,0));   
  79. DRAWRECTREL(220,J5B,250,999,RGB(255,0,0));   
  80. DRAWRECTREL(270,S10B,300,999,RGB(0,255,0));   
  81. DRAWRECTREL(290,Z10B,320,999,RGB(180,0,100));   
  82. DRAWRECTREL(310,D10B,340,999,RGB(0,0,255));   
  83. DRAWRECTREL(330,F10B,360,999,RGB(180,100,0));   
  84. DRAWRECTREL(350,J10B,380,999,RGB(255,0,0));   
  85. DRAWRECTREL(400,S20B,430,999,RGB(0,255,0));   
  86. DRAWRECTREL(420,Z20B,450,999,RGB(180,0,100));   
  87. DRAWRECTREL(440,D20B,470,999,RGB(0,0,255));   
  88. DRAWRECTREL(460,F20B,490,999,RGB(180,100,0));   
  89. DRAWRECTREL(480,J20B,510,999,RGB(255,0,0));   
  90. DRAWTEXTREL(80,5,'散户'),color00ff00;   
  91. DRAWTEXTREL(160,5,'中户'),colorf00ff0;   
  92. DRAWTEXTREL(240,5,'大户'),colorffaa66;   
  93. DRAWTEXTREL(320,5,'超大'),color0099ff;   
  94. DRAWTEXTREL(400,5,'主力'),colorred;   
  95. DRAWTEXTREL(30,70,'今日'),colorddffff;   
  96. DRAWTEXTREL(80,70,NUMTOSTRN(散户,2)), color00ff00;   
  97. DRAWTEXTREL(160,70,NUMTOSTRN(中户,2)),colorf00ff0;   
  98. DRAWTEXTREL(240,70,NUMTOSTRN(大户,2)), colorffaa66;   
  99. DRAWTEXTREL(320,70,NUMTOSTRN(超大,2)), color0099ff;   
  100. DRAWTEXTREL(400,70,NUMTOSTRN(主力,2)), colorred;   
  101. DRAWTEXTREL(30,140,'3日'), colorddffff;   
  102. DRAWTEXTREL(80,140,NUMTOSTRN(S3,2)), color00ff00;   
  103. DRAWTEXTREL(160,140,NUMTOSTRN(Z3,2)),colorf00ff0;   
  104. DRAWTEXTREL(240,140,NUMTOSTRN(D3,2)), colorffaa66;   
  105. DRAWTEXTREL(320,140,NUMTOSTRN(F3,2)), color0099ff;   
  106. DRAWTEXTREL(400,140,NUMTOSTRN(J3,2)), colorred;   
  107. DRAWTEXTREL(30,210,'5日'), colorddffff;   
  108. DRAWTEXTREL(80,210,NUMTOSTRN(S5,2)), color00ff00;   
  109. DRAWTEXTREL(160,210,NUMTOSTRN(Z5,2)),colorf00ff0;   
  110. DRAWTEXTREL(240,210,NUMTOSTRN(D5,2)), colorffaa66;   
  111. DRAWTEXTREL(320,210,NUMTOSTRN(F5,2)), color0099ff;   
  112. DRAWTEXTREL(400,210,NUMTOSTRN(J5,2)), colorred;   
  113. DRAWTEXTREL(30,280,'10日'), colorddffff;   
  114. DRAWTEXTREL(80,280,NUMTOSTRN(S10,2)), color00ff00;   
  115. DRAWTEXTREL(160,280,NUMTOSTRN(Z10,2)),colorf00ff0;   
  116. DRAWTEXTREL(240,280,NUMTOSTRN(D10,2)), colorffaa66;   
  117. DRAWTEXTREL(320,280,NUMTOSTRN(F10,2)), color0099ff;   
  118. DRAWTEXTREL(400,280,NUMTOSTRN(J10,2)), colorred;   
  119. DRAWTEXTREL(30,350,'20日'), colorddffff;   
  120. DRAWTEXTREL(80,350,NUMTOSTRN(S20,2)), color00ff00;   
  121. DRAWTEXTREL(160,350,NUMTOSTRN(Z20,2)),colorf00ff0;   
  122. DRAWTEXTREL(240,350,NUMTOSTRN(D20,2)), colorffaa66;   
  123. DRAWTEXTREL(320,350,NUMTOSTRN(F20,2)), color0099ff;   
  124. DRAWTEXTREL(400,350,NUMTOSTRN(J20,2)), colorred;   
  125. DRAWTEXTREL(5,800,'3'),COLORRED;   
  126. DRAWTEXTREL(3,900,'日'),COLORRED;   
  127. DRAWTEXTREL(135,800,'5'),COLORRED;   
  128. DRAWTEXTREL(130,900,'日'),COLORRED;   
  129. DRAWTEXTREL(260,800,'10'),COLORRED;   
  130. DRAWTEXTREL(260,900,'日'),COLORRED;   
  131. DRAWTEXTREL(390,800,'20'),COLORRED;   
  132. DRAWTEXTREL(390,900,'日'),COLORRED;   
  133. 一日资金流入:=amount*BIGORDER(1,2)/10000;   
  134. 一日资金流出:=amount*BIGORDER(2,2)/10000;   
  135. 资金流:=一日资金流入-一日资金流出;   
  136. 进出【万元】:资金流,color3d,coloryellow;   
  137. IF 资金流<0 THEN   
  138. DRAWFLAGTEXT(1,资金流,'当日资金流出'+STR(ABS(资金流))+'【万元】↓');   
  139. ELSE   
  140. DRAWFLAGTEXT(1,资金流,'当日资金流入'+STR(ABS(资金流))+'【万元】↑'),COLORRED;   
  141. 流进:BIGORDER(1,2)*V/CAPITAL,LINETHICK0,COLORRED;   
  142. 流出:BIGORDER(2,2)*V/CAPITAL,LINETHICK0,COLORGREEN;   
  143. FILLRGN(流进,流出,流进>流出,RGB(255,0,0)),COLOR000000;   
  144. FILLRGN(流出,流进,流进<流出,RGB(0,255,0)),COLOR000000   



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