: | : | :期货量化学习 | :期货量化 |
返回列表 发帖

[通达信指标/源码] [转载]操盘好帮手《六彩条共振》--副图指标 贴图 源码

[通达信指标/源码] [转载]操盘好帮手《六彩条共振》--副图指标 贴图 源码

本副图指标将论坛流行较广的短线决策线、阶梯、转折线、变异阶梯等用来判断走势的指标进行简化并汇集一体,同时添加了逃顶、KDJ金叉死叉、顶底预警等标识,综合著因素找到共振点,用以为操盘决策提供一定的帮助。(仅供参考。详细情况自己慢慢体会吧!!!)

六彩条共振副图源码;

  1. RC:=DYNAINFO(3);{前收盘价}
  2. S2:=SMA(C,3,1);{收盘价的3日[1日权重]移动平均}
  3. S6:=SMA(C,5,1);{收盘价的5日[1日权重]移动平均}
  4. DK:=2*(S2-S6);
  5. AA:=DK>0;
  6. AAB:=DK<0;
  7. AB1:=MA(CLOSE,20);
  8. AB2:=(CLOSE>MA(CLOSE,5));
  9. AB3:=(MA(CLOSE,5)>MA(CLOSE,10));
  10. AB4:=(CLOSE>MA(CLOSE,10));
  11. AB5:=(MA(CLOSE,5)>MA(CLOSE,20));
  12. AB6:=(CLOSE>MA(CLOSE,20));
  13. AB7:=REF(AB1,1);
  14. AB8:=(AB1> AB7);
  15. AVX:=(((((IF(AB2,10,(0 - 10)) + IF(AB3,10,(0 - 10))) + IF(AB4,10,(0 -10))) +
  16. IF(AB5,10,(0 - 10))) + IF(AB6,10,(0 - 10))) + IF(AB7,10,(0 - 10)) + IF(AB8,10,(0 -10)))+40,COLORFF00FF;
  17. BB:=AVX>=50;
  18. BBB:= AVX<50;
  19. AC:=CLOSE;
  20. 转强:=WMA(HIGH,5);
  21. 转弱:=WMA(LOW,5);
  22. B:=CLOSE*0;
  23. 转折线:=IF(B=-1,MA(HIGH,4),MA(LOW,4)),COLORFFFF00,LINETHICK0;
  24. DD:=C>转折线;
  25. DDB:=C<转折线;
  26. TP:=REF(EMA(C,14),1);
  27. A1X:=(EMA(C,10)-TP)/TP*100;
  28. JZ:=IF(A1X>=0,REF(EMA(C,10),BARSLAST(CROSS(A1X,0))+1),REF(EMA(C,10),BARSLAST(CROSS(0,A1X))+1)),COLORFFFF00,LINETHICK2;
  29. EE:=A1X>=0;
  30. EEB:=A1X<0;
  31. N1:=IF(BARSCOUNT(C)>=8,8,BARSCOUNT(C));
  32. AMOV:=VOL*(C+L+H)/3;
  33. MN:=SUM(AMOV,N1)/SUM(VOL,N1),COLORFF0000,LINETHICK3;
  34. FF:=C> MN;
  35. FFB:=C<MN;
  36. RSV:=(CLOSE-LLV(LOW,9))/(HHV(HIGH,9)-LLV(LOW,9))*100;
  37. K:=SMA(RSV,3,1),COLORRED,LINETHICK2;
  38. D:=SMA(K,3,1),COLORFFFF00,LINETHICK2;
  39. J:=3*K-2*D,COLORFF00FF,LINETHICK2;
  40. STICKLINE(1,4,11,4,1),COLOR686868;
  41. STICKLINE(K>=D,3,12,4,0),COLOR00FFFF;
  42. STICKLINE(J>=REF(J,1),2,13,4,0),COLORBB00BB;
  43. STICKLINE(J>=REF(J,1) AND K>=D,0,15,4,0),COLOR0000FF;
  44. STICKLINE(AA AND BB AND DD  AND FF,50,110,2,0),COLORBBBB00;
  45. STICKLINE(AA AND BB AND DD AND EE AND FF,30,110,2,0),COLORRED;
  46. STICKLINE(AA AND BB AND DD AND EE AND FF,30,110,0.5,0),COLOR00FFFF;
  47. STICKLINE(EE,20,35,4,0),COLORCCCC00;
  48. STICKLINE(EEB,23,32,3,1),COLOR686868;
  49. STICKLINE(DD,40,55,4,0),COLORBB00CC;
  50. STICKLINE(DDB,43,52,3,1),COLOR686868;
  51. STICKLINE(BB,60,75,4,0),COLOR00FFFF;
  52. STICKLINE(BBB,63,72,3,1),COLOR686868;
  53. STICKLINE(AA,80,95,4,0),COLORFF00FF;
  54. STICKLINE(AAB,83,92,3,1),COLOR686868;
  55. STICKLINE(FF,100,115,4,0),COLOR00AA00;
  56. STICKLINE(FFB,103,112,3,1),COLOR686868;
  57. DRAWTEXT(CURRBARSCOUNT=18,27,'中线操盘--阶梯彩块'),COLOR00FFFF;
  58. DRAWTEXT(CURRBARSCOUNT=10,47,'转折线'),COLOR00FFFF;
  59. DRAWTEXT(CURRBARSCOUNT=10,67,'变异线'),COLOR0000FF;
  60. DRAWTEXT(CURRBARSCOUNT=10,87,'收盘线'),COLOR00FFFF;
  61. DRAWTEXT(CURRBARSCOUNT=10,107,'决策线'),COLOR00FFFF;
  62. DRAWICON(CROSS(K,D),D,13);
  63. DRAWICON(CROSS(D,K),D,14);
  64. DRAWICON(CROSS(K,D) AND K<20,D,23);
  65. DRAWICON(CROSS(K,D),7,34);
  66. DRAWICON(CROSS(D,K),7,35);
  67. DRAWICON(CROSS(K,D) AND K<20,0,23);
  68. DRAWTEXT(CURRBARSCOUNT=33,7,'【黄-KD金叉】【粉-J上行】【红-J上行并KD金叉】'),COLORFFFFFF;
  69. LC5:=REF(CLOSE,1);
  70. RSI5:=SMA(MAX(CLOSE-LC5,0),6,1)/SMA(ABS(CLOSE-LC5),6,1)*100;
  71. R:=(CLOSE-LLV(LOW,9))/(HHV(HIGH,9)-LLV(LOW,9))*100;
  72. A:=SMA(R,3,1);
  73. BT:=SMA(A,3,1);
  74. CCC:=(BT/2+40)*1.1;
  75. DA:=SMA(CCC,3,1);
  76. DRAWICON(CROSS(DA,RSI5),105,15);
  77. DRAWICON(CROSS(80,RSI5),113,14);
  78. LC:=REF(CLOSE,1);
  79. RSI1:=SMA(MAX(CLOSE-LC,0),6,1)/SMA(ABS(CLOSE-LC),6,1)*100;
  80. 周15:=FILTER(CROSS(80,RSI1) AND RSI1<REF(RSI1,1),8);
  81. DRAWICON(周15,125,35);
  82. TYP:=(HIGH+LOW+CLOSE)/3;
  83. CCI:=(TYP-MA(TYP,14))/(0.015*AVEDEV(TYP,14));
  84. CCI修正1:=EMA(EMA(EMA(CCI,2),2),2);
  85. CCI修正2:=EMA(EMA(EMA(CCI,3),2),2);
  86. X:=(CROSS(CCI修正1,CCI修正2) OR (CCI修正1>=CCI修正2)) AND CCI修正1>=-101 AND CCI修正1>=REF(CCI修正1,1) AND REF(CCI修正1,1)<-101 ;
  87. RSVT:=(CLOSE-LLV(LOW,9))/(HHV(HIGH,9)-LLV(LOW,9))*100;
  88. KT:=SMA(RSVT,3,1);
  89. DT:=SMA(KT,3,1);
  90. JT:=3*KT-2*DT;
  91. K1:= EMA(EMA(EMA(KT,2),2),2);
  92. D1:= EMA(EMA(EMA(DT,2),2),2);
  93. J1:= EMA(EMA(EMA(JT,2),2),2);
  94. Y:= J1>REF(J1,1) ;
  95. 预警:=X AND Y  ;
  96. DRAWICON(预警,0,13);
  97. DRAWTEXT(预警,-3,'↖预警买'),COLORYELLOW;
  98. DRAWTEXT_FIX(1,0.3,0,0,'【红十字球-KDJ<20金叉】【红球〖金向上球〗-KDJ金叉】【兰球〖绿向下球〗-KDJ死叉】'),COLOR00FFFF;
