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

[通达信指标/源码] [转载]{金龙喜舞}

[通达信指标/源码] [转载]{金龙喜舞}

公式:
  1. {金龙喜舞}

  2. 日时转换:=IF(PERIOD=5,120,240);
  3. QZS:=(EMA(CLOSE,10)+EMA(CLOSE,32))/2;
  4. VAR1:=(EMA(CLOSE,30)+EMA(CLOSE,72))/2;
  5. VAR2:=(EMA(VOL,10)+EMA(VOL,32))/2;
  6. VAR3:=(VAR1+VAR2)/2;
  7. VAR4:=EMA(VAR3,30);
  8. VAR5:=EMA(VAR3,60);
  9. VAR6:=EVERY(VAR1>REF(VAR1,1),5) AND EVERY(VAR4>REF(VAR4,1),5);
  10. DRAWBAND(VAR1,RGB(150,30,30),EMA(VAR1,60),RGB(0,110,30));
  11. 牵引线:VAR1,COLORYELLOW;
  12. 强弱线:EMA(VAR1,日时转换),POINTDOT,COLORWHITE;
  13. 趋势关注:IF(CROSS(VAR1,EMA(VAR1,60)) AND VAR6,1,0),NODRAW,COLORRED;
  14. 量价关注:IF(CROSS(VAR3,VAR5) AND VAR6,1,0),NODRAW,COLORWHITE;
  15. 冲击量:IF(VAR3>VAR5 AND VAR6,1,0),NODRAW,COLORYELLOW;
  16. 强势区:IF(VAR1>强弱线,1,DRAWNULL),NODRAW,COLORRED;
  17. 止损区:IF(VAR1<强弱线,1,DRAWNULL),NODRAW,COLORGREEN;
  18. STICKLINE(QZS>VAR1,QZS,VAR1,1,0),COLORFF00FF;
  19. STICKLINE(冲击量=1,QZS,VAR1,1,0),COLORYELLOW;
  20. DRAWICON(趋势关注=1,EMA(VAR1,60),13);
  21. DRAWTEXT(量价关注=1,EMA(VAR1,60),'L0V'),COLORWHITE;
复制代码












一、用于tdx日图的金龙喜舞

  1. 日时转换1:=IF(PERIOD=5,120,240);
  2. 日时转换2:=IF(PERIOD=5,5,30);
  3. 日时转换3:=IF(PERIOD=5,15,60);
  4. 日时转换4:=IF(PERIOD=5,2,5);
  5. QZS:=(EMA(CLOSE,10)+EMA(CLOSE,32))/2;
  6. VAR1:=(EMA(CLOSE,30)+EMA(CLOSE,72))/2;
  7. VAR2:=(EMA(VOL,10)+EMA(VOL,32))/2;
  8. VAR3:=(VAR1+VAR2)/2;
  9. VAR4:=EMA(VAR3,日时转换2);
  10. VAR5:=EMA(VAR3,日时转换3);
  11. VAR6:=EVERY(VAR1>REF(VAR1,1),日时转换4) AND
  12.         EVERY(VAR4>REF(VAR4,1),日时转换4);
  13. DRAWBAND(VAR1,RGB(150,30,30),EMA(VAR1,60),RGB(0,110,30));
  14. 牵引线:VAR1,COLORYELLOW,LINETHICK3;
  15. 强弱线:EMA(VAR1,日时转换1),COLORWHITE;
  16. 趋势关注:IF(CROSS(VAR1,EMA(VAR1,60)) AND VAR6,1,0),NODRAW,COLORRED;
  17. 量价关注:IF(CROSS(VAR3,VAR5) AND VAR6,1,0),NODRAW,COLORWHITE;
  18. 冲击量:IF(VAR3>VAR5 AND VAR6,1,0),NODRAW,COLORYELLOW;
  19. 强势区:IF(VAR1>强弱线,1,DRAWNULL),NODRAW,COLORRED;
  20. 止损区:IF(VAR1<强弱线,1,DRAWNULL),NODRAW,COLORGREEN;
  21. STICKLINE(QZS>VAR1,QZS,VAR1,1,0),COLORFF00FF;
  22. STICKLINE(冲击量=1,QZS,VAR1,1,0),COLORYELLOW;
  23. DRAWICON(趋势关注=1,EMA(VAR1,60),13);
  24. DRAWTEXT(趋势关注=1,EMA(VAR1,60),'转折'),COLORWHITE;
  25. {DRAWTEXT(量价关注=1,EMA(VAR1,60),'L0V'),COLORWHITE;};

  26. EMA30:=EMA(C,30),COLORFFCCCC;
  27. EMA60:=EMA(C,60),COLORFF00FF;
  28. EMA90:=EMA(C,90),COLORYELLOW;
  29. EMA120:=EMA(C,120),COLORFFCC66;
  30. EMA250:=EMA(C,250),COLORBLUE;

  31. A1:=(EMA30+EMA60+EMA90+EMA120)/4;
  32. A2:=ABS(EMA30-A1)+ABS(EMA60-A1)+ABS(EMA90-A1)+ABS(EMA120-A1);
  33. {B1:=(EMA60+EMA90+EMA120+EMA120)/4;
  34. B2:=ABS(EMA60-B1)+ABS(EMA90-B1)+ABS(EMA120-B1)+ABS(EMA250-B1);}

  35. 均:=(EMA30+EMA60+EMA90+EMA120)/4;
  36. AA:=A2/A1;
  37. DRAWTEXT(AA>=0 AND AA<=0.03 AND 均>REF(均,1), 强弱线*0.9,'粘'),COLORYELLOW;
