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

大智慧135战法主图公式源码[大智慧公式]

大智慧135战法主图公式源码[大智慧公式]

一 蓄势篇
(1)马失前蹄 (2)日月合璧 (3)金屋藏娇 (4)不安于室 (5)双蹄并进 (6)步步高 (7)四星望月 (8)小鸟依人 (9)四渡赤水 (10)星星点灯 (11)串阳 (12)串阴 (13)蚂蚁上树 (14)八仙过海 (15)九九艳阳天 (16)浑然一体 (17)月季花开
二 转势篇
(1)黑客点击 (2)均线交流 (3)海底捞月 (4)投石问路 (5)动感地带 (6)绝外逢生 (7)一锤定音
三 打击篇
(1)逼上梁山 (2)红衣侠女 (3)破镜从圆 (4)一阳穿三线 (5)三线推进 (6)梅开二度 (7)三军集结
四 防止篇
(1)一石二鸟 (2)双飞燕 (3)三剑客 (4)走四方 (5)暗渡阵仓 (6)荡子转头 (7)立竿见影
五 后退篇
(1)一枝独秀 (2)独上高楼 (3)见好就收 (4)一剑封喉 (5)一箭穿心 (6)明修栈道 (7)垂死挣扎 (8)拖泥带水 (9)晨钟暮鼓 (10)笑里藏刀 (11)雪上加霜 (12)画蛇添足 (13)过河抽板 (14)金蝉脱壳 (15)分道扬镳 (16)突出重围 (17)一阴破三线

  1. 13:MA(C,13),COLORRED;
  2. 34:MA(C,34),COLORYELLOW;
  3. 55:MA(C,55),COLOR9933CC;
  4. K1:=BACKSET(13<REF(13,1),2);
  5. PARTLINE(13,k1,RGB(150,255,200));
  6. K2:=BACKSET(34<REF(34,1),2);
  7. PARTLINE(34,k2,RGB(120,120,120));
  8. K3:=BACKSET(55<REF(55,1),2);
  9. PARTLINE(55,k3,RGB(150,0,250));
  10. JW1:=C<OPEN AND REF(C,1)<REF(OPEN,1);
  11. JW2:=OPEN<REF(C,1) AND C>REF(L,1);
  12. JW3:=O<EMA(C,13) AND O<EMA(C,34) AND O<EMA(C,55);
  13. JW:=JW1 AND JW2 AND JW3;
  14. DRAWTEXT(JW,LOW-0.1,'←金屋藏娇'),COLORYELLOW;
  15. AR1:=55>34 AND 34>13;
  16. AR2:=BARSLAST((C-13)/13*100<-6);
  17. AR3:=13>=REF(13,1);
  18. AR4:=COUNT(CROSS(C,13),AR2)=1;
  19. AR5:=AR1 AND AR2 AND AR3 AND AR4;
  20. AR6:=AR5 AND FILTER(AR5,10);
  21. DRAWTEXT(AR6,L-0.0,'←不安于室'),COLORYELLOW;
  22. BR1:=COUNT(BETWEEN((C-REF(C,1))/REF(C,1)*100,0,5) ,5)=5;
  23. BR2:=ABS((13-34)+(34-55))/C<0.2;
  24. BR3:=C>55 AND (REF(C,1)<REF(55,1) OR REF(C,2)<REF(55,2) OR REF(C,3)<REF(55,3) OR REF(C,4)<REF(55,4) OR REF(C,5)<REF(55,5));BR4:=BR1 AND BR2 AND BR3;
  25. DRAWTEXT(BR4 AND FILTER(BR4,10),H+0.0,'←蚂蚁上树'),COLOR00C5FF;
  26. TS1:=CROSS(MA(C,13),MA(C,34));{13线上穿34线}
  27. TS2:=MA(C,13)<MA(C,55);
  28. TS:=TS1 AND TS2;
  29. DRAWTEXT(TS,34-0.0,'←投石问路'),COLORF00FF0;
  30. DRAWTEXT(REF((MAX(MA(C,1),MA(C,55))-MIN(MA(C,1),MA(C,55)))/MIN(MA(C,1),MA(C,55))*1000<60,1) AND EMA((EMA(CLOSE,12)-EMA(CLOSE,26)),9)<REF(EMA((EMA(CLOSE,12)-EMA(CLOSE,26)),9),1) AND REF((CLOSE-REF(CLOSE,1))/REF(CLOSE,1)*100<-1,1) AND (CLOSE-REF(CLOSE,1))/REF(CLOSE,1)*100>3,L-0.02,'←破镜重圆');
  31. Y:=(MA(C,13)-MA(C,55))/MA(C,13)*100;
  32. YY1:=C>MA(C,13) AND OPEN<MA(C,13);{一阳三线}
  33. YY3:=C>MA(C,34) AND OPEN<MA(C,34);
  34. YY5:=C>MA(C,55) AND OPEN<MA(C,55);
  35. DRAWTEXT(YY1 AND YY5 AND YY3,LOW-0.05,'←阳穿三线'),COLORRED;
  36. SJ1:=ABS(MA(CLOSE,13)-MA(CLOSE,34))<C*0.01;{13线34线55线靠近}
  37. SJ2:=ABS(MA(CLOSE,34)-MA(CLOSE,55))<C*0.01;
  38. SJ3:=CROSS(MA(CLOSE,13),MA(CLOSE,55));{13线上穿55线}
  39. DRAWTEXT(SJ1 AND SJ2 AND SJ3,HIGH+0.05,'←三军集结'),COLORRED;
  40. JG1:=ABS(MA(C,13)-MA(C,34))<C*0.02 AND ABS(MA(C,13)-MA(C,55))<C*0.02;
  41. JG2:=O>MA(C,13) OR O=MA(C,13);
  42. JG3:=C/OPEN>1.03; {阳线3%}
  43. JG:=JG1 AND JG2 AND JG3;
  44. DRAWTEXT(JG,H+0.0,'←逼上梁山'),COLORYELLOW;
  45. HR2:=13>=REF(13,3) AND 34>=REF(34,1) AND 55>=REF(55,1) AND CROSS(C,13) AND CROSS(C,34) AND CROSS(C,55);
  46. DRAWTEXT(HR2 AND FILTER(HR2,10),H+0.1,'←三线推进'),COLORFFC8FF;
  47. MK1:=MA(C,13)>MA(C,55) AND MA(C,34)>MA(C,55);
  48. MK:=TS1 AND MK1;
  49. DRAWTEXT(MK,34-0.0,'←梅开二度'),COLORF00FF0;
  50. DRAWTEXT(CROSS(34,55),55-0.0,'←均线交流'),COLOR0099FF;
  51. YZ1:=C/O>1.02 AND H/C>1.02 AND O/L<1.02;{收阳有上影}
  52. YZ2:=REF(C,1)>REF(O,1) AND O>MA(C,11);{昨收阳 今大于均线}
  53. YZ:=YZ1 AND YZ2 AND Y>10;
  54. DRAWTEXT(YZ,H+0.02,'←一支独秀'),COLORF00FF0;
  55. DS1:=OPEN/C>1.04 AND O/REF(C,1)>1.03;{高开收阴}
  56. DS2:=V*100/FINANCE2(35)>0.08 AND Y>8;{换手高涨幅大}
  57. DS:=DS1 AND DS2;
  58. DRAWTEXT(DS,HIGH+0.0,'←独上高楼'),COLORGREEN;
  59. YJ1:=H/O>1.04;
  60. YJ2:=ABS(C-O)<C*0.03;
  61. YJ3:=C/EMA(C,13)>1.1;
  62. YJ:=YJ1 AND YJ2 AND DS2 AND YJ3 AND YZ2;
  63. DRAWTEXT(YJ,HIGH+0.1,'←一剑封喉'),COLORRED;
  64. T:=(MA(C,13)-MA(C,55))/MA(C,13)*100;
  65. NN1:=C<MA(C,13) AND OPEN>MA(C,13);
  66. TT3:=C<MA(C,34) AND OPEN>MA(C,34);
  67. TT5:=C<MA(C,55) AND OPEN>MA(C,55);
  68. DRAWTEXT(NN1 AND TT5 AND TT3,H+0.0,'←阴破三线'),COLORBLUE;
  69. DRAWTEXT(CROSS(13,55),55-0.0,'←红衣侠女'),COLORYELLOW;
  70. W1:=REF(OPEN,1)>REF(C,1);
  71. W2:=C>REF(OPEN,1);
  72. W3:=C>OPEN;
  73. Y1:=VOL/MINUTE;
  74. Y2:=REF(VOL,1)/240;
  75. DRAWTEXT(W1 AND W2 AND W3 AND Y1>Y2,L-0.0,'←双包围'),COLORFF00FF;
  76. DRAWICON(CROSS(13,34),34,1);
  77. DRAWICON(CROSS(13,55),55,1);
  78. DRAWICON(CROSS(34,55),55,1);
  79. DRAWICON(CROSS(34,13),34,2);
  80. DRAWICON(CROSS(55,13),55,2);
  81. DRAWICON(CROSS(55,34),55,2);
复制代码

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

返回列表