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

大智慧精准宝塔线指标公式源码 红色持股青色持币[大智慧公式]

大智慧精准宝塔线指标公式源码 红色持股青色持币[大智慧公式]

  1. var1:=CLOSE>ref(CLOSE,1) AND CLOSE>ref(CLOSE,2);
  2. var2:=ref(var1,1) AND CLOSE<=ref(CLOSE,1) AND CLOSE>=ref(CLOSE,2);
  3. var3:=ref(var2,1) AND CLOSE>=ref(CLOSE,1) AND CLOSE<=ref(CLOSE,2);
  4. var4:=ref(var3,1) AND CLOSE<=ref(CLOSE,1) AND CLOSE>=ref(CLOSE,2);
  5. var5:=ref(var4,1) AND CLOSE>=ref(CLOSE,1) AND CLOSE<=ref(CLOSE,2);
  6. var6:=ref(var5,1) AND CLOSE<=ref(CLOSE,1) AND CLOSE>=ref(CLOSE,2);
  7. var7:=ref(var6,1) AND CLOSE>=ref(CLOSE,1) AND CLOSE<=ref(CLOSE,2);
  8. var8:=ref(var7,1) AND CLOSE<=ref(CLOSE,1) AND CLOSE>=ref(CLOSE,2);
  9. var9:=ref(var8,1) AND CLOSE>=ref(CLOSE,1) AND CLOSE<=ref(CLOSE,2);
  10. varA:=ref(var9,1) AND CLOSE<=ref(CLOSE,1) AND CLOSE>=ref(CLOSE,2);
  11. varB:=ref(varA,1) AND CLOSE>=ref(CLOSE,1) AND CLOSE<=ref(CLOSE,2);
  12. varC:=ref(varB,1) AND CLOSE<=ref(CLOSE,1) AND CLOSE>=ref(CLOSE,2);
  13. varD:=CLOSE<ref(CLOSE,1) AND CLOSE<ref(CLOSE,2);
  14. varE:=ref(varD,1) AND CLOSE>=ref(CLOSE,1) AND CLOSE<=ref(CLOSE,2);
  15. varF:=ref(varE,1) AND CLOSE<=ref(CLOSE,1) AND CLOSE>=ref(CLOSE,2);
  16. var10:=ref(varF,1) AND CLOSE>=ref(CLOSE,1) AND CLOSE<=ref(CLOSE,2);
  17. var11:=ref(var10,1) AND CLOSE<=ref(CLOSE,1) AND CLOSE>=ref(CLOSE,2);
  18. var12:=ref(var11,1) AND CLOSE>=ref(CLOSE,1) AND CLOSE<=ref(CLOSE,2);
  19. var13:=ref(var12,1) AND CLOSE<=ref(CLOSE,1) AND CLOSE>=ref(CLOSE,2);
  20. var14:=ref(var13,1) AND CLOSE>=ref(CLOSE,1) AND CLOSE<=ref(CLOSE,2);
  21. var15:=ref(var14,1) AND CLOSE<=ref(CLOSE,1) AND CLOSE>=ref(CLOSE,2);
  22. var16:=ref(var15,1) AND CLOSE>=ref(CLOSE,1) AND CLOSE<=ref(CLOSE,2);
  23. var17:=ref(var16,1) AND CLOSE<=ref(CLOSE,1) AND CLOSE>=ref(CLOSE,2);
  24. var18:=ref(var17,1) AND CLOSE>=ref(CLOSE,1) AND CLOSE<=ref(CLOSE,2);
  25. STICKLINE(var1 OR var2 OR var3 OR var4 OR var5 OR var6 OR var7 OR
  26. var8 OR var9 OR varA OR varB OR varC,CLOSE,ref(CLOSE,1),6,1),COLORRED;{红1}
  27. STICKLINE(varD OR varE OR varF OR var10 OR var11 OR var12 OR var13 OR
  28. var14 OR var15 OR var16 OR var17 OR var18,CLOSE,ref(CLOSE,1),6,0),ColorFFFF00;{青色}
  29. var19:=ref(varD OR varE OR varF OR var10 OR var11 OR var12 OR var13 OR
  30. var14 OR var15 OR var16 OR var17 OR var18,1) AND var1;
  31. STICKLINE(var19,ref(CLOSE,1),ref(CLOSE,2),6,1),COLORYELLOW;{黄色}
  32. var1A:=ref(var1 OR var2 OR var3 OR var4 OR var5 OR var6 OR var7 OR
  33. var8 OR var9 OR varA OR varB OR varC,1) AND varD;
  34. STICKLINE(var1A,ref(CLOSE,1),ref(CLOSE,2),6,2),Color00FF00;
  35. STICKLINE(var19,ref(CLOSE,1),ref(CLOSE,2),8,0),COLOR00FFFF;
  36. STICKLINE(var1A,ref(CLOSE,1),ref(CLOSE,2),8,0),COLORFF00FF;{紫红色}

  37. MA5:MA(c,5),COLORRED,linethick2;
  38. DD5:=MA5<ref(MA5,1);
  39. PARTLINE(MA5,DD5),ColorFFFF00,linethick2;
  40. x:=(3*c+l+o+h)/6;
  41. 多空线:(20*x+19*ref(x,1)+18*ref(x,2)+17*ref(x,3)+16*ref(x,4)+15*ref(x,5)+14*ref(x,6)
  42. +13*ref(x,7)+12*ref(x,8)+11*ref(x,9)+10*ref(x,10)+9*ref(x,11)+8*ref(x,12)
  43. +7*ref(x,13)+6*ref(x,14)+5*ref(x,15)+4*ref(x,16)+3*ref(x,17)+2*ref(x,18)+
  44. ref(x,20))/210,coloryelLOW,linethick2;
  45. DD:=多空线<ref(多空线,1);
  46. PARTLINE(多空线,DD),colorblue,linethick5;A:=(MA5>多空线);
  47. PARTLINE(多空线,A),COLORYELLOW,POINTDOT;A1:=(MA5<多空线);
  48. PARTLINE(多空线,A1),COLORWHITE;

  49. 红色持股:0,linethick0,COLORRED;
  50. 晶红卖出:var1A,linethick0,COLORFF50FF;
  51. 青色持币:0,linethick0,COLORFFFF00;
  52. 黄色买入:var19,linethick0,COLOR00ffff;
复制代码

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

返回列表