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

[大智慧指标] [转载]量红绿灯+长短绿灯大智慧指标(副图,源码,贴图)

[大智慧指标] [转载]量红绿灯+长短绿灯大智慧指标(副图,源码,贴图)

量红绿灯
  1. A:=MAX(MA(VOL,30),MA(VOL,60));
  2. B:=MIN(MA(VOL,30),MA(VOL,60));
  3. 绿灯行:VOL>A,COLORGREEN,LINETHICK0,PRECIS0;
  4. 红灯停:VOL<B,COLORRED,LINETHICK0,PRECIS0;
  5. 黄灯等:A>=VOL AND VOL>=B,COLORYELLOW,LINETHICK0,PRECIS0 ;
  6. STICKLINE(VOL>A,0,1,10,0),COLORGREEN,LINETHICK2;
  7. STICKLINE(VOL<B,0,1,10,0),COLORRED,LINETHICK2;
  8. STICKLINE(A>=VOL AND VOL>=B,0,1,10,0),COLORYELLOW,LINETHICK2;
复制代码



长短绿灯


  1. A:=MAX(MA(C,5),MA(C,10));
  2. B:=MIN(MA(C,5),MA(C,10));
  3. 绿灯行F5:C>A,COLORGREEN;
  4. 红灯停F5:=C<B;
  5. 黄灯观望F5:=C>=B AND C<=A;
  6. STICKLINE(C>A,3.3,4,10,0),COLORGREEN,LINETHICK2;
  7. STICKLINE(C<B,3.3,4,10,0),COLORRED,LINETHICK2;
  8. STICKLINE(C>=B AND C<=A,3.3,4,10,0),COLORYELLOW,LINETHICK2;

  9. F20A:=MAX(MA(C,10),MA(C,20));
  10. F20B:=MIN(MA(C,10),MA(C,20));
  11. 绿灯行F20:C>F20A,COLORGREEN;
  12. 红灯停F20:=C<F20B;
  13. 黄灯观望F20:=C>=F20B AND C<=F20A;
  14. STICKLINE(C>F20A,2.3,3,10,0),COLORGREEN,LINETHICK2;
  15. STICKLINE(C<F20B,2.3,3,10,0),COLORRED,LINETHICK2;
  16. STICKLINE(C>=F20B AND C<=F20A,2.3,3,10,0),COLORYELLOW,LINETHICK2;


  17. F30A:=MAX(MA(C,20),MA(C,30));
  18. F30B:=MIN(MA(C,20),MA(C,30));
  19. 绿灯行F30:C>F30A,COLORGREEN;
  20. 红灯停F30:=C<F30B;
  21. 黄灯观望F30:=C>=F30B AND C<=F30A;
  22. STICKLINE(C>F30A,1.3,2,10,0),COLORGREEN,LINETHICK2;
  23. STICKLINE(C<F30B,1.3,2,10,0),COLORRED,LINETHICK2;
  24. STICKLINE(C>=F30B AND C<=F30A,1.3,2,10,0),COLORYELLOW,LINETHICK2;


  25. F60A:=MAX(MA(C,60),MA(C,120));
  26. F60B:=MIN(MA(C,60),MA(C,120));
  27. 绿灯行F60:C>F60A,COLORGREEN;
  28. 红灯停F60:=C<F60B;
  29. 黄灯观望F60:=C>=F60B AND C<=F60A;
  30. STICKLINE(C>F60A,0,1,10,0),COLORGREEN,LINETHICK2;
  31. STICKLINE(C<F60B,0,1,10,0),COLORRED,LINETHICK2;
  32. STICKLINE(C>=F60B AND C<=F60A,0,1,10,0),COLORYELLOW,LINETHICK2;



  33. 大盘A:=MAX(MA(INDEXC,60),MA(INDEXC,120));
  34. 大盘B:=MIN(MA(INDEXC,60),MA(INDEXC,120));
  35. 绿灯行大盘:INDEXC>大盘A,COLORGREEN;
  36. 红灯停大盘:INDEXC<大盘B,COLORRED;
  37. 黄灯观望大盘:INDEXC>=大盘B AND INDEXC<=大盘A,COLORYELLOW;
  38. STICKLINE(INDEXC>大盘A,4.3,5,10,0),COLORGREEN,LINETHICK2;
  39. STICKLINE(INDEXC<大盘B,4.3,5,10,0),COLORRED,LINETHICK2;
  40. STICKLINE(INDEXC>=大盘B AND INDEXC<=大盘A,4.3,5,10,0),COLORYELLOW,LINETHICK2;
  41. XG:( 绿灯行F5 AND 绿灯行F20  AND 绿灯行F30 AND 绿灯行F60) =1;

  42. DRAWTEXTREL(10,3,'★绿灯行:大盘'),colorwhite,linethick1;
  43. DRAWTEXTREL(10,203,'★绿灯行:F5'),colorwhite,linethick1;
  44. DRAWTEXTREL(10,403,'★绿灯行:F20'),colorwhite,linethick1;
  45. DRAWTEXTREL(10,603,'★绿灯行:F30'),colorwhite,linethick1;
  46. DRAWTEXTREL(10,803,'★绿灯行:F60'),colorwhite,linethick1;
复制代码


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

微信截图_20181019113104.png
如何访问权限为100/255贴子:/thread-37840-1-1.html;注册后仍无法回复:/thread-23-1-1.html;微信/QQ群:/thread-262-1-1.html;网盘链接失效解决办法:/thread-93307-1-1.html

TOP

返回列表