复制代码


微信截图_20181020084957.png

  1. 量:=VOL/((HIGH-LOW)*2-ABS(CLOSE-OPEN));
  2. 买量:=IF(CLOSE>OPEN,量*(HIGH-LOW),IF(CLOSE
  3. 卖量:=(IF(CLOSE>OPEN,0-量*((HIGH-CLOSE)+(OPEN-LOW)),IF(CLOSE
  4. 总量:=买量+卖量;DRAWGBKLAST(v>1,STRIP(RGB(0,0,205),RGB(60,179,113),0));
  5. 净量:=买量-卖量;
  6. 五日净量:SUM(净量,5),LINETHICK2,COLORFFFFFF;
  7. 十日净量:SUM(净量,10),LINETHICK2,COLOR007800;
  8. 二十日净量:SUM(净量,20),LINETHICK2,COLOR0000AD;
  9. 六十日净量:SUM(净量,60),LINETHICK2,COLORFF0000;
复制代码



微信截图_20181020085035.png

论坛官方微信、群(期货热点、量化探讨、开户与绑定实盘)
 
期货论坛 - 版权/免责声明   1.本站发布源码(包括函数、指标、策略等)均属开放源码,用意在于让使用者学习程序化语法撰写,使用者可以任意修改语法內容并调整参数。仅限用于个人学习使用,请勿转载、滥用,严禁私自连接实盘账户交易
  2.本站发布资讯(包括文章、视频、历史记录、教材、评论、资讯、交易方案等)均系转载自网络主流媒体,内容仅为作者当日个人观点,本网转载此文出于传递更多信息之目的,并不意味着赞同其观点或证实其描述。本网不对该类信息或数据做任何保证。不对您构成任何投资建议,不能依靠信息而取代自身独立判断,不对因使用本篇文章所诉信息或观点等导致的损失承担任何责任。
  3.本站发布资源(包括书籍、杂志、文档、软件等)均从互联网搜索而来,仅供个人免费交流学习,不可用作商业用途,本站不对显示的内容承担任何责任。请在下载后24小时内删除。如果喜欢,请购买正版,谢谢合作!
  4.龙听期货论坛原创文章属本网版权作品,转载须注明来源“龙听期货论坛”,违者本网将保留追究其相关法律责任的权力。本论坛除发布原创文章外,亦致力于优秀财经文章的交流分享,部分文章推送时若未能及时与原作者取得联系并涉及版权问题时,请及时联系删除。联系方式:http://www.qhlt.cn/thread-262-1-1.html
如何访问权限为100/255贴子:/thread-37840-1-1.html;注册后仍无法回复:/thread-23-1-1.html;微信/QQ群:/thread-262-1-1.html;网盘链接失效解决办法:/thread-93307-1-1.html

返回列表