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

[大智慧指标] [转载]自用均线主图

[大智慧指标] [转载]自用均线主图

  1. MA1:MA(CLOSE,5);
  2. MA2:MA(CLOSE,10);
  3. MA3:MA(CLOSE,20);
  4. MA4:MA(CLOSE,30);
  5. MA5:MA(CLOSE,60);
  6. MA6:MA(CLOSE,90);
  7. MA7:MA(CLOSE,120);
  8. MA8:MA(CLOSE,250);
  9. MA9:MA(CLOSE,360);
  10. MA10:MA(CLOSE,610);
  11. DRAWTEXTABS(2,5,'所属板块:'+BKNAME),COLORFF50FF,linethick1;
  12. 总股本:=FINANCE2(35)/10000;流通盘:=FINANCE2(37)/10000;
  13. DRAWTEXTABS(15,20,'总股本:'+NUMTOSTRN(总股本,2)+'亿'),LINETHICK1,COLORYELLOW;
  14. DRAWTEXTABS(160,20,'流通盘:'+NUMTOSTRN(流通盘,2)+'亿'),LINETHICK1,COLORYELLOW;
  15. 每股收益:=FINANCE2(3);
  16. 每股市盈率:=DYNAINFO(39);
  17. 每股净资产:=FINANCE2(4);
  18. 每股现金流:=FINANCE2(6);
  19. 主营收入同比:=FINANCE2(11);
  20. 净利润同比增长:=FINANCE2(10);
  21. 每股未分配:=FINANCE2(8);
  22. 每股公积金:=FINANCE2(7);
  23. 资产负债率:=FINANCE2(20)/FINANCE2(14)*100;
  24. 每股市净率:=DYNAINFO(58);
  25. DRAWTEXTABS(160,35,'每股收益:'+NUMTOSTRN(每股收益,2)+'元'),COLOR00FF00;
  26. DRAWTEXTABS(160,50,'每股市盈率:'+NUMTOSTRN(每股市盈率,1)+'倍'),COLORYELLOW;
  27. DRAWTEXTABS(160,65,'每股净资产:'+NUMTOSTRN(每股净资产,2)+'元'),COLOR00FF00;
  28. DRAWTEXTABS(15,35,'每股经营现金流:'+NUMTOSTRN(每股现金流,2)+'元'),LINETHICK1,COLOR00FF00;
  29. DRAWTEXTABS(15,50,'主收入同比增长:'+NUMTOSTRN(主营收入同比,2)+'%'),LINETHICK1,COLORYELLOW;
  30. DRAWTEXTABS(15,65,'净利润同比增长:'+NUMTOSTRN(净利润同比增长,2)+'%'),LINETHICK1,COLOR00FF00;
  31. DRAWTEXTABS(15,80,'每股未分配:'+NUMTOSTRN(每股未分配,2)+'元'),COLORYELLOW;
  32. DRAWTEXTABS(160,80,'每股公积金:'+NUMTOSTRN(每股公积金,2)+'元'),COLORYELLOW;
  33. DRAWTEXTABS(15,95,'资产负债率:'+NUMTOSTRN(资产负债率,2)+'%'),LINETHICK1,COLOR00FF00;
  34. DRAWTEXTABS(160,95,'每股市净率:'+每股市净率+'倍 '),LINETHICK1,COLOR00FF00;

  35. DRAWTEXTABS(280,30,'MA5   天均线:'+MA1),COLORFFCC00,LINETHICK2;
  36. DRAWTEXTABS(280,50,'MA10 天均线:'+MA2),COLORFFCC00,LINETHICK2;
  37. DRAWTEXTABS(280,70,'MA20  天均线:'+MA3),COLORFFCC00,LINETHICK2;
  38. DRAWTEXTABS(280,90,'MA30 天均线:'+MA4),COLORFFCC00,LINETHICK2;
  39. DRAWTEXTABS(280,110,'MA60  天均线:'+MA5),COLORFFCC00,LINETHICK2;
  40. DRAWTEXTABS(280,130,'MA90  天均线:'+MA6),COLORFFCC00,LINETHICK2;
  41. DRAWTEXTABS(280,150,'MA120 天均线:'+MA7),COLORFFCC00,LINETHICK2;
  42. DRAWTEXTABS(280,170,'MA250 天均线:'+MA8),COLORFFCC00,LINETHICK2;
  43. DRAWTEXTABS(280,190,'MA360 天均线:'+MA9),COLORFFCC00,LINETHICK2;
  44. DRAWTEXTABS(280,210,'MA610 天均线:'+MA10),COLORFFCC00,LINETHICK2;
  45. DRAWTEXTABS(460,25,'■主营业务:'+SELFSTRING('主营业务')),color00D7FF;
  46. DRAWTEXTABS(460,40,'■主题库:'+SELFSTRING('主题投资')),COLOR00A5FF;
  47. DRAWTEXTREL(5,975, ' 善谋者,谋势。不善谋者,谋子.'),coloryellow,linethick1;


  48. A4:=MA(CLOSE,20);
  49. A5:=(CLOSE > MA(CLOSE,5));
  50. A6:=(MA(CLOSE,5) > MA(CLOSE,10));
  51. A7:=(CLOSE > MA(CLOSE,10));
  52. A8:=(MA(CLOSE,5) > MA(CLOSE,20));
  53. A9:=(CLOSE > MA(CLOSE,20));
  54. A10:=REF(A4,1);
  55. A11:=(A4 > A10);
  56. AVX:=(((((IF(A5,10,(0 - 10)) + IF(A6,10,(0 - 10))) + IF(A7,10,(0 - 10))) + IF(A8,10,(0 - 10))) + IF(A9,10,(0 - 10))) + IF(A11,10,(0 - 10)));
  57. DSLX:=(CLOSE / INDEXC);
  58. DSLX1:=MA(DSLX,5);
  59. DSLX2:=MA(DSLX,10);
  60. V1:=MA(VOL,5);
  61. V2:=MA(VOL,10);
  62. 阻力位:=IF((CLOSE > 200),(CLOSE * 1.01),(CLOSE * 1.07));
  63. 阻力位1:=IF((CLOSE < 10),(CLOSE * 1.05),阻力位);
  64. 止损位:=IF((CLOSE > 200),(CLOSE * 0.99),(CLOSE * 0.93));
  65. 止损位1:=IF((CLOSE < 10),(CLOSE * 0.95),止损位);
  66. TJTS1:=BARSTATUS=2 and c<200;
  67. TJTS2:=BARSTATUS=2 and c>200;
  68. k2:=hhv(h,barslast(DISPSTATUS=1)+1);
  69. DRAWTEXT(TJTS1 and  ((CROSS(AVX,1) AND (V1 >= V2)) AND (DSLX >= DSLX1)) ,k2*0.99,'该股的量能理想,有明显走强迹象,可以考虑中线进场参与,仓位在2/3左右。       '),ALIGN2,colorDC143C;
  70. DRAWTEXT(TJTS1 and  ((CROSS(AVX,1) AND (V1 < V2)) AND (DSLX >= DSLX1)) ,k2*0.99,'该股虽然走势趋强,但量能还显不足,可以考虑短线进场,仓位在1/2左右。       '),ALIGN2,colorDC143C;
  71. DRAWTEXT(TJTS1 and  ((CROSS(AVX,1) AND (V1 > V2)) AND (DSLX < DSLX1)) ,k2*0.99,'该股量价配合良好,但相对其它股票并没有明显走强,可以考虑短线进场,仓位1/2左右。       '),ALIGN2,colorDC143C;
  72. DRAWTEXT(TJTS1 and  ((CROSS(AVX,1) AND (V1 <= V2)) AND (DSLX < DSLX1)) ,k2*0.99,'该股形态尚可,但量能不足,股票也未完全走强,可以短线参与,仓位1/3左右。       '),ALIGN2,color0000FF;
  73. DRAWTEXT(TJTS1 and  ((CROSS(1,AVX) AND (V1 >= V2)) AND (DSLX >= DSLX1)) ,k2*0.99,'该股形态变坏,但走势相对其它股票尚可,重仓者减持大半,清仓者可以观望。       '),ALIGN2,color00FF00;
  74. DRAWTEXT(TJTS1 and  ((CROSS(1,AVX) AND (V1 < V2)) AND (DSLX >= DSLX1)) ,k2*0.99,'该股随大盘一起下跌,程明显缩量走势,考虑到大盘风险,减持或清仓。       '),ALIGN2,color00FF00;

  75. DRAWTEXT(TJTS1 and  ((CROSS(1,AVX) AND (V1 >= V2)) AND (DSLX < DSLX1)) ,k2*0.99,'该股放量下跌,走势明显偏弱,离场观望。       '),ALIGN2,color00FF00;
  76. DRAWTEXT(TJTS1 and  ((CROSS(1,AVX) AND (V1 < V2)) AND (DSLX < DSLX1)) ,k2*0.99,'该股缩量下跌,走势偏弱,离场观望。       '),ALIGN2,color00FF00;
  77. DRAWTEXT(TJTS1 and  ((((AVX >= 1) AND (REF(AVX,1) > 0)) AND (V1 >= V2)) AND (DSLX >= DSLX1)) ,k2*0.99,'该股形态良好,强势明显,量能充足,可以继续持有。       '),ALIGN2,color00FFFF;
  78. DRAWTEXT(TJTS1 and  ((((AVX >= 1) AND (REF(AVX,1) > 0)) AND (V1 < V2)) AND (DSLX >= DSLX1)) ,k2*0.99,'该股上行趋势不变,强势依然,但量能开始转弱,注意风险。       '),ALIGN2,color00FFFF;
  79. DRAWTEXT(TJTS1 and  ((((AVX >= 1) AND (REF(AVX,1) > 0)) AND (V1 >= V2)) AND (DSLX < DSLX1)) ,k2*0.99,'该股仍然具备上涨潜力,但股性偏弱,可考虑减仓。       '),ALIGN2,color00FFFF;
  80. DRAWTEXT(TJTS1 and  ((((AVX >= 1) AND (REF(AVX,1) > 0)) AND (V1 < V2)) AND (DSLX < DSLX1)) ,k2*0.99,'该股走势趋弱,量能不足,减持大部分筹码。       '),ALIGN2,color00FFFF;
  81. DRAWTEXT(TJTS1 and  ((((AVX < 1) AND (REF(AVX,1) < 0)) AND (V1 >= V2)) AND (DSLX >= DSLX1)) ,k2*0.99,'该股形态不佳,注意成交量的变化,但目前不适合参与。       '),ALIGN2;
  82. DRAWTEXT(TJTS1 and  ((((AVX < 1) AND (REF(AVX,1) < 0)) AND (V1 < V2)) AND (DSLX >= DSLX1)) ,k2*0.99,'该股趋势不明,股价偏弱,注意量能变化,目前不宜参与。       '),ALIGN2;
  83. DRAWTEXT(TJTS1 and  ((((AVX < 1) AND (REF(AVX,1) < 0)) AND (V1 >= V2)) AND (DSLX < DSLX1)) ,k2*0.99,'该股有走强迹象,但量能不足,趋势不明,不适合操作。       '),ALIGN2;
  84. DRAWTEXT(TJTS1 and  ((((AVX < 1) AND (REF(AVX,1) < 0)) AND (V1 < V2)) AND (DSLX < DSLX1)) ,k2*0.99,'该股走势太弱,没有参与价值。       '),ALIGN2;
  85. DRAWTEXT(TJTS2 and  (CROSS(AVX,1) AND (V1 >= V2)) ,k2*0.99,'大盘量能理想,有明显走强迹象,可以考虑中线进场参与,仓位在2/3左右,       '),ALIGN2,color0000FF;
  86. DRAWTEXT(TJTS2 and  (CROSS(AVX,1) AND (V1 >= V2)) ,k2*0.98,' 如前期经过一轮下跌,此时为最佳买点,但如果前期有过一段涨幅则介入需谨慎。       '),ALIGN2,color0000FF;
  87. DRAWTEXT(TJTS2 and  (CROSS(AVX,1) AND (V1 < V2)) ,k2*0.99,'大盘虽然走势趋强,但量能还显不足,如果前期经过一轮下跌,       '),ALIGN2,color0000FF;
  88. DRAWTEXT(TJTS2 and  (CROSS(AVX,1) AND (V1 < V2)) ,k2*0.98,' 可以考虑短线进场,仓位在1/2左右,一旦量能放大可以加仓买入。       '),ALIGN2,color0000FF;
  89. DRAWTEXT(TJTS2 and  (CROSS(1,AVX) AND (V1 >= V2)) ,k2*0.99,'大盘形态走坏,重仓者可以减去大部分仓位。       '),ALIGN2,color00FF00;
  90. DRAWTEXT(TJTS2 and  (CROSS(1,AVX) AND (V1 < V2)) ,k2*0.99,'大盘缩量调整,注意风险,短线清仓观望。       '),ALIGN2,color00FF00;
  91. DRAWTEXT(TJTS2 and  (((AVX >= 1) AND (REF(AVX,1) > 0)) AND (V1 >= V2)) ,k2*0.99,'大盘走势良好,量能理想,可以继续持有强势股。       '),ALIGN2,color00FFFF;
  92. DRAWTEXT(TJTS2 and  (((AVX >= 1) AND (REF(AVX,1) > 0)) AND (V1 < V2)) ,k2*0.99,'大盘形态良好,但量能稍显不足,随时准备减仓。       '),ALIGN2,color00FFFF;
  93. DRAWTEXT(TJTS2 and  (((AVX < 1) AND (REF(AVX,1) < 0)) AND (V1 >= V2)) ,k2*0.99,'大盘趋势不明,注意成交量变化,目前不适宜进场。       '),ALIGN2;
  94. W:=BARSLAST(DISPSTATUS=1);
  95. 低涨:(H/LLV(LOW,W)-1)*100,COLOR0000FF,LINETHICK0,PRECIS2;
  96. 高跌:(L/HHV(HIGH,W)-1)*100,COLOR0000FF,LINETHICK0,PRECIS2;
  97. 天日:BARSLAST(L=LLV(LOW,W)),COLOR00FFFF,LINETHICK0,PRECIS0;
  98. 天:BARSLAST(H=HHV(HIGH,W)),COLOR00FFFF,LINETHICK0,PRECIS0;
  99. {以下设置提示文字部分}
  100. DRAWTEXTREL(15,480,'■低点至今日最高点上涨:'+NUMTOSTRN(低涨,2)+'%  '+NUMTOSTRN(天日,0)+'天'),COLORFF50FF;
  101. DRAWTEXTREL(15,550,'■高点至今日最低点下跌:'+NUMTOSTRN(高跌,2)+'%  '+NUMTOSTRN(天,0)+'天'),COLORFF50FF;
  102. DRAWTEXTREL(15,620,'■目前可见K线:'+NUMTOSTRN(W+1,0)+'天'),COLOR00FF00;

  103. a:="LTFunc4@FORLT2";
  104. s1:="LTFunc4@LT_S1";
  105. hs:="LTFunc4@LT_HS";
  106. ls:="LTFunc4@LT_LS";
  107. p1:="LTFunc4@LT_P1";
  108. upp:="LTFunc4@LT_UPP";
  109. udd:="LTFunc4@LT_UDD";

  110. d1:=ema(abs("ddx.ddx"),60);
  111. d2:=max("ddx.ddx"/d1+7.5,7.5);
  112. d3:=min("ddx.ddx"/d1,10);
  113. fb:=if(s1=0,hs,ls);
  114. tr0:=ifs(p1=1,'明日收盘价<'+numtostrn(udd,2)+',出现S点n','若明日收盘价>'+numtostrn(upp,2)+',出现B点n');
  115. {DRAWTEXT(p1=1 ,udd ,numtostrn(udd,2)+'s点' ),move1;DRAWTEXT(p1<>1,upp,numtostrn(upp,2)+'b点'),move1;}

  116. DRAWTEXT(barstatus=2 ,ref(udd,1),numtostrn(ref(udd,1),2)+'S点');
  117. DRAWTEXT(barstatus=2 ,ref(upp,1),numtostrn(ref(upp,1),2)+'B点');
  118. {a3:if(93000<=time<=150000,ref((a1 or a2),1),a1 or a2);}

  119. tr1:=ifs(s1=1,'明日收盘价<'+numtostrn(ls,2)+',短线卖出机会','若明日收盘价>'+numtostrn(hs,2)+'短线买入机会');
  120. DRAWTEXT(barstatus=2,ref(ls,1),numtostrn(ref(ls,1),2)+'短卖'),move2;
  121. DRAWTEXT(barstatus=2,ref(hs,1),numtostrn(ref(hs,1),2)+'短买'),move2;

  122. tr2:=ifs(p1=1,ifs(cross(p1,0),'B点','持股'),ifs(cross(1,p1),'S点','持币'));
  123. tr3:=ifs(s1=0,'向下,','向上,');
  124. tr4:='3.能量级别:'+numtostrn(d3,1)+'级';

  125. bs:=datestr(date)+'买卖点决策系统提示n'+'1.BS点:'+tr2+','+tr0+'2.短线:'+tr3+tr1+'n'+tr4;
  126. drawflagtext(1,fb,bs);

  127. drawbmp(p1=1 and ref(p1,1)=0,l,'buy1.bmp'),align1,valign0;
  128. drawbmp(p1=0 and ref(p1,1)=1,h,'sell1.bmp'),align1,valign2;

  129. drawbmp(s1=1 and ref(s1,1)=0 and (p1+ref(p1,1))<>1,l,'bs.bmp'),align1,valign0;
  130. drawbmp(s1=0 and ref(s1,1)=1 and (p1+ref(p1,1))<>1,h,'ss.bmp'),align1,valign2;
复制代码

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

返回列表