决策主力股票论坛|今日股市行情大盘分析查询

 找回密码
 立即/注册

扫一扫,访问微社区

QQ登录

只需一步,快速开始

搜索
上证指数 2891.70 -14.26 -0.49% 香港恒生 27705.939 +48.697 +0.18% 日经225 21178.50 -104.87 -0.49% 韩国综合 2055.23 -9.63 -0.47%
道琼斯 25776.61 -100.72 -0.39% 纳斯达克 7750.84 -34.88 -0.45% 英国富时 7343.97 +15.05 +0.21% 德国DAX 12169.44 +25.97 +0.21%
人民币 6.9064 +0.0040 +0.06% 原油 61.30 -2.90% NYMEX原油 黄金 1273.3 +0.01% 黄金全球股市行情 2019年05月23日08时43分
查看: 24466|回复: 0

[通达信] 通达信资金分析优化主图指标公式

[复制链接]
发表于 2019-2-28 14:03:02 | 显示全部楼层 |阅读模式

  1. DRAWGBK(C>0, RGB(0,10,10),RGB(88,0,0),0,'24',0);
  2. DRAWNUMBER(ISLASTBAR,C,C),COLORMAGENTA;
  3. MA5:MA(CLOSE,5),COLORFFFFFF;
  4. MA17:MA(CLOSE,17),COLORYELLOW;
  5. MA55:MA(CLOSE,55),COLORMAGENTA;
  6. MA72:MA(CLOSE,72),COLORGREEN;
  7. MA200:MA(CLOSE,200),COLORE67010;
  8. DRAWKLINE(HIGH, OPEN,LOW, CLOSE);
  9. 射线3X: DRAWLINE(L=LLV(L,3),L,H=HHV(H,3),L,0),COLORLIGRAY;
  10. 射线5: DRAWLINE(H=HHV(H,5),H,L=LLV(L,5),L,0),COLORLIGRAY;
  11. 射线5X: DRAWLINE(L=LLV(L,5),L,H=HHV(H,5),L,0),COLORLIGRAY;
  12. 射线7: DRAWLINE(H=HHV(H,7),H,L=LLV(L,7),L,0),COLORE67010;
  13. 射线7X: DRAWLINE(L=LLV(L,7),L,H=HHV(H,7),L,0),COLORE67010;
  14. 射线10:DRAWLINE(H=HHV(H,10),H,L=LLV(L,10),L,0),COLOR0000FF;
  15. 射线10X:DRAWLINE(L=LLV(L,10),L,H=HHV(H,10),L,0),COLOR0000FF;
  16. 涨幅大于9.94:=C/REF(C,1)>1.09;
  17. 超B:=L2_AMO(0,2)/10000.0;
  18. 大B:=L2_AMO(1,2)/10000.0;
  19. 中B:=L2_AMO(2,2)/10000.0;
  20. 小B:=L2_AMO(3,2)/10000.0;
  21. 超S:=-L2_AMO(0,3)/10000.0;
  22. 大S:=-L2_AMO(1,3)/10000.0;
  23. 中S:=-L2_AMO(2,3)/10000.0;
  24. 小S:=-L2_AMO(3,3)/10000.0;
  25. 净流入亿:((超B+大B+中B+小B)+(超S+大S+中S+小S))/100,COLORCYAN,NODRAW;
  26. 中单:(中B+中S)/100,COLORLIGRAY,NODRAW;
  27. 大宗净入:=((超B+大B)+(超S+大S))/100;
  28. 超大单:=((超B)+(超S))/100;
  29. 大单:=((大B)+(大S))/100;
  30. 小单:=((小B)+(小S))/100;
  31. 大宗进:=((超B)+(大B))/100;
  32. 大宗出:=((超S)+(大S))/100;
  33. 非大宗进:=((中B)+(小B))/100;
  34. 非大宗出:=((中S)+(小S))/100;
  35. 资金净入:=((超B+大B+中B+小B)+(超S+大S+中S+小S))/100;
  36. 净入5日:=SUM(资金净入,5);
  37. 净入10日:=SUM(资金净入,10);
  38. 主力资金线:=(L2_AMO(0,0)+L2_AMO(1,0)-L2_AMO(0,1)-L2_AMO(1,1))/100.0,LINETHICK2;
  39. 主力买力度:=LARGEINTRDVOL*100/VOL;
  40. 主力卖力度:=LARGEOUTTRDVOL*100/VOL;
  41. AA:=CONST(MAX(ABS(净流入亿),MAX(ABS(大宗净入),MAX(ABS(大宗进),MAX(ABS(大宗出),MAX(ABS(非大宗进),ABS(非大宗出)))))))*3,NODRAW;
  42. DRAWRECTREL(0,CONST(830-(ABS(净流入亿)*500/AA)),30,945,IF(CONST(净流入亿)>0,RGB(250,150,10),RGB(0,100,100)));
  43. DRAWRECTREL(35,CONST(830-(ABS(大宗净入)*500/AA)),65,945,IF(CONST(大宗净入)>0,RGB(250,150,10),RGB(0,100,100)));
  44. DRAWNUMBER_FIX(CURRBARSCOUNT=1,0.000,0.88,0,INTPART(净流入亿)),COLORWHITE;
  45. DRAWNUMBER_FIX(CURRBARSCOUNT=1,0.034,0.88,0,INTPART(大宗净入)),COLORWHITE;
  46. DRAWTEXT_FIX(CURRBARSCOUNT=1,0.000,1,0,'净流入'),COLORWHITE;
  47. DRAWTEXT_FIX(CURRBARSCOUNT=1,0.034,1,0,'净大宗'),COLORWHITE;
  48. DRAWRECTREL(77,CONST(830-(ABS(大宗进)*500/AA)),97,945,IF(CONST(大宗进)>0,RGB(255,0,0),RGB(0,0,255)));
  49. DRAWRECTREL(99,CONST(830-(ABS(大宗出)*500/AA)),119,945,IF(CONST(大宗出)0,RGB(139,0,139),RGB(23,155,255)));
  50. DRAWRECTREL(149,CONST(830-(ABS(非大宗出)*500/AA)),169,945,IF(CONST(非大宗出)0,RGB(255,0,255),RGB(23,155,255)));
  51. DRAWRECTREL(17,CONST(830-(ABS(大单)*500/AAB))/2,32,460,IF(CONST(大单)>0,RGB(255,0,255),RGB(23,155,255)));
  52. DRAWRECTREL(34,CONST(830-(ABS(中单)*500/AAB))/2,49,460,IF(CONST(中单)>0,RGB(255,0,255),RGB(23,155,255)));
  53. DRAWRECTREL(51,CONST(830-(ABS(小单)*500/AAB))/2,66,460,IF(CONST(小单)>0,RGB(255,0,255),RGB(23,155,255)));
  54. DRAWTEXT_FIX(CURRBARSCOUNT=1,0.000,0.460,0,'超   大   中  散'),COLORWHITE;
  55. DRAWNUMBER_FIX(CURRBARSCOUNT=1,0.000,0.400,0,INTPART(超大单)),COLORWHITE;
  56. DRAWNUMBER_FIX(CURRBARSCOUNT=1,0.017,0.400,0,INTPART(大单)),COLORWHITE;
  57. DRAWNUMBER_FIX(CURRBARSCOUNT=1,0.034,0.400,0,INTPART(中单)),COLORWHITE;
  58. DRAWNUMBER_FIX(CURRBARSCOUNT=1,0.051,0.400,0,INTPART(小单)),COLORWHITE;
  59. DRAWTEXT_FIX(CURRBARSCOUNT=1,0,0,0,'【资金分析¥百万元】'),COLORWHITE;
  60. AAC:=CONST(MAX(ABS(净入5日),ABS(净入10日))),NODRAW;
  61. DRAWRECTREL(78,CONST(830-(ABS(净入5日)*500/AAC))/2,110,460,IF(CONST(净入5日)>0,RGB(250,150,10),RGB(23,133,255)));
  62. DRAWRECTREL(116,CONST(830-(ABS(净入10日)*500/AAC))/2,148,460,IF(CONST(净入10日)>0,RGB(250,150,10),RGB(23,133,255)));
  63. DRAWNUMBER_FIX(CURRBARSCOUNT=1,0.078,0.400,0,INTPART(净入5日)),COLORWHITE;
  64. DRAWNUMBER_FIX(CURRBARSCOUNT=1,0.115,0.400,0,INTPART(净入10日)),COLORWHITE;
  65. DRAWTEXT_FIX(CURRBARSCOUNT=1,0.075,0.460,0,'流入5日  流入10日'),COLORWHITE;
  66. DDX:=(LARGEINTRDVOL-LARGEOUTTRDVOL)*1000/FINANCE(7);
  67. DDY:=IF(TRADENUM>0,(TRADEOUTNUM-TRADEINNUM)*100/TRADENUM,0);
  68. DDZ:=IF(TRADENUM>0,(LARGETRDINNUM-LARGETRDOUTNUM)/TRADENUM*100,0);
  69. DRAWRECTREL(118,0,165,40,IF(CONST(DDX)>0,RGB(255,0,0),RGB(0,50,0)));
  70. DRAWRECTREL(118,45,165,85,IF(CONST(DDY)>0,RGB(255,0,0),RGB(0,50,0)));
  71. DRAWRECTREL(118,90,165,130,IF(CONST(DDZ)>0,RGB(255,0,0),RGB(0,50,0)));
  72. DRAWTEXT_FIX(1,0.123,0.00,0,STRCAT('DDX:',CON2STR(DDX,0))),COLORYELLOW,COLORWHITE;
  73. DRAWTEXT_FIX(1,0.123,0.04,0,STRCAT('DDY:',CON2STR(DDY,0))),COLORYELLOW,COLORWHITE;
  74. DRAWTEXT_FIX(1,0.123,0.09,0,STRCAT('DDZ:',CON2STR(DDZ,0))),COLORYELLOW,COLORWHITE;
  75. AAD:=CONST(MAX(ABS(主力买力度),ABS(主力卖力度)))*4,NODRAW;
  76. DRAWRECTREL(0,515,CONST(ABS(主力买力度)*500/AAD),568,IF(CONST(主力买力度)>0,RGB(139,0,139),RGB(0,255,255)));
  77. DRAWRECTREL(0,570,CONST(ABS(主力卖力度)*500/AAD),623,IF(CONST(主力卖力度)>0,RGB(23,125,255),RGB(0,255,255)));
  78. DRAWTEXT_FIX(1,0,0.516,0,STRCAT('主力买力度:',CON2STR(主力买力度,0))),COLORRED,COLORWHITE;
  79. DRAWTEXT_FIX(1,0,0.574,0,STRCAT('主力卖力度:',CON2STR(主力卖力度,0))),COLORRED,COLORWHITE;
  80. 涨幅:=(C-REF(C,1))/REF(C,1)*100,NODRAW;
  81. STICKLINE(涨幅大于9.94,C,O,4,0),COLORRED;
  82. STICKLINE(涨幅1,0.86,0.95,0,'★外盘大1倍以上'),COLORWHITE;
  83. DRAWTEXT_FIX((DYNAINFO(23)/DYNAINFO(22))>2,0.86,0.95,0,'★外盘大2倍以上'),COLORWHITE;
  84. DRAWTEXT_FIX((DYNAINFO(23)/DYNAINFO(22))>3,0.86,0.95,0,'★外盘大3倍以上'),COLORWHITE;
  85. {http://jue-ce.com}
  86. N8:=STRCAT(CON2STR(YEAR,0),' 年 ');
  87. Y8:=STRCAT(CON2STR(MONTH,0),' 月 ');
  88. R8:=STRCAT(CON2STR(DAY,0),' 日 ');
  89. SJ8:=STRCAT(STRCAT(N8,Y8), R8);
  90. DRAWTEXT_FIX(C>0,0.88,0,0,SJ8),COLOR00FFFF;
复制代码
回复

使用道具 举报

您需要登录后才可以回帖 登录 | 立即/注册

本版积分规则



手机版|今日股市行情|联系我们|决策主力股票论坛 ( 鄂ICP备15024813号-1)点击这里给我发消息

GMT+8, 2019-5-23 08:47

Powered by 今日股市

© 2001-2017 http://jue-ce.com/

快速回复 返回顶部 返回列表