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

[大智慧指标] BBI趋势线主图指标源码[大智慧公式]

[大智慧指标] BBI趋势线主图指标源码[大智慧公式]

  1. BBI:="BBI"(3,6,12,24);
  2. 中轴线:(MA(CLOSE,3)+MA(CLOSE,6)+MA(CLOSE,12)+MA(CLOSE,24))/4,linethick3;
  3. 压力线: BBI+3*STD(BBI,10),linethick3;
  4. 支撑线: BBI-3*STD(BBI,10),linethick3;
  5. 趋势线: MA(CLOSE,30), CIRCLEDOT,COLORFFFF00;
  6. MA5:MA(C,5);
  7. MA10:=MA(close,10);
  8. MA60:=MA(close,60);
  9. GJTJ1:=100*(C-LLV(L,5))/(HHV(C,5)-LLV(L,5));
  10. GJTJ2:=100*(C-LLV(L,10))/(HHV(C,10)-LLV(L,10));
  11. GJTJ3:=100*(C-LLV(L,20))/(HHV(C,20)-LLV(L,20));
  12. GJTJ4:=100*(C-LLV(L,30))/(HHV(C,30)-LLV(L,30));
  13. baijin1:=BARSLAST(CROSS(30,GJTJ1))<2 AND BARSLAST(CROSS(GJTJ1,50))<2;
  14. baijin2:=BARSLAST(CROSS(GJTJ4,GJTJ1))<2 AND GJTJ1>GJTJ4;
  15. baijin3:=GJTJ1>60 AND GJTJ4>70;
  16. drawtext(baijin1 AND baijin2 AND baijin3,l-0.02,'白金');
  17. huangjin1:=BARSLAST(CROSS(50,GJTJ1))<3 AND BARSLAST(CROSS(GJTJ1,50))<3;
  18. huangjin2:=BARSLAST(CROSS(GJTJ4,GJTJ1))<2 AND GJTJ1>GJTJ4;
  19. DRAWTEXT(huangjin1 AND huangjin2,l-0.03,'黄金');
  20. XG:=BARSLAST(CROSS(GJTJ4,GJTJ1))<5 AND GJTJ1>GJTJ4;
  21. drawtext(COUNT(XG,3)=1 AND XG and c>ma(c,20),l-0.02,'低位就追'),colorred;
  22. zhencang1:=BARSLAST(CROSS(GJTJ4,GJTJ1))>3 AND BARSLAST(CROSS(GJTJ1,GJTJ4))<3;
  23. zhencang2:=BARSLAST(CROSS(GJTJ4,GJTJ2));
  24. zhencang3:=GJTJ3<GJTJ4 AND GJTJ2<GJTJ4;
  25. zhencang4:=BARSLAST(CROSS(GJTJ4,GJTJ3))>3 AND BARSLAST(CROSS(GJTJ1,GJTJ4))<3;
  26. zhencang5:=GJTJ2<GJTJ3 AND GJTJ2<GJTJ4 AND GJTJ2<GJTJ1 AND GJTJ1=100;
  27. zcB1:=zhencang1>0 AND REF(zhencang1,1)=0 AND REF(zhencang1,2)>0;
  28. drawtext(zhencang1 AND zhencang2 AND zhencang3 AND zhencang4 AND zhencang5,l-0.05,'震仓启点');
  29. Aa:=BARSLAST(CROSS(97,GJTJ1))<=1 AND BARSLAST(CROSS(GJTJ1,85))<=1;
  30. Bb:=BARSLAST(CROSS(97,GJTJ2))<=1 AND BARSLAST(CROSS(GJTJ2,85))<=1;
  31. Aa1:=Aa AND Bb;
  32. AAa:=BARSLAST(CROSS(97,GJTJ1))<=2 AND BARSLAST(CROSS(GJTJ1,85))<=1;
  33. BAa:=BARSLAST(CROSS(97,GJTJ2))<=2 AND BARSLAST(CROSS(GJTJ2,85))<=1;
  34. Aa2:=AA AND Bb ;
  35. AAAa:=BARSLAST(CROSS(97,GJTJ1))<=3 AND BARSLAST(CROSS(GJTJ1,85))<=1;
  36. BAAa:=BARSLAST(CROSS(97,GJTJ2))<=3 AND BARSLAST(CROSS(GJTJ2,85))<=1;
  37. Aa3:=AAAa AND BAAa ;
  38. Bb1:=REF(Aa1,1);
  39. Bb2:=REF(Aa2,1);
  40. Bb3:=REF(Aa3,1);
  41. Dd1:=GJTJ1=100 AND GJTJ2=100 AND Aa1 ;
  42. Dd2:=GJTJ1=100 AND GJTJ2=100 AND Aa2 ;
  43. Dd3:=GJTJ1=100 AND GJTJ2=100 AND Aa3 ;
  44. drawtext(Dd1 OR Dd2 OR Dd3,l-0.02,'短线追');
  45. Aw:=BARSLAST(CROSS(95,GJTJ1))<=2;
  46. Bw:=BARSLAST(CROSS(95,GJTJ2))<=2;
  47. Ew:= GJTJ4<GJTJ1 AND GJTJ1<GJTJ2 AND GJTJ1<GJTJ3;
  48. Fw:=GJTJ2>50 AND GJTJ3>50;
  49. Gw:=GJTJ1=100 AND GJTJ2=100;
  50. TXw:=COUNT(Gw,2)=1;
  51. drawtext(Aw AND Bw AND Ew AND Fw AND TXw,l-0.03,'杀跌首日');
  52. Aq:=GJTJ3=100;
  53. Bq:=GJTJ4<90;
  54. drawtext(COUNT(Aq,2) = 2 AND Bq,l-0.02,'波落前兆');
  55. LC:=REF(CLOSE,1);
  56. RSI:=SMA(MAX(CLOSE-LC,0),6,1)/SMA(ABS(CLOSE-LC),6,1)*100;
  57. DRAWTEXT(CROSS(84,RSI) , HIGH,'→ 超买 '),COLORYELLOW;DRAWTEXTREL(10,880,'WWW.CXH99.COM'),coloryellow;
  58. DRAWTEXTREL(999,999,'<span style="display:none;"><a  data-cke-saved-href=" http://www.cxh99.com" href=" http://www.cxh99.com" title="大智慧程序化交易">大智慧程序化交易</a></span>');
复制代码


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

返回列表