六六公式网

 找回密码
 立即注册
微信扫一扫 分享朋友圈

已有 11405 人浏览分享

开启左侧

实战分时T+0做T神器(指标 分时主图 通达信 贴图)

[复制链接]
11405 4
本帖最后由 全线飘红 于 2018-4-22 00:13 编辑

下载指标源码后导入公式管理器编辑成主图指标,完成后在分时图中点鼠标右键显现选择项,在分时主图指标中选分时T+0指标,即可清晰看见分时图的高低点提示!

1、实战分时T+0做T神器主图公式:
3060221_83350495_t05.png

3060221_d73f650e_t06.png
  1. {实战分时T+0做T神器主图公式源码:}
  2. MA30:=EMA(CLOSE,30);
  3. 强弱:=EMA(CLOSE,900);
  4. STICKLINE((MA30>强弱),MA30,强弱,0,-1),COLORLIGRAY;
  5. STICKLINE((MA30<强弱),MA30,强弱,0,-1),COLORLICYAN;
  6. H1:=MAX(DYNAINFO(3),DYNAINFO(5));
  7. L1:=MIN(DYNAINFO(3),DYNAINFO(6));
  8. P1:=H1-L1;
  9. 阻力:L1+P1*7/8,COLORLIMAGENTA,DOTLINE;
  10. 支撑:L1+P1*0.5/8,COLORCYAN,DOTLINE;
  11. 中:(支撑+阻力)/2,COLORLIGRAY,POINTDOT;
  12. 均价:SUM(V*C,0)/SUM(V,0),COLORYELLOW,DOTLINE;
  13. 现价:CLOSE,COLORWHITE,LINETHICK3;
  14. DRAWTEXT(ISLASTBAR AND 现价,现价,STRCAT('←',CON2STR(现价,2))),COLORYELLOW;
  15. STICKLINE(CROSS(支撑,现价),支撑,中,0,-1),COLORYELLOW;
  16. STICKLINE(CROSS(现价,阻力),阻力,中,0,-1),COLORGREEN;
  17. DRAWTEXT(LONGCROSS(支撑,现价,2),C*0.9982,' 买'),COLORYELLOW;
  18. DRAWTEXT(LONGCROSS(现价,阻力,2),C*1.0018,' 卖'),COLORCYAN;
  19. STICKLINE(C<支撑,支撑,C,1,0),COLORYELLOW;
  20. DRAWICON(CROSS(支撑,现价),(支撑-中)/5+支撑,26);
  21. STICKLINE(C>阻力,阻力,C,1,0),COLORLIGREEN;
  22. DRAWICON(CROSS(现价,阻力),阻力-(支撑-中)/5,15);
  23. DRAWTEXT(CURRBARSCOUNT=8,阻力+0.003,'顶'),COLORYELLOW;
  24. DRAWTEXT(CURRBARSCOUNT=8,支撑-0.003,'底'),COLORGREEN;
  25. DRAWTEXT(CURRBARSCOUNT=8,(支撑+阻力)/2,'中'),COLORLIRED;
  26. 成交额:=V*C/100,NODRAW;
  27. A2:=SUM((IF(((成交额/8>20) AND (CLOSE>(REF(CLOSE,1)))),成交额,0)),0);
  28. A3:=SUM((IF(((成交额/8>20) AND (CLOSE<(REF(CLOSE,1)))),成交额,0)),0);
  29. A6:=(A2+A3);
  30. A7:=IF((ISLASTBAR),((100*A2)/A6),0);
  31. A8:=IF((ISLASTBAR),((100*A3)/A6),0);
  32. DD1:=1;
  33. AAA1:=STRCAT(STRCAT('机构买',CON2STR((100*A2)/A6,0)),'%');
  34. AAA2:=STRCAT(STRCAT('机构卖',CON2STR((100*A3)/A6,0)),'%');
  35. AAA3:=STRCAT(STRCAT('机构总买入',CON2STR((100*(A2-A3))/A6,0)),'%');
  36. A000:=DRAWTEXT_FIX(DD1=1,0,0.02,0,AAA1);
  37. A001:=DRAWTEXT_FIX(DD1=1,0,0.13,0,AAA2);
  38. DRAWTEXT_FIX(DD1=1,0.842,1,0,AAA3),COLORYELLOW;
  39. 现手买:BUYVOL*DYNAINFO(7)*100/10000 COLOR0000FF,NODRAW;
  40. 现手卖:SELLVOL*DYNAINFO(7)*100/10000 COLOR00FF00,NODRAW;
  41. 合:=ABS(现手买)+ABS(现手卖)COLOR80FFFF,NODRAW;
  42. 差:=ABS(现手买)-ABS(现手卖)COLOR80FFFF,NODRAW;
  43. MPB1:=ABS(现手买)/合*100;
  44. MPB2:=ABS(现手卖)/合*100;
  45. TESTSKIP(NOT(现手买 OR 现手卖 OR 合 OR 差 OR MPB1 OR MPB2)!=0);
  46. DRAWRECTREL(595,1000,795,940,RGB(0,128,0));
  47. DRAWRECTREL(595,995,795,945,RGB(0,148,0));
  48. DRAWRECTREL(595,990,795,950,RGB(0,168,0));
  49. DRAWRECTREL(595,985,795,955,RGB(0,188,0));
  50. DRAWRECTREL(595,980,795,960,RGB(0,208,0));
  51. DRAWRECTREL(595,975,795,965,RGB(0,228,0));
  52. DRAWRECTREL(595,970,795,970,RGB(0,248,0));
  53. DRAWRECTREL(595,1000,595+现手买*210/合,940,RGB(128,0,0));
  54. DRAWRECTREL(595,995,595+现手买*210/合,945,RGB(148,0,0));
  55. DRAWRECTREL(595,990,595+现手买*210/合,950,RGB(168,0,0));
  56. DRAWRECTREL(595,985,595+现手买*210/合,955,RGB(188,0,0));
  57. DRAWRECTREL(595,980,595+现手买*210/合,960,RGB(208,0,0));
  58. DRAWRECTREL(595,975,595+现手买*210/合,965,RGB(228,0,0));
  59. DRAWRECTREL(595,970,595+现手买*210/合,970,RGB(248,0,0));
  60. DRAWRECTREL(595+现手买*210/合,940,595+现手买*210/合,1000,RGB(128,0,0));
  61. DRAWRECTREL(795,940,795,1000,RGB(0,0.0,10));
  62. DRAWRECTREL(594.8,939.8,594.8,1000,RGB(0,0,10));
  63. DRAWRECTREL(594.8,939.8,594.8,939.8,RGB(0,0,10));
  64. DRAWRECTREL(594.8,1000,594.8,1000,RGB(0,0,10));
  65. DRAWTEXT_FIX(1,0.560,0.89,0,STRCAT(STRCAT('',CON2STR(现手买,1)),'万')),COLORRED;
  66. DRAWTEXT_FIX(1,0.800,0.89,0,STRCAT(STRCAT('',CON2STR(现手卖,1)),'万')),COLORGREEN;
  67. DRAWTEXT_FIX(CURRBARSCOUNT=1 AND(差)>0,0.678,0.888,0,STRCAT(' ',STRCAT(CON2STR(差,1),'万'))) COLORRED;
  68. DRAWTEXT_FIX(CURRBARSCOUNT=1 AND(差)<0,0.678,0.888,0,STRCAT(' ',STRCAT(CON2STR(差,1),'万'))) COLORGREEN;
  69. DRAWTEXT_FIX(CURRBARSCOUNT=1 AND(差)=0,0.678,0.888,0,STRCAT(' ',STRCAT(CON2STR(差,1),'万'))) COLOR80FFFF;
  70. DRAWTEXT_FIX(1,0.800,0.98,0,STRCAT(STRCAT(' ',CON2STR(MPB2,1)),'%')),COLORGREEN;
  71. DRAWTEXT_FIX(1,0.560,0.98,0,STRCAT(STRCAT('',CON2STR(MPB1,1)),'%')),COLORRED;
  72. 市盈率:=STRCAT('市盈率: ',CON2STR(C/FINANCE(33),2));
  73. 市销率:=STRCAT('市销率: ',CON2STR(C/(FINANCE(20)/FINANCE(1)),2));
  74. 市净率:=STRCAT('市净率: ',CON2STR(C/FINANCE(34),2));
  75. 净资收益率:=STRCAT('净资收益率: ',CON2STR(FINANCE(33)/FINANCE(34)*100,2));
  76. 毛利率:=STRCAT('毛利率: ',CON2STR((FINANCE(20)-FINANCE(21))/FINANCE(20)*100,2));
  77. 净利润率:=STRCAT('净利润率 ',CON2STR(FINANCE(30)/FINANCE(20)*100,2));
  78. 主营利润率:=STRCAT('主营利润率 ',CON2STR(FINANCE(23)/FINANCE(20)*100,2));
  79. 利润同比:=STRCAT('利润同比: ',CON2STR(FINANCE(43),2));
  80. 收入同比:=STRCAT('收入同比: ',CON2STR(FINANCE(44),2));
  81. X1:=(FINANCE(11)-FINANCE(15))/FINANCE(10)*1.2;
  82. X2:=(FINANCE(31)+FINANCE(17))/FINANCE(10)*1.4;
  83. X3:=FINANCE(23)/FINANCE(10)*3.3;
  84. X4:=FINANCE(19)/FINANCE(15)*0.6;
  85. X5:=FINANCE(20)/FINANCE(15)*0.999;
  86. Z值:=X1+X2+X3+X4+X5;
  87. 预警:=IF(Z值<1.2,'重警',IF(Z值>=1.2 AND Z值<2.6,'轻警','无警'));
  88. 财务预警:=STRCAT('财务预警: ',STRCAT(预警,STRCAT('-Z值: ',CON2STR(Z值,3))));
  89. 优质资产率:=STRCAT(' 优质资产率: ',CON2STR((FINANCE(19)-FINANCE(22)-FINANCE(27))/FINANCE(19),2));
  90. 现金负债比:=STRCAT(' 现金负债比: ',CON2STR(FINANCE(25)/FINANCE(15),3));
  91. 财务系数:=STRCAT('风险系数: ',STRCAT(STRCAT(财务预警,优质资产率),现金负债比));
  92. DRAWTEXT_FIX(ISLASTBAR,0.222,0.96,0,财务系数),COLORLIBLUE;
  93. D1:=YEAR AND MONTH AND DAY;
  94. AA1:=STRCAT(CON2STR(YEAR,0),'年');
  95. AA2:=STRCAT(CON2STR(MONTH,0),'月');
  96. AA3:=STRCAT(CON2STR(DAY,0),'日');
  97. AA4:=STRCAT('星期',IF(WEEKDAY=1,'一',IF(WEEKDAY=2,'二',IF(WEEKDAY=3,'三',IF(WEEKDAY=4,'四',IF(WEEKDAY=5,'五',IF(WEEKDAY=6,'六','日')))))));
  98. AA:=STRCAT(STRCAT(STRCAT(AA1,AA2),STRCAT(AA3,AA4)),'');
  99. DRAWTEXT_FIX(D1,0.888,0.001,0,AA),COLORLIGRAY;
  100. MZ0:=(BARSLAST(((HOUR=9) AND (MINUTE=31)))+1);
  101. 上穿分时:IF(((SETCODE<2) AND (CONST(MZ0)<241)),CONST(IF((TIME<1000),HHV(CLOSE,0),SUM((IF((TIME=1000),1,0)*HHV(CLOSE,0)),0))),DRAWNULL),LINETHICK1,COLORLIRED;
  102. 底支:IF(((SETCODE<2) AND (CONST(MZ0)<241)),CONST(IF((TIME<1000),HHV(CLOSE,0),SUM((IF((TIME=1000),1,0)*LLV(CLOSE,0)),0))),DRAWNULL),LINETHICK1,COLORLIGREEN;
  103. STICKLINE(TIME=931 OR TIME=1000,上穿分时,底支,0,-1),COLORLIBLUE;
  104. 分时上突:=CROSS(C,上穿分时);
  105. 上突:=C<上穿分时 AND 上穿分时>底支;
  106. DRAWICON(分时上突,C,5);
  107. 股价支撑线:=MA(CLOSE,20);
  108. 底价线:股价支撑线-2*STD(CLOSE,20),COLORMAGENTA,LINETHICK2;
  109. DRAWTEXT_FIX(1,0.0001,0.00,0,STRCAT(STRCAT('【今日强势有效突破】',CON2STR(上穿分时,2)),' 元 买入稳赚')),COLORYELLOW;
  110. DRAWTEXT_FIX(1,0.5001,0.00,0,STRCAT(STRCAT('【底部得到有效支撑】',CON2STR(底支,2)),' 元 可以参考')),COLORLIRED;
