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

[通达信指标/源码] [转载]一个主图指标 两个副图 一个选股 稍微琢磨下就够用了

[通达信指标/源码] [转载]一个主图指标 两个副图 一个选股 稍微琢磨下就够用了

{天机均线}主图
  1. EMA250:MA(C,250),COLORRED;
  2. EMA6:MA(C,6),COLORRED LINETHICK2;
  3. EMA18:MA(C,18),COLORYELLOW;
  4. EMA55:MA(C,55),COLORFF00FF;
  5. EMA144:MA(C,144),COLORGREEN;
  6. EMA288:MA(C,288),COLORBLUE;
  7. 中线【买入】:=COUNT(CLOSE<EMA18,5)=4 AND
  8. CLOSE/EMA18>1.004 AND CROSS(CLOSE,EMA18) AND EMA18>=
  9. REF(EMA18,1),LINETHICK,COLORRED;
  10. DRAWTEXT(中线【买入】,LOW*0.95,' 中线【买入】'),COLORRED;
  11. VL:=REF(LOW,1);
  12. VAR12:=(SMA(ABS(LOW-VL),13,1))/(SMA(MAX(LOW-VL,0),13,1))*100;
  13. VAR14:=MA(VAR12,13);
  14. VAR15:=LLV(LOW,34);
  15. VAR18:=EMA(IF(LOW<=VAR15,VAR14,0),3);
  16. VAR110:=SMA(SMA((CLOSE-LLV(LOW,54))/(HHV(HIGH,54)-LLV(LOW,54))*100,7,1),5,1);
  17. VAR111:=SMA((CLOSE-LLV(LOW,54))/(HHV(HIGH,54)-LLV(LOW,54))*100,7,1)*16.18-VAR110*10.9;
  18. T:=FILTER(IF(VAR111<=VAR110 AND VAR18>REF(VAR18,1),VAR18*8,0),20);
  19. DRAWTEXT(T,LOW-0.4,'←洗盘结束'),COLORFF00FF;
  20. DRAWTEXT(T,LOW-0.2,'|'),COLORFF00FF;
  21. VAR21:=(CLOSE-LLV(LOW,36))/(HHV(HIGH,36)-LLV(LOW,36))*100;
  22. VAR22:=SMA(VAR21,3,1);
  23. VAR23:=SMA(VAR22,3,1);
  24. VAR24:=SMA(VAR23,3,1);
  25. VAR25:=CROSS(VAR23,VAR24) AND VAR23<20;
  26. DRAWTEXT(FILTER(VAR25,10)=1,LOW-0.4,'←抄底'),COLORRED;
  27. DRAWTEXT(FILTER(VAR25,10)=1,LOW-0.2,'|'),COLORRED;
  28. VAR29:=CROSS(VAR24,VAR23) AND VAR23>80;
  29. DRAWTEXT(FILTER(VAR29,5)=1,HIGH+0.4,'←逃顶'),COLORBLUE;
  30. DRAWTEXT(FILTER(VAR29,5)=1,HIGH+0.2,'|'),COLORBLUE;
复制代码



