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

大智慧十全十美金叉指标公式源码[大智慧公式]

大智慧十全十美金叉指标公式源码[大智慧公式]

大智慧十全十美十大指标金叉指标源码 需要优化才运行得动(公式、源码)
  1. input:N1(3,1,100),N2(5,1,100),N3(9,1,100),N4(13,1,100),N5(21,1,100),N6(34,1,100);
  2. DIFF:=EMA(CLOSE,N3)-EMA(CLOSE,N4);
  3. DEA:=EMA(DIFF,N2);
  4. DRAWICON(DIFF>DEA,1,7),ALIGN1;
  5. DRAWICON(DIFF<DEA,1,8),ALIGN1;
  6. DRAWTEXT(BARSTATUS=2,1,'MACD'),COLORFFFFFF;
  7. A1:=DIFF>DEA;
  8. RSV1:=(CLOSE-LLV(LOW,N3))/(HHV(HIGH,N3)-LLV(LOW,N3))*100;
  9. K:=SMA(RSV1,N1,1);
  10. D:=SMA(K,N1,1);
  11. DRAWICON(K>D,2,7),ALIGN1;
  12. DRAWICON(K<D,2,8),ALIGN1;
  13. DRAWTEXT(BARSTATUS=2,2,'KDJ'),COLORFFFFFF;
  14. A2:=K>D;
  15. LC:=ref(CLOSE,1);
  16. RSI1:=(SMA(MAX(CLOSE-LC,0),N2,1))/(SMA(ABS(CLOSE-LC),N2,1))*100;
  17. RSI2:=(SMA(MAX(CLOSE-LC,0),N4,1))/(SMA(ABS(CLOSE-LC),N4,1))*100;
  18. DRAWICON(RSI1>RSI2,3,7),ALIGN1;
  19. DRAWICON(RSI1<RSI2,3,8),ALIGN1;
  20. DRAWTEXT(BARSTATUS=2,3,'RSI'),COLORFFFFFF;
  21. A3:=RSI1>RSI2;
  22. RSV:=-(HHV(HIGH,N4)-CLOSE)/(HHV(HIGH,N4)-LLV(LOW,N4))*100;
  23. LWR1:=SMA(RSV,N1,1); {本文来至CXH99.COM}
  24. LWR2:=SMA(LWR1,N1,1);
  25. DRAWICON(LWR1>LWR2,4,7),ALIGN1;
  26. DRAWICON(LWR1<LWR2,4,8),ALIGN1;
  27. DRAWTEXT(BARSTATUS=2,4,'LW&R'),COLORFFFFFF;
  28. A4:=LWR1>LWR2;
  29. BBI:=(MA(CLOSE,N1)+MA(CLOSE,N2)+MA(CLOSE,N3)+MA(CLOSE,N4))/4;
  30. DRAWICON(CLOSE>BBI,5,7),ALIGN1;
  31. DRAWICON(CLOSE<BBI,5,8),ALIGN1;
  32. DRAWTEXT(BARSTATUS=2,5,'BBI'),COLORFFFFFF;
  33. A5:=CLOSE>BBI;
  34. MTM:=CLOSE-ref(CLOSE,1);
  35. MMS:=100*EMA(EMA(MTM,N2),N1)/EMA(EMA(ABS(MTM),N2),N1);
  36. MMM:=100*EMA(EMA(MTM,N4),N3)/EMA(EMA(ABS(MTM),N4),N3);
  37. DRAWICON(MMS>MMM,6,7),ALIGN1;
  38. DRAWICON(MMS<MMM,6,8),ALIGN1;
  39. DRAWTEXT(BARSTATUS=2,6,'ZLMM'),COLORFFFFFF;
  40. A6:=MMS>MMM;
  41. BIAS:=(C-MA(C,N2))/MA(C,N2);
  42. DIF:=(BIAS-ref(BIAS,16));
  43. DBCD:=SMA(DIF,76,1);
  44. MM:=MA(DBCD,5);
  45. DRAWICON(DBCD>MM ,7,7),ALIGN1;
  46. DRAWICON(DBCD<MM,7,8),ALIGN1;
  47. DRAWTEXT(BARSTATUS=2,7,'DBCD'),COLORFFFFFF;
  48. A7:=DBCD>MM;
  49. 持股:3*SMA((CLOSE-LLV(LOW,27))/(HHV(HIGH,27)-LLV(LOW,27))*100,5,1)-2*SMA(SMA((CLOSE-LLV(LOW,27))/(HHV(HIGH,27)-LLV(LOW,27))*100,5,1),3,1),LINETHICK0,COLORRED; {本文来至CXH99.COM}
  50. 支撑:LLV(持股,3),LINETHICK0,COLOR00FFFF;
  51. 下跌:MA(持股,12),COLOR6B8E23,LINETHICK0;
  52. 转向:=CROSS(持股,下跌){ AND 下跌<30};
  53. MA1:=MA(持股,5);
  54. 向下:=CROSS(MA1,持股) AND MA1>80;
  55. DRAWICON(持股>下跌 ,8,7),ALIGN1;
  56. DRAWICON(持股<下跌,8,8),ALIGN1;
  57. DRAWTEXT(BARSTATUS=2,8,'CGZ'),COLORFFFFFF;
  58. A8:=持股>下跌;
  59. mtm:=c-ref(c,1);
  60. ZLGJ:=100*eMA(eMA(mtm,N3),N3)/eMA(eMA(ABS(mtm),N3),N3);
  61. MAZL:=MA(ZLGJ,5);
  62. DRAWICON(ZLGJ>MAZL,9,7),ALIGN1;
  63. DRAWICON(ZLGJ<MAZL,9,8),ALIGN1;
  64. A9:=ZLGJ>MAZL;
  65. DRAWTEXT(BARSTATUS=2,9,'ZLGJ'),COLORFFFFFF;
  66. PJJ:=DMA((HIGH+LOW+CLOSE*2)/4,0.9);
  67. JJ:=ref(EMA(PJJ,3),1);
  68. QJJ:=VOL/((HIGH-LOW)*2-ABS(CLOSE-OPEN));
  69. XVL:=IF(CLOSE>OPEN,QJJ*(HIGH-LOW),IF(CLOSE<OPEN,QJJ*(HIGH-OPEN+CLOSE-LOW),VOL/2))+IF(CLOSE>OPEN,0-QJJ*(HIGH-CLOSE+OPEN-LOW),IF(CLOSE<OPEN,0-QJJ*(HIGH-LOW),0-VOL/2));
  70. HSL:=(XVL/20)/1.15;
  71. 攻击流量:=((HSL*0.55+(ref(HSL,1)*0.33))+(ref(HSL,2)*0.22));
  72. GJJ:=EMA(攻击流量,8);
  73. LLJX:=EMA(攻击流量,3);
  74. 资金流量:LLJX,LINETHICK0,COLOR0000FF;
  75. DRAWICON(资金流量>0,10,7),ALIGN1;
  76. DRAWICON(资金流量<0,10,8),ALIGN1;
  77. A10:=资金流量>0;
  78. DRAWTEXT(BARSTATUS=2,10,'ZJL'),COLORFFFFFF;
  79. 指导线:(A1+A2+A3+A4+A5+A6+A7+A8+A9+A10),LINETHICK2,COLORFFFF00;
  80. 选股:IF(指导线 >6,1,0),LINETHICK3,ColorFF00FF;{
  81. (A1 AND A2 AND A3 AND A4 AND A5 AND A6 AND A7 AND A8 AND A9 AND A10),COLORFFFF00;
  82. 买入:A1 AND A2 AND A3 AND A4 AND A5 AND A6 AND A7 AND A8 AND A9 AND A10=1
  83. AND ref(A1 AND A2 AND A3 AND A4 AND A5 AND A6 AND A7 AND A8 AND A9 AND A10,1)=0,COLORFFFF00;};



  84. {PS:可惜的是沪深两市除了中小板流畅外,其它的股有点卡,各位兄弟姐妹看看哪的问题,请指正};
复制代码


论坛官方微信、群(期货热点、量化探讨、开户与绑定实盘)
 
期货论坛 - 版权/免责声明   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

返回列表