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

[大智慧指标] 简单套利指标公式源码[大智慧公式]

[大智慧指标] 简单套利指标公式源码[大智慧公式]

  1. Var1:=1;
  2. 趋势线: ((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)-50)*1.032+50),COLORRED;
  3. Var2:=(2*CLOSE+HIGH+LOW+OPEN)/5;
  4. Var3:=LLV(LOW,34);
  5. Var4:=HHV(HIGH,34);
  6. SK: EMA((Var2-Var3)/(Var4-Var3)*100,13)*Var1,colorwhite;
  7. SD: EMA(SK,2),coloryellow;
  8. Var5:=EMA(CLOSE,12)-EMA(CLOSE,26);
  9. Var6:=EMA(Var5,9);
  10. Var7:=Var1*CLOSE*1.236<MA(CLOSE,60);
  11. Var8:=CLOSE/REF(CLOSE,1)>1.021;
  12. Var9:=(HIGH-CLOSE)*1.36<=CLOSE-OPEN;
  13. VarA:=(MA(CLOSE,120)-CLOSE)/CLOSE*100;
  14. VarB:=ABS(Var5-Var6);
  15. VarC:=STD(CLOSE,90)*10;
  16. VarD:=COUNT((REF(CLOSE,15)-CLOSE)/CLOSE*100>45,5);
  17. 买:IF( Var1*Var7 AND Var8 AND Var9 AND VarC<25 AND CLOSE<8 AND VarA<114 AND VarB<=0.23*40,55,0),colorred;
  18. VarE:=SLOPE(CLOSE,40);
  19. VarF:=COUNT((CLOSE-REF(CLOSE,1))/REF(CLOSE,1)<-0.098,90);
  20. Var10:=(MA(CLOSE,120)-CLOSE)/CLOSE*100;
  21. Var11:=STD(CLOSE,63)*10;
  22. Var12:=(MA(CLOSE,76)-MA(CLOSE,13)/3);
  23. Var13:=MA((CLOSE-Var12)/Var12,1);
  24. Var14:=MA(CLOSE,5);
  25. Var15:=MA(CLOSE,10);
  26. Var16:=MA(CLOSE,20);
  27. Var17:=MA(CLOSE,30);
  28. Var18:=MA(CLOSE,60);
  29. Var19:=MA(CLOSE,150);
  30. Var1A:=MA(CLOSE,250);
  31. Var1B:=VOL/CAPITAL*100;
  32. Var1C:=(CLOSE-Var1A)/Var1A*100;
  33. Var1D:=(CLOSE/REF(CLOSE,1)-1)*100;
  34. Var1E:=PWINNER(1,CLOSE);
  35. Var1F:=IF(Var1>0.75 AND Var1<0.901,0.618,1);
  36. 牛: IF(Var14>Var15 AND Var15>Var16 AND Var16>Var17 AND Var16>Var18 AND Var19>Var1A AND (Var1E>=0.9 OR Var1E>0.76 AND Var1E<0.901 AND Var1D>5 AND Var1B>5) AND Var1D>1.8 AND Var1C<40 AND CLOSE>3 AND (CLOSE-Var18)/Var18<0.25 AND Var1B<=6 AND Var4*Var1B>=1 AND CLOSE<18.5,35,0), colorf00f00;
  37. Var20:=(MA(CLOSE,3)+MA(CLOSE,6)+MA(CLOSE,12)+MA(CLOSE,24))/4;
  38. Var21:=(MA(CLOSE,48)+MA(CLOSE,6)+MA(CLOSE,12)+MA(CLOSE,24))/4;
  39. Var22:=Var1*(MA(CLOSE,12)+MA(CLOSE,24)+MA(CLOSE,48)+MA(CLOSE,96))/4;
  40. Var23:=Var1*MA(CLOSE,250);
  41. Var24:=MA(CLOSE,125);
  42. Var25:=CLOSE/MA(CLOSE,3)>=1.05 AND CLOSE=HHV(CLOSE,3) AND MA(VOL,2)/MA(VOL,40)>=3 AND MA(VOL,2)=HHV(MA(VOL,2),3) AND VOL>REF(VOL,1) AND CLOSE>REF(CLOSE,1);
  43. Var26:=REF(CLOSE,1);
  44. Var27:=SMA(MAX(CLOSE-Var26,0),5,1)/SMA(ABS(CLOSE-Var26),5,1)*100;
  45. Var28:=Var1*COUNT(Var27<25,20)>=1;
  46. Var29:=(HIGH-LOW)/HIGH*100+(CLOSE-Var26)/Var26*100;
  47. Var2A:=EMA(MA(Var29,41),6);
  48. Var2B:=Var2A>LLV(Var2A,6)*1.02 AND REF(Var2A,1)<REF(LLV(Var2A,6),1)*1.02 AND LLV(Var2A,29)=LLV(Var2A,6);
  49. Var2C:=Var1*LLV(LOW,6)=LLV(LOW,41) AND LLV(LOW,6)<HHV(LOW,41)*71/100;
  50. Var2D:=HIGH>LOW*1.033;
  51. 涨势确立: Var1*(Var2C>0 AND Var2D*16+81.5)*Var1,Color80FFFF ;
  52. 买入:IF(CROSS(趋势线,21),50,18.5),linethick1,coloraaa0ff;
  53. 卖出:IF(CROSS(87,趋势线),60,81.5 ),colorFFAA00;
  54. DRAWTEXT(Var2C>0 AND Var2D,88,'↑'),colorwhite;
  55. Var2E:=IF(CROSS(SK,SD),25,18.5);
  56. Var2F:=IF(CROSS(SD,SK),75,81.5);
  57. 卖线: Var2F, colorwhite;
  58. 买线: Var2E,colorred;
  59. Var13<0.06*(-10)+81.5,colorwhite;
  60. Var30:0-SQRT(SQRT(FLOOR(SQRT(MA(1/WINNER(CLOSE)*100,4)/10000))))*5;
  61. STICKLINE(Var30<-2,0,Var30,1.5,1);
  62. drawtext(买入>var2E,61,'短买'),coloraaaaff;
  63. drawtext(卖出<Var2F,58,'短卖'),colorffaa00;
  64. drawtext(买>1.0,65,'长买'),colorred;
  65. drawtext(牛>1.0,40,'长牛'),colorf00f00;
  66. CXH:=STRTONUM(STRRIGHT(DATESTR(CURRENTDATE),1));
  67. WARNING('http://www.cxh99.com',CURRENTTIME>180000 and (CXH=1 OR CXH=6));
复制代码

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

返回列表