复制代码



二、用于tdx分时图的金龙喜舞

  1. 日时转换:=IF(PERIOD=5,120,240);
  2. QZS:=(EMA(CLOSE,10)+EMA(CLOSE,32))/2;
  3. VAR1:=(EMA(CLOSE,30)+EMA(CLOSE,72))/2;
  4. VAR2:=(EMA(VOL,10)+EMA(VOL,32))/2;
  5. VAR3:=(VAR1+VAR2)/2;
  6. VAR4:=EMA(VAR3,30);
  7. VAR5:=EMA(VAR3,60);
  8. VAR6:=EVERY(VAR1>REF(VAR1,1),5) AND EVERY(VAR4>REF(VAR4,1),5);
  9. DRAWBAND(VAR1,RGB(150,30,30),EMA(VAR1,60),RGB(0,110,30));
  10. 牵引线:VAR1,COLORYELLOW,LINETHICK3;
  11. 强弱线:EMA(VAR1,日时转换),COLORWHITE;
  12. 趋势关注:IF(CROSS(VAR1,EMA(VAR1,60)) AND VAR6,1,0),NODRAW,COLORRED;
  13. 量价关注:IF(CROSS(VAR3,VAR5) AND VAR6,1,0),NODRAW,COLORWHITE;
  14. 冲击量:IF(VAR3>VAR5 AND VAR6,1,0),NODRAW,COLORYELLOW;
  15. 强势区:IF(VAR1>强弱线,1,DRAWNULL),NODRAW,COLORRED;
  16. 止损区:IF(VAR1<强弱线,1,DRAWNULL),NODRAW,COLORGREEN;
  17. STICKLINE(QZS>VAR1,QZS,VAR1,1,0),COLORFF00FF;
  18. STICKLINE(冲击量=1,QZS,VAR1,1,0),COLORYELLOW;
  19. {DRAWICON(趋势关注=1,EMA(VAR1,60),13);
  20. DRAWTEXT(趋势关注=1,EMA(VAR1,60),'转折'),COLORWHITE;
  21. DRAWTEXT(量价关注=1,EMA(VAR1,60),'L0V'),COLORWHITE;};
复制代码



