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

[通达信指标/源码] [转载]喜庆佳节5---乘与开方主图指标的升级版《五彩乘与开方主图指标》指标源码

[通达信指标/源码] [转载]喜庆佳节5---乘与开方主图指标的升级版《五彩乘与开方主图指标》指标源码

五彩乘与开方主图指标源码:
  1. {N 1 999 9
  2. M 1 999 21}
  3. 今日保护价:(REF(C,1)+REF(C,2)+O)/3,NODRAW;
  4. GD1:=HHV(HIGH,N);
  5. DD1:=LLV(LOW,N);
  6. XJ1:=GD1*DD1;
  7. KF1:=SQRT(XJ1),COLORGREEN,LINETHICK3;
  8. GD2:=HHV(HIGH,M);
  9. DD2:=LLV(LOW,M);
  10. XJ2:=GD2*DD2;
  11. KF2:=SQRT(XJ2),COLORFFFF00,LINETHICK3;
  12. QSX1:KF1,COLOR00FFFF,LINETHICK3;
  13. QSX2:KF2,COLORFFFF00,LINETHICK3;
  14. DRAWBAND(QSX1,RGB(208,50,90),QSX2,RGB(110,130,160));
  15. AA:=QSX1>=QSX2 AND C>=QSX1;
  16. BB:=QSX1>=QSX2 AND (C>=QSX2 AND C
  17. DD:=QSX1>=QSX2 AND C
  18. EE:=QSX1=QSX1;
  19. FF:=QSX1
  20. STICKLINE(AA,H,L,0,0),COLORRED;
  21. STICKLINE(BB,H,L,0,0),COLORFF00FF;
  22. STICKLINE(DD,H,L,0,0),COLOR66CCFF;
  23. STICKLINE(EE,H,L,0,0),COLORFFFF00;
  24. STICKLINE(FF,H,L,0,0),COLORAFD788;
  25. STICKLINE(AA,CLOSE,OPEN,3.2,0),COLOR000099;
  26. STICKLINE(AA,CLOSE,OPEN,2.6,0),COLOR0000AA;
  27. STICKLINE(AA,CLOSE,OPEN,2.2,0),COLOR0000CC;
  28. STICKLINE(AA,CLOSE,OPEN,1.8,0),COLOR0000DD;
  29. STICKLINE(AA,CLOSE,OPEN,1.3,0),COLOR0000FF;
  30. STICKLINE(AA,CLOSE,OPEN,0.5,0),COLORCC66FF;
  31. STICKLINE(BB,CLOSE,OPEN,3.2,0),COLOR990099;
  32. STICKLINE(BB,CLOSE,OPEN,2.6,0),COLORAA00AA;
  33. STICKLINE(BB,CLOSE,OPEN,2.2,0),COLORBB00BB;
  34. STICKLINE(BB,CLOSE,OPEN,1.8,0),COLORDD00DD;
  35. STICKLINE(BB,CLOSE,OPEN,1.3,0),COLOREE00EE;
  36. STICKLINE(BB,CLOSE,OPEN,0.5,0),COLORFF00FF;
  37. STICKLINE(DD,C,O,3.4,0),COLOR225588;
  38. STICKLINE(DD,C,O,3.0,0),COLOR3377AA;
  39. STICKLINE(DD,C,O,2.4,0),COLOR3388BB;
  40. STICKLINE(DD,C,O,1.6,0),COLOR44AADD;
  41. STICKLINE(DD,C,O,1.0,0),COLOR55BBEE;
  42. STICKLINE(DD,C,O,0.6,0),COLOR66CCFF;
  43. STICKLINE(EE,C,O,3.4,0),COLOR888800;
  44. STICKLINE(EE,C,O,3.0,0),COLOR999900;
  45. STICKLINE(EE,C,O,2.4,0),COLORAAAA00;
  46. STICKLINE(EE,C,O,1.6,0),COLORCCCC00;
  47. STICKLINE(EE,C,O,1.0,0),COLORDDDD00;
  48. STICKLINE(EE,C,O,0.5,0),COLORFFFF00;
  49. STICKLINE(FF,CLOSE,OPEN,3.4,0),COLOR367517;
  50. STICKLINE(FF,CLOSE,OPEN,2.6,0),COLOR489620;
  51. STICKLINE(FF,CLOSE,OPEN,2.2,0),COLOR50A625;
  52. STICKLINE(FF,CLOSE,OPEN,1.8,0),COLOR5BBD2B;
  53. STICKLINE(FF,CLOSE,OPEN,1.3,0),COLOR83C75D;
  54. STICKLINE(FF,CLOSE,OPEN,0.5,0),COLORAFD788;
  55. TYP:=(HIGH+LOW+CLOSE)/3;
  56. CCI:=(TYP-MA(TYP,14))/(0.015*AVEDEV(TYP,14));
  57. CCIA:=EMA(EMA(EMA(CCI,2),2),2);
  58. CCIB:=EMA(EMA(EMA(CCI,3),2),2);
  59. X:=(CROSS(CCIA,CCIB) OR (CCIA>=CCIB))
  60. AND CCIA>=-101 AND CCIA>=REF(CCIA,1)
  61. AND REF(CCIA,1)<-101 ;
  62. RSV:=(CLOSE-LLV(LOW,9))/(HHV(HIGH,9)-LLV(LOW,9))*100;
  63. K:=SMA(RSV,3,1);
  64. D:=SMA(K,3,1);
  65. J:=3*K-2*D;
  66. K1:= EMA(EMA(EMA(K,2),2),2);
  67. D1:= EMA(EMA(EMA(D,2),2),2);
  68. J1:= EMA(EMA(EMA(J,2),2),2);
  69. Y:= J1>REF(J1,1) ;
  70. YJ:=X AND Y  ;
  71. DRAWICON(YJ,(LOW * 0.98),13);
  72. DRAWTEXT(YJ,(LOW * 0.97),'买'),COLORYELLOW;
  73. LC5:=REF(CLOSE,1);
  74. RSI5:=SMA(MAX(CLOSE-LC5,0),6,1)/SMA(ABS(CLOSE-LC5),6,1)*100;
  75. R:=(CLOSE-LLV(LOW,9))/(HHV(HIGH,9)-LLV(LOW,9))*100;
  76. A:=SMA(R,3,1);
  77. B:=SMA(A,3,1);
  78. CCC:=(B/2+40)*1.1;
  79. DA:=SMA(CCC,3,1);
  80. DRAWICON(CROSS(DA,RSI5),H*1.04,15);
  81. DRAWTEXT(CROSS(DA,RSI5),H*1.05,'↙短逃');
  82. DRAWICON(CROSS(80,RSI5),H*1.07,14);
  83. DRAWTEXT(CROSS(80,RSI5),H*1.09,'↙短逃');
  84. LC:=REF(CLOSE,1);
  85. RSI1:=SMA(MAX(CLOSE-LC,0),6,1)/SMA(ABS(CLOSE-LC),6,1)*100;
  86. 周15:=FILTER(CROSS(80,RSI1) AND RSI1
  87. DRAWICON(周15,H*1.12,35);
  88. DRAWTEXT(CROSS(80,RSI5),H*1.11,'↙逃顶');
复制代码


微信截图_20181020085617.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

返回列表