复制代码


2、分时T+0做T神器主图:
3060221_18406d5d_分时T01.png

3060221_b7cc1391_T02.png



  1. {分时T+0做T神器主图源码:}

  2. N0:=STRCAT(CON2STR(YEAR,0),' 年 ');
  3. Y:=STRCAT(CON2STR(MONTH,0),' 月 ');
  4. R:=STRCAT(CON2STR(DAY,0),' 日 ');
  5. SJ:=STRCAT(STRCAT(N0,Y), R);
  6. DRAWTEXT_FIX(C>0,0.68,0,0,SJ);
  7. A:=O>C AND C>REF(C,1) AND O/REF(C,1)>1.03;  
  8. DRAWTEXT(ABS(A)>0,L, '假阴'),COLORYELLOW;
  9. DRAWICON(C<O AND C>REF(C,1),H,6);{假阴真阳}
  10. 均价5:AMOUNT/VOL/100,NODRAW;
  11. 假阴0:=O>C AND 均价5>REF(C,1);
  12. DRAWTEXT(假阴0,L-0.2,'假阴真阳'),COLORE8E8E8;
  13. STICKLINE(假阴0,O,C,1,0),COLORRED;
  14. DRAWTEXT_FIX(ISLASTBAR,0.5,0.05,0,CODE),COLORYELLOW;
  15. DRAWTEXT_FIX(ISLASTBAR,0.55,0.05,0,STKNAME)COLORYELLOW;
  16. DRAWTEXT_FIX(ISLASTBAR,0.6,0.05,0,HYBLOCK),COLORYELLOW;
  17. DRAWTEXT_FIX(ISLASTBAR,0.6,0,0,DYBLOCK),COLORYELLOW;
  18. DRAWTEXT_FIX(ISLASTBAR,0.55,0.85,0,GNBLOCK),COLORYELLOW;
  19. DRAWTEXT_FIX(ISLASTBAR,0.55,0.90,0,FGBLOCK),COLORYELLOW;
  20. DRAWTEXT_FIX(ISLASTBAR,0.55,0.95,0,ZSBLOCK),COLORYELLOW;
  21. 时间:=TIME=100000;
  22. N:=BARSLAST(时间),COLOR808080;
  23. 常数:CONST(IF(N=0,C,REF(C,N))),COLOR004848,DOTLINE;
  24. CS1:=CONST(IF(N,HHV(H,0),REF(HHV(H,0),N))),COLORWHITE;
  25. CS2:=CONST(IF(N,LLV(L,0),REF(LLV(L,0),N))),COLORWHITE;
  26. STICKLINE(时间=1,CS1,CS2,-1,0),COLOR808080;  
  27. H1:=MAX(DYNAINFO(3),DYNAINFO(5));
  28. L1:=MIN(DYNAINFO(3),DYNAINFO(6));
  29. P1:=H1-L1;
  30. 阻力:L1+P1*7/8,COLORFFFFFF,DOTLINE;
  31. DRAWTEXT(CURRBARSCOUNT=1,阻力,'      阻力'),COLORFFFFFF;
  32. 支撑:L1+P1*0.5/8,COLORFFFFFF,DOTLINE;
  33. DRAWTEXT(CURRBARSCOUNT=1,支撑,'      支撑'),COLORFFFFFF;
  34. 中:(支撑+阻力)/2,COLORFFFFFF,DOTLINE;
  35. 现价:CLOSE,COLORWHITE,LINETHICK1;
  36. MR:=C<支撑 AND CROSS(C,REF(C,2));
  37. STICKLINE(CROSS(现价,支撑),C,中,2,0),COLOR00CCCC;
  38. STICKLINE(MR=1,支撑,中,2,0),COLOR00CCCC;
  39. DRAWICON(MR=1 OR CROSS(现价,支撑),中,34);
  40. STICKLINE(CROSS(支撑,现价),支撑,(支撑-中)/5+支撑,2,0),COLORMAGENTA;
  41. MC:=C>阻力 AND CROSS(REF(C,2),C);
  42. STICKLINE(CROSS(阻力,现价),C,中,2,0),COLOR8C8C00;
  43. STICKLINE(MC=1,阻力,中,2,0),COLOR8C8C00;
  44. DRAWICON(MC=1 OR CROSS(阻力,现价),中,35);
  45. STICKLINE(CROSS(现价,阻力),阻力,阻力-(支撑-中)/5,2,0),COLORGREEN;
  46. DRAWTEXT(ISLASTBAR,(支撑+阻力)/2,'      中'),COLORFFFFFF;

  47. 最新:C,LINETHICK1,COLORWHITE;
  48. IF(C>=REF(C,1),C,DRAWNULL),LINETHICK1,COLORWHITE;
  49. AA:=SUM(AMOUNT,BARSCOUNT(C))/SUM(VOL*100,BARSCOUNT(C));
  50. BB:=BETWEEN(C/AA,C+H,C-H);
  51. DRAWICON(ISLASTBAR AND C>REF(C,1),C,1);
  52. DRAWICON(ISLASTBAR AND C<REF(C,1),C,2);