主力进场 副图
N 1 100 9
N2 1 100 5


  1. N1:=9;N2:=5;
  2. MTM:=C-REF(C,1);
  3. ZLGJ:100*EMA(EMA(MTM,N1),N1)/EMA(EMA(ABS(MTM),N1),N1),COLORWHITE;
  4. MAZL:MA(ZLGJ,N2),COLORYELLOW;

  5. VAR1:=REF((LOW+OPEN+CLOSE+HIGH)/4,1);
  6. VAR2:=SMA(ABS(LOW-VAR1),13,1)/SMA(MAX(LOW-VAR1,0),10,1);
  7. VAR3:=EMA(VAR2,10);
  8. VAR4:=LLV(LOW,33);
  9. VAR5:=EMA(IF(LOW<=VAR4,VAR3,0),3);
  10. 主力进场:IF(VAR5>REF(VAR5,1),VAR5,0),COLORRED,NODRAW;
  11. STICKLINE(VAR5>REF(VAR5,1),0,VAR5,3,0 ),COLOR000055;
  12. STICKLINE(VAR5>REF(VAR5,1),0,VAR5,2.6,0 ),COLOR000077;
  13. STICKLINE(VAR5>REF(VAR5,1),0,VAR5,2.1,0 ),COLOR000099;
  14. STICKLINE(VAR5>REF(VAR5,1),0,VAR5,1.5,0 ),COLOR0000BB;
  15. STICKLINE(VAR5>REF(VAR5,1),0,VAR5,0.9,0 ),COLOR0000DD;
  16. STICKLINE(VAR5>REF(VAR5,1),0,VAR5,0.3,0 ),COLOR0000FF;
  17. 洗盘:IF(VAR5<REF(VAR5,1),VAR5,0),COLORGREEN,NODRAW;
  18. STICKLINE(VAR5<REF(VAR5,1),0,VAR5,3,0),COLOR005500;
  19. STICKLINE(VAR5<REF(VAR5,1),0,VAR5,2.6,0),COLOR007700;
  20. STICKLINE(VAR5<REF(VAR5,1),0,VAR5,2.1,0),COLOR009900;
  21. STICKLINE(VAR5<REF(VAR5,1),0,VAR5,1.5,0),COLOR00BB00;
  22. STICKLINE(VAR5<REF(VAR5,1),0,VAR5,0.9,0),COLOR00DD00;
  23. STICKLINE(VAR5<REF(VAR5,1),0,VAR5,0.3,0),COLOR00FF00;
复制代码



资金检测【判断成交异动】副图

  1. A股:CAPITAL/1000000,LINETHICK0,COLORWHITE;
  2. 实际量:VOL,LINETHICK0;
  3. {VAR1:=DYNAINFO(17)*REF(MA(VOL,5),1);
  4. VAR2:=DYNAINFO(7)=CLOSE AND DYNAINFO(10)=AMOUNT;
  5. 预测:=IF(DYNAINFO(7)=CLOSE AND DYNAINFO(10)=AMOUNT,VAR1,VAR2)/10000;
  6. 预测量:STICKLINE(IF(DYNAINFO(7)=CLOSE AND DYNAINFO(10)=AMOUNT,VAR1,VAR2),VAR1,0,7,1),COLORGRAY;}
  7. AA:=VOL/((HIGH-LOW)*2-ABS(CLOSE-OPEN));
  8. 主买:IF(CLOSE>OPEN,AA*(HIGH-LOW),IF(CLOSE<OPEN,AA*((HIGH-OPEN)+(CLOSE-LOW)),VOL /2)),POINTDOT,COLORRED;
  9. 主卖:IF(CLOSE>OPEN,0-AA*((HIGH-CLOSE)+(OPEN-LOW)),IF(CLOSE<OPEN,0-AA*(HIGH-LOW),0-VOL /2)),LINETHICK0,COLORGREEN;
  10. 换手率%:VOL/CAPITAL*100,POINTDOT,COLORWHITE;
  11. STICKLINE(C>=REF(C,1) ,0,VOL,2.5,1),COLORRED;
  12. STICKLINE(C<REF(C,1),0,VOL,2.5,1),COLORGREEN;
  13. STICKLINE(主买>0,0,主买,2.5,0),COLORRED;
  14. STICKLINE(主卖<0 ,0,主卖,2.5,0),COLORGREEN;
  15. 资金异动:VOL/MA(VOL,55)*100,COLORYELLOW;
  16. STICKLINE(资金异动>100 ,0,VOL,0.6,0),COLORYELLOW;
  17. MA5:MA(V,5),COLORWHITE;
  18. MA13:MA(V,13),COLORRED;
复制代码



领头羊【选股】 大盘好的时候信号有点多,从中自己赛选出自己认为股价形态较好的买进。 一般 PE 16 以下 流通 3亿以下 也就那么多


  1. 白色:=SMA(HIGH,21,2)*1.05,;
  2. 黄色:=SMA(LOW,21,2)*0.95;
  3. 粉色:=SMA(LOW,5,1);
  4. 绿色:=SMA(CLOSE,2,1),;
  5. 波段买入:=IF(CROSS(绿色,粉色),白色*1.05,粉色);
  6. 领头羊:=IF(CROSS(绿色,白色),白色*1.10,黄色);
  7. 领头羊>黄色 OR 波段买入>粉色
复制代码

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

返回列表