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

[大智慧指标] 大智慧红杏出墙指标源码[大智慧公式]

[大智慧指标] 大智慧红杏出墙指标源码[大智慧公式]

大智慧红杏出墙指标

参数:  N 1 100 17
          LH 1 100 79

源码:

  1. EMA1:EMA(C,1);
  2. eMA13:MA(C,13),COLORRED,LINETHICK2;
  3. eMA34:MA(C,34),COLORYELLOW,LINETHICK2;
  4. eMA55:MA(C,55),COLOR9933CC,LINETHICK2;
  5. eMA120:eMA(c,120),COLORGREEN;
  6. MA30:MA(C,30),COLORYELLOW,POINTDOT,LINETHICK2;
  7. 生命线:eMA(CLOSE,453),colorff00ff,POINTDOT,LINETHICK2;
  8. LOCK:=1;
  9. M8:=EMA(CLOSE,8);
  10. M13:=EMA(M8,13);
  11. VAR1:=EMA(M13,62);
  12. VAR2:=(CLOSE+HIGH+LOW)/3;
  13. VAR3:=EMA(VAR2,10)*LOCK;
  14. VAR4:=ref(VAR3,1)*LOCK;
  15. STICKLINE(OPEN>=CLOSE,CLOSE,OPEN,9*0.5,0),COLORFF5B00;
  16. STICKLINE(OPEN>=CLOSE,CLOSE,OPEN,8*0.5,0),COLORFF6C00;
  17. STICKLINE(OPEN>=CLOSE,CLOSE,OPEN,7*0.5,0),COLORFF7B00;
  18. STICKLINE(OPEN>=CLOSE,CLOSE,OPEN,6*0.5,0),COLORFF9C00;
  19. STICKLINE(OPEN>=CLOSE,CLOSE,OPEN,5*0.5,0),COLORFFBE00;
  20. STICKLINE(OPEN>=CLOSE,CLOSE,OPEN,3.5*0.5,0),COLORFFCC00;
  21. STICKLINE(OPEN>=CLOSE,CLOSE,OPEN,1.5*0.5,0),COLORFFFF00;
  22. STICKLINE(CLOSE>=OPEN,CLOSE,OPEN,9*0.5,0),COLOR070084;
  23. STICKLINE(CLOSE>=OPEN,CLOSE,OPEN,8*0.5,0),COLOR0000A3;
  24. STICKLINE(CLOSE>=OPEN,CLOSE,OPEN,7*0.5,0),COLOR0000B7;
  25. STICKLINE(CLOSE>=OPEN,CLOSE,OPEN,6*0.5,0),COLOR0000CD;
  26. STICKLINE(CLOSE>=OPEN,CLOSE,OPEN,5*0.5,0),COLOR0000E9;
  27. STICKLINE(CLOSE>=OPEN,CLOSE,OPEN,3*0.5,0),COLOR0754E9;
  28. STICKLINE(CLOSE>=OPEN,CLOSE,OPEN,1.5*0.5,0),COLOR076EF3;
  29. STICKLINE(CLOSE>=OPEN,CLOSE,OPEN,1*0.5,0),COLOR077BF3;
  30. STICKLINE(CLOSE>OPEN,OPEN,LOW,1*0.5,0),COLOR0726CA;
  31. STICKLINE(CLOSE>OPEN,CLOSE,HIGH,1*0.5,0),COLOR0726CA;
  32. STICKLINE(OPEN>CLOSE,CLOSE,LOW,1*0.5,0),COLORDE9100;
  33. STICKLINE(OPEN>CLOSE,OPEN,HIGH,1*0.5,0),COLORDE9100;

  34. X26:STICKLINE(VAR3>VAR4,VAR3,VAR4,2.5,0),COLOR00FFFF;
  35. X27:STICKLINE(VAR3<VAR4,VAR3,VAR4,2.5,0),COLORFF0000;
  36. AAA:=MA(C,10);
  37. BBB:=ATAN((AAA/ref(AAA,1)-1)*100)*180/3.1416;
  38. CCC:=FILTER(CROSS(BBB,30),5);
  39. DRAWTEXT(CCC AND C>AAA,AAA*0.95,'十日三十度角'),COLORFF00FF;
  40. CXH:=STRTONUM(STRRIGHT(DATESTR(CURRENTDATE),1));
  41. WARNING('',CURRENTTIME>180000 and (CXH=1 OR CXH=6));
  42. 阻力价:HHV(HIGH,19),COLORFF00FF;
  43. ar1:=eMA55>eMA34 and eMA34>eMA13;
  44. ar2:=BARSLAST((c-eMA13)/eMA13*100<-6);
  45. ar3:=eMA13>=ref(eMA13,2);
  46. ar4:=COUNT(cross(c,eMA13),ar2)=1;
  47. ar5:=ar1 and ar2 and ar3 and ar4;
  48. ar6:=ar5 and filter(ar5,10);
  49. DRAWTEXT(ar6,l-0.09,'红杏出墙'),COLOR00ccff;
  50. STICKline(ar6,h,l,0.5,1),COLOR00ccff;
  51. STICKline(ar6,o,c,6,1),LINETHICK2,COLOR00ccff;
  52. br1:=COUNT(BETWEEN((c-ref(c,1))/ref(c,1)*100,0,5) ,5)=5;
  53. br2:=ABS((eMA13-eMA34)+(eMA34-eMA55))/c<0.2;
  54. br3:=c>eMA55 and (ref(c,1)<ref(eMA55,1) or ref(c,2)<ref(eMA55,2) or ref(c,3)<ref(eMA55,3) or ref(c,4)<ref(eMA55,4) or ref(c,5)<ref(eMA55,5));
  55. br4:=br1 and br2 and br3;{文章来源 }
  56. DRAWTEXT(br4 and filter(br4,10),l-0.09,'蚂蚁上树'),color00C5FF; {本文来至CXH99.COM}
  57. STICKline(br4 and filter(br4,10),h,l,0.5,1),color00C5FF;
  58. STICKline(br4 and filter(br4,10),o,c,6,1),LINETHICK2,color00C5FF;
  59. cr1:=(c-ref(c,1))/ref(c,1)*100>0.5;
  60. cr2:=v>MA(v,5)*0.6;
  61. cr3:=COUNT(cross(eMA13,eMA55),3)=1;
  62. cr4:=ABS(eMA34-eMA55)/eMA55<0.03;
  63. cr5:=eMA55<=eMA120 and eMA55>=ref(eMA55,1);
  64. cr6:=FILTER(cr1 and cr2 and cr3 and cr4 and cr5,2);
  65. STICKline(cr6,h,l,0.5,1),colorf00ff0;
  66. STICKline(cr6,o,c,6,1),LINETHICK2,colorf00ff0;
  67. DRAWTEXT(cr6,l-0.09,'红衣侠女'),colorf00ff0;
  68. dr1:=eMA13>eMA34 and eMA34<eMA55;
  69. dr2:=BARSLAST(cross(c,eMA55) );
  70. dr3:=h=HHV(h,dr2);
  71. dr4:=BARSLAST(dr3);
  72. dr5:=COUNT(o>c and c<ref(c,1) and c>eMA55 and BETWEEN((c-eMA55)/eMA55,0,0.02),dr4)=1;
  73. dr6:=c>ref(c,1) ;{文章来源 }
  74. dr7:= dr1 and dr5 and dr6 ;
  75. dr8:=dr7 and FILTER(dr7 ,10);
  76. DRAWTEXT(dr8,l-0.09,'黑客点击'),colord6ba63;
  77. STICKline(dr8,h,l,0.5,1),colord6ba63;
  78. STICKline(dr8,o,c,6,1),LINETHICK2,colord6ba63;
  79. er:=BARSLAST(ref(cross(eMA55,eMA34),1)) and cross(eMA34,eMA55);
  80. DRAWTEXT(er,l-0.09,'均线互换'),color0099ff;
  81. STICKline(er,h,l,0.5,1),color0099ff;
  82. STICKline(er,o,c,6,1),LINETHICK2,color0099ff;
  83. fr:=BARSLAST(ref(cross(eMA34,eMA13),1)) and cross(eMA13,eMA34);
  84. DRAWTEXT(fr,l-0.09,'梅开二度'),colorwhite;
  85. STICKline(fr,h,l,0.5,1),colorwhite;
  86. STICKline(fr,o,c,6,1),LINETHICK1,colorwhite;
  87. gr1:=BARSLAST(BETWEEN("bias.bias2"(6,13,24),0,5) );
  88. gr2:=eMA13>eMA34 and eMA34>eMA55 and eMA13>ref(eMA13,1);
  89. gr3:=COUNT("bias.bias2"(6,13,24)>10 and h=HHV(h,gr1),gr1);
  90. gr4:=h=HHV(h,gr1);
  91. gr5:="MAcd.MAcd"(12,26,9)<ref("MAcd.MAcd"(12,26,9),1);
  92. gr6:=gr2 and gr3 and gr4;
  93. gr7:=gr2 and gr3 and gr4 and gr5;
  94. DRAWTEXT(gr6 and gr7,h+0.13,'见好就收!'),color00ff00;
  95. DRAWTEXT(gr6 and gr7,h+0.1,'▼'),color00ff00;
  96. hr2:=eMA13>=ref(eMA13,3) and eMA34>=ref(eMA34,1) and eMA55>=ref(eMA55,1) and cross(c,eMA13) and cross(c,eMA34) and cross(c,eMA55);
  97. DRAWTEXT(hr2 and filter(hr2,10),h+0.1,'▲'),colorFFC8FF;
  98. DRAWTEXT(hr2 and filter(hr2,10),h+0.5,'揭竿而起'),color9900cc; {内容来至程序化交易网 CXH99.COM}
  99. DRAWTEXT(hr2 and filter(hr2,10),l-0.09,'三线推进'),COLORYELLOW;
  100. STICKline(hr2 and filter(hr2,10),h,l,0.5,1),COLORYELLOW;
  101. STICKline(hr2 and filter(hr2,10),o,c,6,1),LINETHICK2,COLORYELLOW;
复制代码


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

返回列表