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

[通达信指标/源码] [转载]主图源码(主图,源码,说明)

[通达信指标/源码] [转载]主图源码(主图,源码,说明)

  1. CV:=CLOSE;
  2. BBIBOLL:=(MA(CV,3)+MA(CV,6)+MA(CV,12)+MA(CV,24))/4;
  3. UPR:=BBIBOLL+6*STD(BBIBOLL,11);
  4. DWN:=BBIBOLL-6*STD(BBIBOLL,11);
  5. QJJ:=VOL/((HIGH-LOW)*2-ABS(CLOSE-OPEN));
  6. XVL:=(IF(CLOSE>OPEN,QJJ*(HIGH-LOW),IF(CLOSEOPEN,0-QJJ*(HIGH-CLOSE+OPEN-LOW),IF(CLOSE
  7. HSL:=(XVL/3)/1.15;
  8. 攻击:=((HSL*0.55+(REF(HSL,1)*0.33))+(REF(HSL,2)*0.22));
  9. LLJX:=EMA(攻击,3);
  10. B1:=IF(SUM(LLJX,1)>REF(MA(SUM(LLJX,1),1),1),SUM(LLJX,1),DRAWNULL);
  11. B2:=IF(SUM(LLJX,2)>REF(MA(SUM(LLJX,2),1),1),SUM(LLJX,2),DRAWNULL);
  12. B3:=IF(SUM(LLJX,3)>REF(MA(SUM(LLJX,3),1),1),SUM(LLJX,3),DRAWNULL);
  13. B4:=IF(SUM(LLJX,4)>REF(MA(SUM(LLJX,4),1),1),SUM(LLJX,4),DRAWNULL);
  14. B5:=IF(SUM(LLJX,5)>REF(MA(SUM(LLJX,5),1),1),SUM(LLJX,5),DRAWNULL);
  15. B6:=IF(SUM(LLJX,6)>REF(MA(SUM(LLJX,6),1),1),SUM(LLJX,6),DRAWNULL);
  16. B7:=IF(SUM(LLJX,7)>REF(MA(SUM(LLJX,7),1),1),SUM(LLJX,7),DRAWNULL);
  17. B8:=IF(SUM(LLJX,8)>REF(MA(SUM(LLJX,8),1),1),SUM(LLJX,8),DRAWNULL);
  18. B9:=IF(SUM(LLJX,9)>REF(MA(SUM(LLJX,9),1),1),SUM(LLJX,9),DRAWNULL);
  19. B10:=IF(SUM(LLJX,10)>REF(MA(SUM(LLJX,10),1),1),SUM(LLJX,10),DRAWNULL);
  20. XG:=B1 AND B2 AND B3 AND B4 AND B5 AND B6 AND B7 AND B8 AND B9
  21. AND B10 AND (CLOSE-OPEN)>=(UPR-BBIBOLL) AND V/REF(V,1)>=1.9;
  22. DRAWICON(XG,V*1.1,13);



  23. VOLUME:VOL,VOLSTICK;
  24. MAVOL1:=MA(VOLUME,M1);
  25. MAVOL2:=MA(VOLUME,M2);

  26. 绿低量:=13;
  27. 蓝低量:=55;
  28. 灰低量:=100;
  29. {--------VOL.量能饱和---不懂就去百度-----}
  30. N1:=21;
  31. SAT:=(AMOUNT/C)/(HHV(AMOUNT,20)/HHV(C,20));
  32. 量能饱和:IF(SAT>1,1,SAT)*100,COLOR00AAFF,NODRAW;
  33. 中点:=REFDATE(HHV(V,180)*0.5,DATE);
  34. STICKLINE(CURRBARSCOUNT=N1,中点*1.9,中点*1.5,100,1),COLOR00AAFF;
  35. STICKLINE(CURRBARSCOUNT=N1,中点*1.88,中点*1.52,量能饱和,0),COLOR0077FF;
  36. DRAWTEXT(CURRBARSCOUNT=N1+3,中点*1.8,'饱和度'),COLORYELLOW;
  37. {=====================================================}
  38. H_L:=0.1*CONST(HHV(VOL,240));
  39. {MAV10:MA(V,10),COLORYELLOW;}
  40. 启动5:=MA(V,5),COLORWHITE;
  41. 洗盘40:=MA(V,40),COLORBLUE;
  42. 异动135:=MA(V,135),COLORMAGENTA;

  43. VVOL:=IF(CURRBARSCOUNT=1 AND PERIOD=5,VOL*240/FROMOPEN,DRAWNULL);{模拟量}
  44. STICKLINE(CURRBARSCOUNT=1 AND PERIOD=5,VVOL,0,1,-1),COLOR00C0C0;
  45. 量:=VOL,VOLSTICK;
  46. 换手:=VOL*10000/FINANCE(7),NODRAW; {DYNAINFO(37)*100}
  47. 换10T:=SUM(换手,10),NODRAW;
  48. 倍数:=1.9;
  49. 倍量: VOL>=REF(V,1)*倍数 AND (IF(CREF(C,1),1)),COLORYELLOW,NODRAW;
  50. 倍缩: REF(V,1)>=VOL*倍数,COLORMAGENTA,NODRAW;
  51. 平量: RANGE(V/REF(V,1),0.97,1.03) AND BARSCOUNT(V)>=2,COLORWHITE,NODRAW;
  52. 低量10: VOL=LLV(VOL,绿低量) AND BARSCOUNT(V)>=绿低量,COLORGREEN,NODRAW;
  53. 低量50: VOL=LLV(VOL,蓝低量) AND BARSCOUNT(V)>=蓝低量,COLORBLUE,NODRAW;
  54. 地量: VOL=LLV(VOL,灰低量) AND BARSCOUNT(V)>=灰低量,COLORGRAY,NODRAW;

  55. V1:=VOL*0.9;{图标位置}
  56. V2:=VOL*0.8;
  57. STICKLINE(倍量, 0,V1,1,0),COLORYELLOW;
  58. STICKLINE(平量,0,V1,1,0),COLORWHITE;
  59. STICKLINE(低量10,0,V2,1,0),COLORLIGREEN;
  60. STICKLINE(低量50,0,V2,1,0),COLORBLUE;
  61. STICKLINE(地量,0,V2,1,0),COLORGRAY;
  62. STICKLINE(倍缩,0,V*0.45,1,0),COLORMAGENTA;
  63. STICKLINE(CREF(C,1),0,V,0,0),COLORRED;{假阴柱}

  64. 真阳或假阴:=C>O OR C>REF(C,1);
  65. 收阳:= REF(真阳或假阴,3);
  66. 倍量1:=REF(倍量,3);
  67. 高量:=REF(V,3)>=HHV(V,7);
  68. 三日不破:= LLV(C,3)>=REF(L,3);
  69. 价升:=COUNT(C>=REF(C,1),3)=3;{收盘价逐升}
  70. 量缩:=COUNT(V<=REF(V,1),3)=3;
  71. 连阳:= COUNT(真阳或假阴,3)=3;
  72. 倍量将军柱:= 倍量1 AND 三日不破 AND 收阳;
  73. 高量将军柱:= 高量 AND 三日不破 AND 收阳;
  74. 将军柱:= 倍量将军柱 OR 高量将军柱;
  75. 黄金柱:= 将军柱 AND 价升 AND 量缩 AND 连阳 ;
  76. STICKLINE(黄金柱,0.3*V,0.7*V,1,0),COLORRED; {红柱}
  77. DRAWICON(黄金柱,V*1.5,1);

  78. V100:= V<=LLV(V,100)*1.2 AND V>0 AND BARSCOUNT(V)>=100;
  79. 百日地量群:=COUNT(V100,5)>=3;
  80. DRAWTEXT(FILTER(百日地量群,4),V+5*H_L,'地量群'),COLORGRAY;

  81. 长阴短柱:=C/REF(C,1)<=0.96 AND V
  82. DRAWTEXT(长阴短柱 ,V+1.6*H_L,'!'),COLORLICYAN;
  83. MA135:MA(VOLUME,135),COLORRED;
  84. MA5:MA(VOLUME,5),COLORBLUE;
  85. MA40:MA(VOLUME,40),COLORWHITE;
复制代码

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

返回列表