复制代码



3、吸筹分时T+0准确无漂移主图:
3060221_7550e979_T03.png

3060221_a1887c2a_T04.png

  1. {吸筹分时T+0准确无漂移分时主图源码:}
  2. V1:=(C*2+H+L)/4*10; V2:=EMA(V1,13)-EMA(V1,34); V3:=EMA(V2,5); V4:=2*(V2-V3)*5.5;
  3. 主力撤: IF(V4<=0,V4,0),COLORBLUE;
  4. 主力进: IF(V4>=0,V4,0),COLORFF00FF;
  5. V5:=(HHV(INDEXH,8)-INDEXC)/(HHV(INDEXH,8)-LLV(INDEXL,8))*8;
  6. V6:=EMA(3*V5-2*SMA(V5,18,1),5);
  7. V7:=(INDEXC-LLV(INDEXL,8))/(HHV(INDEXH,8)-LLV(INDEXL,8))*10;
  8. V8:=(INDEXC*2+INDEXH+INDEXL)/4; V9:=EMA(V8,13)-EMA(V8,34);
  9. VA:=EMA(V9,3); VB:=(V9-VA)/2;
  10. 大盘资金进场:IF(VB>=0,VB,0),COLORRED;
  11. 大盘资金撤走:IF(VB<=0,VB,0),COLORGREEN;
  12. V11:=3*SMA((C-LLV(L,55))/(HHV(H,55)-LLV(L,55))*100,5,1)-2*SMA(SMA((C-LLV(L,55))/(HHV(H,55)-LLV(L,55))*100,5,1),3,1);
  13. 趋势线: EMA(V11,3);
  14. V12:=(趋势线-REF(趋势线,1))/REF(趋势线,1)*100;
  15. 准备现金: STICKLINE(趋势线<=13,0,8,5,0),COLORCC9900;
  16. AA:=(趋势线<=13) AND FILTER((趋势线<=13),15);
  17. DRAWTEXT (AA,20,'准备'),COLORCC9900;
  18. 买入股票: STICKLINE(趋势线<=13 AND V12>13,0,16,5,0),COLOR0099FF;
  19. BB:= 趋势线<=13 AND V12>13 AND FILTER((趋势线<=13 AND V12>13),10);
  20. DRAWTEXT (BB,5,'买入'),COLORYELLOW;
  21. 卖临界: STICKLINE(趋势线>90 AND 趋势线>REF(趋势线,1),100,95,15,1),COLORFFFF00;
  22. 见顶清仓:FILTER(趋势线>90 AND 趋势线<REF(趋势线,1) AND 主力进<REF(主力进,1),8);
  23. DRAWTEXT( 见顶清仓,90,'逃顶'),COLORYELLOW; CC:=(趋势线>=90 AND V12) AND FILTER((趋势线>=90 AND V12),10);
  24. STICKLINE(大盘资金进场 AND 趋势线<13,0,30,10,0),COLORRED; STICKLINE(大盘资金撤走 AND 趋势线>90,0,30,10,0),COLORGREEN;
  25. STICKLINE(主力进 AND 趋势线<13,0,40,10,0),COLORFF00FF; STICKLINE(主力撤 AND 趋势线>90,0,40,10,0),COLORBLUE;
复制代码


举报 使用道具

回复

评论 4

统领  新手上路  发表于 2022-7-27 22:29:15 | 显示全部楼层
指标已用上,谢谢楼主,辛苦了!

举报 使用道具

回复 支持 反对
浪漫小筑梦  论坛游民  发表于 2020-1-25 09:31:17 | 显示全部楼层

谢谢l楼主分享!

举报 使用道具

回复 支持 反对
行之  初涉股海  发表于 2019-12-31 20:03:31 | 显示全部楼层
谢谢l楼主分享!

举报 使用道具

回复 支持 反对
黄三  资深股民  发表于 2018-7-26 12:08:40 | 显示全部楼层
学习下,谢谢分享!

举报 使用道具

回复 支持 反对

0

关注

9

粉丝

18

主题
随机推荐
热门指标
精品推送
精品指标

QQ|Archiver|小黑屋|六六公式网

GMT+8, 2024-11-23 10:06 , Processed in 0.201936 second(s), 34 queries .

Powered by Discuz! X3.4

Copyright © 2001-2020, Tencent Cloud.