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

[大智慧指标] [转载]波浪在线(源码 贴图)

[大智慧指标] [转载]波浪在线(源码 贴图)

  1. Var1:=EMA(C,3);
  2. Var2:=EMA(C,5);
  3. Var3:=EMA(C,10);
  4. Var4:=EMA(C,20);
  5. Var5:=EMA(C,30);
  6. Var6:=(Var2+Var3+Var4+Var5)/4;
  7. Var7:=(Var6-REF(Var6,15))/REF(Var6,15)*100;
  8. Var8:=(Var6-REF(Var6,15))/REF(Var6, 15)*100;
  9. Var9:=EMA(Var7,8);
  10. STICKLINE(Var7<1*REF(Var7,1),h,l,0.5,0),COLORBLUE;{蓝-持币}
  11. STICKLINE(Var7<1*REF(Var7,1),o,c,5, 1),COLORBLUE;
  12. STICKLINE(Var7>1*REF(Var7,1),h,l,0.5,0),COLORRED;{红-持股}
  13. STICKLINE(Var7>1*REF(Var7,1),o,c,5, 1),COLORRED;
  14. STICKLINE(Var7<1*REF(Var7,1) AND Var9>1*REF(Var9,1),h,l,0.5,0),COLORGREEN;{绿-洗盘}
  15. STICKLINE(Var7<1*REF(Var7,1) AND Var9>1*REF(Var9,1),o,c,5, 1),COLORGREEN;
  16. 买进价:=((c-ref(ma(c,6),1))/6+ma(c,6))*1.004;
  17. 买进条件:=cross(c,买进价) and 买进价>ref(买进价,1);
  18. STICKLINE(买进条件,h,l,0.5,1),colorwhite,linethick2;{白-买进}
  19. STICKLINE(买进条件,o,c,6,0),colorwhite,linethick2;
  20. 加码价:=((c-ref(ma(c,18),1))/18+ma(c,18))*1.004;
  21. 加码条件:=cross(c,加码价) and 加码价>ref(加码价,1);
  22. STICKLINE(加码条件,h,l,0.5,1),coloryellow,linethick2;{黄-加码}
  23. STICKLINE(加码条件,o,c,6,0),coloryellow,linethick2;
  24. X1:EMA(C,7),color0088ff;
  25. X2:EMA(c,21),coloree00ee;
  26. X3:EMA(X2,21),colorwhite;
  27. x4:ema(x3,27),color009900;
  28. x5:ema(x2,100),colorFFAA00;
  29. x6:ema(x5,100),color009999;
  30. v1:ema(close,5);
  31. v2:ema(ema(close,29)*1.01,10);
  32. DRAWICON(cross(v1,v2),v2,1);
  33. LC:=REF(CLOSE,1);
  34. RSI:=SMA(MAX(CLOSE-LC,0),6,1)/SMA(ABS(CLOSE-LC),6,1)*100;
  35. 逃 :if(CROSS(84,RSI) , HIGH,high+1),pointdot,linethick7,COLORYELLOW ;high+1,pointdot,linethick7,COLOR000000;
  36. DIFF:=EMA(CLOSE,12) - EMA(CLOSE,26);
  37. DEA:=EMA(DIFF,9);
  38. MACD:=2*(DIFF-DEA);
  39. A1:=BARSLAST(REF(CROSS(DIFF,DEA),1));
  40. B1:=REF(C,A1+1)>C AND REF(DIFF,A1+1)<DIFF AND CROSS(DIFF,DEA);
  41. DRAWICON(FILTER(B1>0,5),L*0.94,10);
  42. DRAWTEXT(FILTER(B1>0,5),L*0.94,'M底'),COLORGREEN;{MACD底背离}
  43. A2:=BARSLAST(REF(CROSS(".K"(9,3,3),".D"(9,3,3)),1));
  44. B2:=REF(C,A2+1)>C AND REF(".K"(9,3,3),A2+1)<".K"(9,3,3) AND CROSS(".K"(9,3,3),".D"(9,3,3));
  45. DRAWICON(FILTER(B2>0,5),L*0.96,10);
  46. DRAWTEXT(FILTER(B2>0,5),L*0.96,'K底'),COLORYELLOW;{底背离}
  47. A3:=BARSLAST(REF(CROSS("RSI.RSI1"(6,12,24),"RSI.RSI2"(6,12,24)),1));
  48. B3:=REF(C,A3+1)>C AND REF("RSI.RSI1"(6,12,24),A3+1)<"RSI.RSI1"(6,12,24) AND CROSS("RSI.RSI1"(6,12,24),"RSI.RSI2"(6,12,24));
  49. DRAWICON(FILTER(B3>0,5),L*0.98,10);
  50. DRAWTEXT(FILTER(B3>0,5),L*0.98,'R底'),COLORFFFF00;{RSI底背离}
  51. C1:=BARSLAST(REF(CROSS(DEA,DIFF),1));
  52. D1:=REF(C,C1+1)<C AND REF(DIFF,C1+1)>DIFF AND CROSS(DEA,DIFF);
  53. DRAWICON(FILTER(D1>0,5),H*1.07,12);
  54. DRAWTEXT(FILTER(D1>0,5),H*1.07,'M顶'),COLOR0066FF;{MACD顶背离}
  55. C2:=BARSLAST(REF(CROSS(".D"(9,3,3),".K"(9,3,3)),1));
  56. D2:=REF(C,C2+1)<C AND REF(".K"(9,3,3),C2+1)>".K"(9,3,3) AND CROSS(".D"(9,3,3),".K"(9,3,3));
  57. DRAWICON(FILTER(D2>0,5),H*1.05,12);
  58. DRAWTEXT(FILTER(D2>0,5),H*1.05,'K顶'),COLORRED;{顶背离}
  59. C3:=BARSLAST(REF(CROSS("RSI.RSI2"(6,12,24),"RSI.RSI1"(6,12,24)),1));
  60. D3:=REF(C,C3+1)<C AND REF("RSI.RSI1"(6,12,24),C3+1)>"RSI.RSI1"(6,12,24) AND CROSS("RSI.RSI2"(6,12,24),"RSI.RSI1"(6,12,24));
  61. DRAWICON(FILTER(D3>0,5),H*1.03,12);
  62. DRAWTEXT(FILTER(D3>0,5),H*1.03,'R顶'),COLORFF00FF;{RSI顶背离}
复制代码

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

返回列表