三、用于大智慧日图的金龙喜舞


  1. 日时转换1:=IF(DATATYPE=8,120,240);
  2. 日时转换2:=IF(DATATYPE=8,5,30);
  3. 日时转换3:=IF(DATATYPE=8,15,60);
  4. 日时转换4:=IF(DATATYPE=8,2,5);
  5. QZS:=(EMA(CLOSE,10)+EMA(CLOSE,32))/2;
  6. VAR1:=(EMA(CLOSE,30)+EMA(CLOSE,72))/2;
  7. VAR2:=(EMA(VOL,10)+EMA(VOL,32))/2;
  8. VAR3:=(VAR1+VAR2)/2;
  9. VAR4:=EMA(VAR3,日时转换2);
  10. VAR5:=EMA(VAR3,日时转换3);
  11. VAR6:=all(VAR1>REF(VAR1,1),日时转换4) AND all(VAR4>REF(VAR4,1),日时转换4);
  12. FILLRGN(VAR1,EMA(VAR1,60),VAR1>EMA(VAR1,60),RGB(150,30,30),VAR1<EMA(VAR1,60),RGB(0,110,30));
  13. 牵引线:VAR1,COLORYELLOW,LINETHICK3;
  14. 强弱线:EMA(VAR1,日时转换1),COLORWHITE;
  15. 趋势关注:IF(CROSS(VAR1,EMA(VAR1,60)) AND VAR6,1,0),LINETHICK0,COLORRED;
  16. 量价关注:IF(CROSS(VAR3,VAR5) AND VAR6,1,0),LINETHICK0,COLORWHITE;
  17. 冲击量:IF(VAR3>VAR5 AND VAR6,1,0),LINETHICK0,COLORYELLOW;
  18. 强势区:IF(VAR1>强弱线,1,0),LINETHICK0,COLORRED;
  19. 止损区:IF(VAR1<强弱线,1,0),LINETHICK0,COLORGREEN;
  20. STICKLINE(QZS>VAR1,QZS,VAR1,1,0),COLORFF00FF;
  21. STICKLINE(冲击量=1,QZS,VAR1,1,0),COLORYELLOW;
  22. DRAWICON(趋势关注=1,EMA(VAR1,60),13);
  23. DRAWTEXT(趋势关注=1,EMA(VAR1,60),'转折'),COLORWHITE;
  24. {DRAWTEXT(量价关注=1,EMA(VAR1,60),'L0V'),COLORWHITE;};

  25. 三、用于大智慧分时图的金龙喜舞
  26. 日时转换:=IF(DATATYPE=8,120,240);
  27. QZS:=(EMA(CLOSE,10)+EMA(CLOSE,32))/2;
  28. VAR1:=(EMA(CLOSE,30)+EMA(CLOSE,72))/2;
  29. VAR2:=(EMA(VOL,10)+EMA(VOL,32))/2;
  30. VAR3:=(VAR1+VAR2)/2;
  31. VAR4:=EMA(VAR3,30);
  32. VAR5:=EMA(VAR3,60);
  33. VAR6:=ALL(VAR1>REF(VAR1,1),5) AND ALL(VAR4>REF(VAR4,1),5);
  34. FILLRGN(VAR1,EMA(VAR1,60),VAR1>EMA(VAR1,60),RGB(150,30,30),VAR1<EMA(VAR1,60),RGB(0,110,30));
  35. 牵引线:VAR1,COLORYELLOW;
  36. 强弱线:EMA(VAR1,日时转换),COLORWHITE;
  37. 趋势关注:IF(CROSS(VAR1,EMA(VAR1,60)) AND VAR6,1,0),LINETHICK0,COLORRED;
  38. 量价关注:IF(CROSS(VAR3,VAR5) AND VAR6,1,0),LINETHICK0,COLORWHITE;
  39. 冲击量:IF(VAR3>VAR5 AND VAR6,1,0),LINETHICK0,COLORYELLOW;
  40. 强势区:IF(VAR1>强弱线,1,0),LINETHICK0,COLORRED;
  41. 止损区:IF(VAR1<强弱线,1,0),LINETHICK0,COLORGREEN;
  42. STICKLINE(QZS>VAR1,QZS,VAR1,3,0),COLORFF00FF;
  43. STICKLINE(冲击量=1,QZS,VAR1,3,0),COLORYELLOW;
  44. {DRAWICON(趋势关注=1,EMA(VAR1,60),13);
  45. DRAWTEXT(量价关注=1,EMA(VAR1,60),'L0V'),COLORWHITE;};
复制代码




  1. {金龙喜舞}

  2. 日时转换:=IF(PERIOD=5,120,240);
  3. QZS:=(EMA(CLOSE,10)+EMA(CLOSE,32))/2;
  4. VAR1:=(EMA(CLOSE,30)+EMA(CLOSE,72))/2;
  5. VAR2:=(EMA(VOL,10)+EMA(VOL,32))/2;
  6. VAR3:=(VAR1+VAR2)/2;
  7. VAR4:=EMA(VAR3,30);
  8. VAR5:=EMA(VAR3,60);
  9. VAR6:=EVERY(VAR1>REF(VAR1,1),5) AND EVERY(VAR4>REF(VAR4,1),5);
  10. DRAWBAND(VAR1,RGB(150,30,30),EMA(VAR1,60),RGB(0,110,30));
  11. 牵引线:VAR1,COLORYELLOW;
  12. 强弱线:EMA(VAR1,日时转换),POINTDOT,COLORWHITE;
  13. 趋势关注:IF(CROSS(VAR1,EMA(VAR1,60)) AND VAR6,1,0),NODRAW,COLORRED;
  14. 量价关注:IF(CROSS(VAR3,VAR5) AND VAR6,1,0),NODRAW,COLORWHITE;
  15. 冲击量:IF(VAR3>VAR5 AND VAR6,1,0),NODRAW,COLORYELLOW;
  16. 强势区:IF(VAR1>强弱线,1,DRAWNULL),NODRAW,COLORRED;
  17. 止损区:IF(VAR1<强弱线,1,DRAWNULL),NODRAW,COLORGREEN;
  18. STICKLINE(QZS>VAR1,QZS,VAR1,1,0),COLORFF00FF;
  19. STICKLINE(冲击量=1,QZS,VAR1,1,0),COLORYELLOW;
  20. DRAWICON(趋势关注=1,EMA(VAR1,60),13);
  21. DRAWTEXT(量价关注=1,EMA(VAR1,60),'L0V'),COLORWHITE;
复制代码






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

返回列表