公式指标平台 股票指标公式源码分享 登录 注册
公式指标平台
未来函数检测
首 页 金钻指标 通达信公式 大智慧公式 同花顺公式 文华财经公式 操盘手公式 东财通公式 飞狐公式 其他公式 公式解答 股票软件 股票池
当前位置:→ 公式指标平台 > 大智慧公式 > 正文 → 正文

6均线资金 (主图 源码)

发布时间:2010/6/5 8:40:48  浏览次数:

 

C/C++ www.gszb.com 股票公式指标网提供 Code复制内容到剪贴板
  1. 帐户总数:extradata('散户线'),linethick0,PRECIS0;   
  2. 户均持股:=(FINANCE2(37)/帐户总数)*10000;   
  3. ZH3:=ref(帐户总数,3);   
  4. HJ3:=ref(户均持股,3);   
  5. 主动率:="卫东.主动率#day";   
  6. 单数比:="卫东.单数比#day";   
  7. 通吃率:="卫东.通吃率#day";   
  8. DRAWTEXTREL(5,13,'帐户总数(户):'+NUMTOSTRN(帐户总数,0)),Color0000FF;   
  9. DRAWTEXTREL(139,13,'户均持股(股):'+NUMTOSTRN(户均持股,0)),Color0000FF;   
  10. DRAWTEXTREL(290,13,'上涨家数:'+"卫东.上涨家数#day"+'家'),COLOR0000FF;   
  11. DRAWTEXTREL(390,13,'平盘家数:'+"卫东.平盘家数#day"+'家'),COLORFFFFFF;   
  12. DRAWTEXTREL(490,13,'下跌家数:'+"卫东.下跌家数#day"+'家'),COLOR00FF00;   
  13. DRAWTEXTREL(590,13,'主动率:'+NUMTOSTRN(主动率,2)+'%'),COLOR0033FF;   
  14. DRAWTEXTREL(690,13,'单数比:'+NUMTOSTRN(单数比,2)+'%'),COLOR00FF00;   
  15. DRAWTEXTREL(790,13,'通吃率:'+NUMTOSTRN(通吃率,2)+'%'),COLOR00FFff;   
  16. 连红:LAST(CLOSE>OPEN),PRECIS0,color0000FF,linethick0;   
  17. 连绿:LAST(CLOSE<OPEN),PRECIS0,color00FF00,linethick0;   
  18. M1:=5;M2:=10;M3:=20;M4:=30;M5:=60;M6:=120;   
  19. MA1:MA(CLOSE,M1);   
  20. MA2:MA(CLOSE,M2);   
  21. MA3:MA(CLOSE,M3);   
  22. MA4:MA(CLOSE,M4);   
  23. MA5:MA(CLOSE,M5);   
  24. MA6:MA(CLOSE,M6);   
  25. MA5:=EMA(C,5);   
  26. MA10:=EMA(C,10);   
  27. MA30:=EMA(C,30);   
  28. MA60:=EMA(C,60);   
  29. YCX:=MA5>=REF(MA5,1);   
  30. H1:=MAX(MAX(MA5,MA10),MA30);   
  31. L1:=MIN(MIN(MA5,MA10),MA30);   
  32. DRAWTEXT(H1<C AND O<L1 AND YCX AND MA30>REF(MA30,1) ,H*1.018,'【串串】'),COLORYELLOW;   
  33. JJ:=(HIGH+LOW+CLOSE)/3;   
  34. QJ0:=VOL/IF(HIGH=LOW,4,HIGH-LOW);   
  35. QJ1:=IF(CAPITAL=0,QJ0*(JJ-MIN(CLOSE,OPEN)),QJ0*IF(HIGH=LOW,1,(MIN(OPEN,CLOSE)-LOW)));   
  36. QJ2:=IF(CAPITAL=0,QJ0*(MIN(OPEN,CLOSE)-LOW),QJ0*IF(HIGH=LOW,1,(JJ-MIN(CLOSE,OPEN))));   
  37. QJ3:=IF(CAPITAL=0,QJ0*(HIGH-MAX(OPEN,CLOSE)),QJ0*IF(HIGH=LOW,1,(HIGH-MAX(OPEN,CLOSE))));   
  38. QJ4:=IF(CAPITAL=0,QJ0*(MAX(CLOSE,OPEN)-JJ),QJ0*IF(HIGH=LOW,1,(MAX(CLOSE,OPEN)-JJ)));   
  39. DDX:=((QJ1+QJ2)-(QJ3+QJ4))/IF(CAPITAL=0,1000000,10000);   
  40. DD:=REF(LLV(CLOSE,120),1);   
  41. J:="KDJ.J";   
  42. DDZ:=DD*17;   
  43. DDY:=((QJ2+QJ4)-(QJ1+QJ3))/SUM(VOL,10)*100;   
  44. 弄点钱玩:=CROSS(J,0) AND ((DDX>0 AND DDY>0) OR DDZ>400);   
  45. A2:="MACD.MACD"(26,12,9);   
  46. A1:=C/REF(C,1)<1.099 AND A2>REF(A2,1) ;   
  47. A3:=COUNT(DDX>0.045,10)>2;   
  48. 弄点钱玩2:=弄点钱玩 AND DDX >0.055 AND DDY>0.07 AND A1 AND A3;   
  49. DRAWTEXT(弄点钱玩2>0,L*0.97,'【弄点钱玩玩】'),COLORYELLOW;   
  50. DRAWTEXT(FILTER(REF(L,1)<MA4 AND C>MA4,7),L*0.96,'短'),COLORMAGENTA;   
  51. {资金}   
  52. TODAY:=DYNAINFO(7)=CLOSE and (ORDER(1)=0 and ORDER(2)=0);{判断是否有理想数据}   
  53. {TODAY:="ddx.ddx"=0;}{判断是否有正版数据}   
  54. Ddmr:=IF(TODAY,("DDEDATA@BIGORDER"(1,2)-"DDEDATA@BIGORDER"(2,2)),(bigorder(1,2)-bigorder(2,2)))*vol/capital*100;   
  55. Ddmrs:=sum(Ddmr,0);   
  56. Chb:=IF(TODAY,"DDEDATA@BIGORDER"(1,3),bigorder(1,3))*AMOUNT;   
  57. Dhb:=IF(TODAY,("DDEDATA@BIGORDER"(1,2)-"DDEDATA@BIGORDER"(1,3)),(bigorder(1,2)-bigorder(1,3)))*AMOUNT;   
  58. Zhb:=IF(TODAY,("DDEDATA@BIGORDER"(1,1)-"DDEDATA@BIGORDER"(1,2)),(bigorder(1,1)-bigorder(1,2)))*AMOUNT;   
  59. Xhb:=IF(TODAY,(1-"DDEDATA@BIGORDER"(1,1)),(1-bigorder(1,1)))*AMOUNT;   
  60. Chs:=IF(TODAY,"DDEDATA@BIGORDER"(2,3),bigorder(2,3))*AMOUNT;   
  61. Dhs:=IF(TODAY,("DDEDATA@BIGORDER"(2,2)-"DDEDATA@BIGORDER"(2,3)),(bigorder(2,2)-bigorder(2,3)))*AMOUNT;   
  62. Zhs:=IF(TODAY,("DDEDATA@BIGORDER"(2,1)-"DDEDATA@BIGORDER"(2,2)),(bigorder(2,1)-bigorder(2,2)))*AMOUNT;   
  63. Xhs:=IF(TODAY,(1-"DDEDATA@BIGORDER"(2,1)),(1-bigorder(2,1)))*AMOUNT;   
  64. 散资:=(xhb-xhs)/10000;   
  65. 中资:=(zhb-zhs)/10000;   
  66. 大资:=(dhb-dhs)/10000;   
  67. 超资:=(chb-chs)/10000;   
  68. 超资增仓:=超资;   
  69. 大资增仓:=大资;   
  70. 中资增仓:=中资;   
  71. 散资增仓:=散资;   
  72. BBD净额:=(超资+大资);   
  73. DRAWTEXTREL(5,85,'BBD (万):'+NUMTOSTRN(BBD净额,0)),LINETHICK1,Color0080FF;   
  74. DRAWTEXTREL(5,155,'超资(万):'+NUMTOSTRN(超资增仓,0)),LINETHICK1,COLORYELLOW;   
  75. DRAWTEXTREL(5,225,'大资(万):'+NUMTOSTRN(大资增仓,0)),LINETHICK1,Color62FFFF;   
  76. DRAWTEXTREL(5,295,'中资(万):'+NUMTOSTRN(中资增仓,0)),LINETHICK1,ColorACFFFF;   
  77. DRAWTEXTREL(5,365,'散资(万):'+NUMTOSTRN(散资增仓,0)),LINETHICK1,ColorFFFFFF;   
  78. DRAWRECTABS(0,118,270,0,1),COLOR00FF00;   
  79. zln:=REF(IF(TODAY,IF(TODAY,"DDEDATA@BIGORDER"(1,2),SELFDATA('特大买入')+SELFDATA('大单买入')),bigorder(1,2)),0);   
  80. zlm:=REF(IF(TODAY,IF(TODAY,"DDEDATA@BIGORDER"(2,2),SELFDATA('特大卖出')+SELFDATA('大单卖出')),bigorder(2,2)),0);   
  81. tdn:=REF(IF(TODAY,IF(TODAY,"DDEDATA@BIGORDER"(1,3),SELFDATA('特大买入')),bigorder(1,3)),0);   
  82. tdm:=REF(IF(TODAY,IF(TODAY,"DDEDATA@BIGORDER"(2,3),SELFDATA('特大卖出')),bigorder(2,3)),0);   
  83. ddn:=REF(IF(TODAY,IF(TODAY,("DDEDATA@BIGORDER"(1,2)-"DDEDATA@BIGORDER"(1,3)),SELFDATA('大单买入')),(bigorder(1,2)-bigorder(1,3))),0);   
  84. ddm:=REF(IF(TODAY,IF(TODAY,("DDEDATA@BIGORDER"(2,2)-"DDEDATA@BIGORDER"(2,3)),SELFDATA('大单卖出')),(bigorder(2,2)-bigorder(2,3))),0);   
  85. zdn:=REF(IF(TODAY,IF(TODAY,("DDEDATA@BIGORDER"(1,1)-"DDEDATA@BIGORDER"(1,2)),SELFDATA('中单买入')),(bigorder(1,1)-bigorder(1,2))),0);   
  86. zdm:=REF(IF(TODAY,IF(TODAY,("DDEDATA@BIGORDER"(2,1)-"DDEDATA@BIGORDER"(2,2)),SELFDATA('中单卖出')),(bigorder(2,1)-bigorder(2,2))),0);   
  87. sdn:=REF(IF(TODAY,IF(TODAY,1-("DDEDATA@BIGORDER"(1,1)),1-(SELFDATA('特大买入')+SELFDATA('大单买入')+SELFDATA('中单买入'))),1-(bigorder(1,1))),0);   
  88. sdm:=REF(IF(TODAY,IF(TODAY,1-("DDEDATA@BIGORDER"(2,1)),1-(SELFDATA('特大卖出')+SELFDATA('大单卖出')+SELFDATA('中单卖出'))),1-(bigorder(2,1))),0);   
  89. tdj:=tdn-tdm;   
  90. ddj:=ddn-ddm;   
  91. zdj:=zdn-zdm;   
  92. sdj:=sdn-sdm;   
  93. zlj:=zln-zlm;   
  94. DRAWTEXTREL(140,85,'占'+numtostrn(((zlj))*100,1)+'%'),Color0080FF;   
  95. DRAWTEXTREL(140,155,'占'+numtostrn((tdj)*100,1)+'%'),COLORYELLOW;   
  96. DRAWTEXTREL(140,225,'占'+numtostrn((ddj)*100,1)+'%'),Color62FFFF;   
  97. DRAWTEXTREL(140,295,'占'+numtostrn((zdj)*100,1)+'%'),ColorACFFFF;   
  98. DRAWTEXTREL(140,365,'占'+numtostrn((sdj)*100,1)+'%'),ColorFFFFFF;   
  99. DRAWTEXTREL(200,85,numtostrn(((zlj))*V,0)+'手'),Color0080FF;   
  100. DRAWTEXTREL(200,155,numtostrn((tdj)*V,0)+'手'),COLORYELLOW;   
  101. DRAWTEXTREL(200,225,numtostrn((ddj)*V,0)+'手'),Color62FFFF;   
  102. DRAWTEXTREL(200,295,numtostrn((zdj)*V,0)+'手'),ColorACFFFF;   
  103. DRAWTEXTREL(200,365,numtostrn((sdj)*V,0)+'手'),ColorFFFFFF;   
  104. DRAWTEXTREL(280,85,'仓 '+NUMTOSTRN(50+Sum((VOL/CAPITAL)*100*((zlj)),0),1)+'%'),Color0080FF;   
  105. DRAWTEXTREL(280,155,'仓 '+NUMTOSTRN(25+Sum((VOL/CAPITAL)*100*(tdj),0),1)+'%'),COLORYELLOW;   
  106. DRAWTEXTREL(280,225,'仓 '+NUMTOSTRN(25+Sum((VOL/CAPITAL)*100*(ddj),0),1)+'%'),Color62FFFF;   
  107. DRAWTEXTREL(280,295,'仓 '+NUMTOSTRN(25+Sum((VOL/CAPITAL)*100*(zdj),0),1)+'%'),ColorACFFFF;   
  108. DRAWTEXTREL(280,365,'仓 '+NUMTOSTRN(25+Sum((VOL/CAPITAL)*100*(sdj),0),1)+'%'),ColorFFFFFF;   
  109.    

6均线资金 (主图 源码)

资源下载链接   资源大小:3KB

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