开启左侧

通达信【麒麟趋势线】主图/选股指标 买在波段低点 卖在波段高点

[复制链接]
通达信【麒麟趋势线】主图/选股指标 买在波段低点 卖在波段高点 源码
这是一个"机构操盘“类型指标,可用于”买在波段低点,卖在波段高点“,选时、选股、买卖一个指标均可搞定。

1、红色K线为上涨趋势,可重点关注;
2、蓝色K线为下跌趋势,可持币观望;
3、黄色K线为短线买点,信号可选股;
4、若黄K线出现在高位时要注意风险;
5、红色K线在红色飘带+白色虚线之上=持有;
6、蓝色K线在蓝色飘带+白色虚线之下=卖出;

另外添加了”支撑、反转、量价评分等供参考;指标含有筹码获利比例和当前流通股本未来,不影响使用。


麒麟趋势线主
  1. SWL:(EMA(CLOSE,10)*7+EMA(CLOSE,20)*3)/10;
  2. SWS:DMA(EMA(CLOSE,20),MAX(1,100*(SUM(VOL,5)/(3*CAPITAL)))),COLORWHITE,DOTLINE;
  3. MA5:MA(CLOSE,5)DOTLINE COLORWHITE;
  4. DRAWBAND(SWL,RGB(255,50,50),SWS,RGB(64,204,208));
  5. STICKLINE(C>O,C,O,2.8,0),COLORRED;
  6. DRAWKLINE(HIGH,OPEN,LOW,CLOSE);
  7. JRH:=HHV(C,2);
  8. JRL:=LLV(C,2);
  9. MA3:=MA(CLOSE,3);
  10. YTSL:=(3*CLOSE+LOW+OPEN+HIGH)/6;
  11. ABC1:=(CLOSE>REF(CLOSE,1) AND CLOSE>REF(CLOSE,2));
  12. ABC2:=(REF(ABC1,1) AND CLOSE<=REF(CLOSE,1) AND CLOSE>=REF(CLOSE,2));
  13. ABC3:=(REF(ABC2,1) AND CLOSE>=REF(CLOSE,1) AND CLOSE<=REF(CLOSE,2));
  14. ABC4:=(REF(ABC3,1) AND CLOSE<=REF(CLOSE,1) AND CLOSE>=REF(CLOSE,2));
  15. ABC5:=(REF(ABC4,1) AND CLOSE>=REF(CLOSE,1) AND CLOSE<=REF(CLOSE,2));
  16. ABC6:=(REF(ABC5,1) AND CLOSE<=REF(CLOSE,1) AND CLOSE>=REF(CLOSE,2));
  17. ABC7:=(REF(ABC6,1) AND CLOSE>=REF(CLOSE,1) AND CLOSE<=REF(CLOSE,2));
  18. ABC8:=(REF(ABC7,1) AND CLOSE<=REF(CLOSE,1) AND CLOSE>=REF(CLOSE,2));
  19. ABC9:=(REF(ABC8,1) AND CLOSE>=REF(CLOSE,1) AND CLOSE<=REF(CLOSE,2));
  20. ABCA:=(REF(ABC9,1) AND CLOSE<=REF(CLOSE,1) AND CLOSE>=REF(CLOSE,2));
  21. ABCB:=(REF(ABCA,1) AND CLOSE>=REF(CLOSE,1) AND CLOSE<=REF(CLOSE,2));
  22. ABCC:=(REF(ABCB,1) AND CLOSE<=REF(CLOSE,1) AND CLOSE>=REF(CLOSE,2));
  23. ABCD:=(CLOSE< REF(CLOSE,1) AND CLOSE< REF(CLOSE,2));
  24. ABCE:=(REF(ABCD,1) AND CLOSE>=REF(CLOSE,1) AND CLOSE<=REF(CLOSE,2));
  25. ABCF:=(REF(ABCE,1) AND CLOSE<=REF(CLOSE,1) AND CLOSE>=REF(CLOSE,2));
  26. ABC10:=(REF(ABCF,1) AND CLOSE>=REF(CLOSE,1) AND CLOSE<=REF(CLOSE,2));
  27. ABC11:=(REF(ABC10,1) AND CLOSE<=REF(CLOSE,1) AND CLOSE>=REF(CLOSE,2));
  28. ABC12:=(REF(ABC11,1) AND CLOSE>=REF(CLOSE,1) AND CLOSE<=REF(CLOSE,2));
  29. ABC13:=(REF(ABC12,1) AND CLOSE<=REF(CLOSE,1) AND CLOSE>=REF(CLOSE,2));
  30. ABC14:=(REF(ABC13,1) AND CLOSE>=REF(CLOSE,1) AND CLOSE<=REF(CLOSE,2));
  31. ABC15:=(REF(ABC14,1) AND CLOSE<=REF(CLOSE,1) AND CLOSE>=REF(CLOSE,2));
  32. ABC16:=(REF(ABC15,1) AND CLOSE>=REF(CLOSE,1) AND CLOSE<=REF(CLOSE,2));
  33. ABC17:=(REF(ABC16,1) AND CLOSE<=REF(CLOSE,1) AND CLOSE>=REF(CLOSE,2));
  34. ABC18:=(REF(ABC17,1) AND CLOSE>=REF(CLOSE,1) AND CLOSE<=REF(CLOSE,2));
  35. ABC19:=((REF(ABCD OR ABCE OR ABCF OR ABC10 OR ABC11 OR ABC12 OR ABC13 OR ABC14 OR ABC15 OR ABC16 OR ABC17 OR ABC18,1)) AND ABC1);
  36. ABC1A:=((REF(ABC1 OR ABC2 OR ABC3 OR ABC4 OR ABC5 OR ABC6 OR ABC7 OR ABC8 OR ABC9 OR ABCA OR ABCB OR ABCC,1)) AND ABCD);
  37. 红色持股:ABC1 OR ABC2 OR ABC3 OR ABC4 OR ABC5 OR ABC6 OR ABC7 OR ABC8 OR ABC9 OR ABCA OR ABCB OR ABCC,COLOR0000FF,NODRAW;
  38. 离场:=IF(红色持股,JRL,DRAWNULL);
  39. 明离场价:=离场,COLORFF99FF,NODRAW;
  40. 今离场价:REF(离场,1)COLOR0000FF,NODRAW;
  41. 青色观望:ABCD OR ABCE OR ABCF OR ABC10 OR ABC11 OR ABC12 OR ABC13 OR ABC14 OR ABC15 OR ABC16 OR ABC17 OR ABC18,COLORFFFF00,NODRAW;
  42. 进:=IF(青色观望,JRH,DRAWNULL);
  43. 明进场价:=进,COLOR33AACC,NODRAW;
  44. 今进场价:REF(明进场价,1),COLORFF0000,NODRAW;
  45. 短买:ABC19,COLOR33AACC,NODRAW;
  46. 白色离场:ABC1A,COLORFF99FF,NODRAW;
  47. 急速超跌:(CLOSE-MA(CLOSE,34))/MA(CLOSE,34)*100< -14,COLORFFFFFF,NODRAW;
  48. 上市日期年:REF(YEAR,BARSCOUNT(CLOSE)-1),NODRAW,COLOR0000FF;
  49. 月:REF(MONTH,BARSCOUNT(CLOSE)-1),NODRAW,COLORFF00FF;
  50. 日:REF(DAY,BARSCOUNT(CLOSE)-1),NODRAW,COLOR00FFFF;
  51. 辰星线:=(20*YTSL+19*REF(YTSL,1)+18*REF(YTSL,2)+17*REF(YTSL,3)+16*REF(YTSL,4)+15*REF(YTSL,5)+14*REF(YTSL,6)+13*REF(YTSL,7)+12*REF(YTSL,8)+11*REF(YTSL,9)+10*REF(YTSL,10)+9*REF(YTSL,11)+8*REF(YTSL,12)+7*REF(YTSL,13)+6*REF(YTSL,14)+5*REF(YTSL,15)+4*REF(YTSL,16)+3*REF(YTSL,17)+2*REF(YTSL,18)+REF(YTSL,20))/211,COLOR0000FF;
  52. 牵牛线:=MA(CLOSE,26),COLORFF00FF;
  53. 等待:=IF(MA3>辰星线,辰星线,MA3);
  54. STICKLINE(ISLASTBAR AND (红色持股 OR REF(红色持股,1)=1),今离场价,今离场价,2.8,1),COLORRED;
  55. STICKLINE(C>=O,L,H,0,0),COLORRED;
  56. STICKLINE(C< O, L,H,0,0),COLOR00BD00;
  57. STICKLINE(C>=O,C,O,2.8,0),COLORRED;
  58. STICKLINE(红色持股,C,O,2.8,0),COLORRED;
  59. STICKLINE(青色观望,C,O,2.8,0),COLORBLUE;
  60. CO:=(C-O);
  61. STICKLINE(急速超跌,O,C-CO/2,2.8,0),COLORC0C0C0;
  62. STICKLINE(短买,O,C,2.8,0),COLOR00FFFF;
  63. STICKLINE(白色离场,O,C,2.8,0),COLORBLUE;
  64. DRAWICON(短买,L-0.04,5);
  65. DRAWICON(白色离场,H*1.005,6);
  66. E:=(HIGH+LOW+OPEN+2*CLOSE)/5;
  67. 明日阻力:=2*E-LOW;
  68. 明日支撑:=2*E-HIGH;
  69. 明日突破:=E+(HIGH-LOW);
  70. 明日反转:=E-(HIGH-LOW);
  71. 今日阻力:=REF(明日阻力 , 1);
  72. 今日支撑:=REF(明日支撑 , 1);
  73. DRAWTEXT_FIX(C!=0,0.90,0.88,0,STRCAT('支撑:',STRCAT(CON2STR(明日支撑,2),' 元'))),COLORRED;
  74. DRAWTEXT_FIX(C!=0,0.90,0.96,0,STRCAT('反转:',STRCAT(CON2STR(明日反转,2),' 元'))),COLORYELLOW;
  75. X1:=IF(MA(C,5)>MA(C,10),20,0);
  76. X2:=IF(MA(C,20)>MA(C,60),10,0);
  77. X3:=IF(KDJ.J>KDJ.K,10,0);
  78. X4:=IF(MACD.DIF>MACD.DEA,10,0);
  79. X5:=IF(MACD.MACD>0,10,0);
  80. X6:=IF(V>MA(V,60),10,0);
  81. X7:=IF(WINNER(C)>0.5,10,0);
  82. X8:=IF(C/REF(C,1)>1.03,10,0);
  83. XX:=X1+X2+X3+X4+X5+X6+X7+X8;
  84. DRAWTEXT_FIX(V>O,0.90,0.80,0,STRCAT('量化评分:',STRCAT(CON2STR(XX,2),' '))),COLORFFFFFF;
复制代码
麒麟趋势线选
  1. JRH:=HHV(C,2);
  2. JRL:=LLV(C,2);
  3. MA3:=MA(CLOSE,3);
  4. YTSL:=(3*CLOSE+LOW+OPEN+HIGH)/6;
  5. LTP:=CAPITAL;
  6. LTSZY:=FINANCE(40)/100000000>=100;
  7. LTSZY1:=FINANCE(40)/100000000<=350;
  8. ABC1:=(CLOSE>REF(CLOSE,1) AND CLOSE>REF(CLOSE,2));
  9. ABC2:=(REF(ABC1,1) AND CLOSE<=REF(CLOSE,1) AND CLOSE>=REF(CLOSE,2));
  10. ABC3:=(REF(ABC2,1) AND CLOSE>=REF(CLOSE,1) AND CLOSE<=REF(CLOSE,2));
  11. ABC4:=(REF(ABC3,1) AND CLOSE<=REF(CLOSE,1) AND CLOSE>=REF(CLOSE,2));
  12. ABC5:=(REF(ABC4,1) AND CLOSE>=REF(CLOSE,1) AND CLOSE<=REF(CLOSE,2));
  13. ABC6:=(REF(ABC5,1) AND CLOSE<=REF(CLOSE,1) AND CLOSE>=REF(CLOSE,2));
  14. ABC7:=(REF(ABC6,1) AND CLOSE>=REF(CLOSE,1) AND CLOSE<=REF(CLOSE,2));
  15. ABC8:=(REF(ABC7,1) AND CLOSE<=REF(CLOSE,1) AND CLOSE>=REF(CLOSE,2));
  16. ABC9:=(REF(ABC8,1) AND CLOSE>=REF(CLOSE,1) AND CLOSE<=REF(CLOSE,2));
  17. ABCA:=(REF(ABC9,1) AND CLOSE<=REF(CLOSE,1) AND CLOSE>=REF(CLOSE,2));
  18. ABCB:=(REF(ABCA,1) AND CLOSE>=REF(CLOSE,1) AND CLOSE<=REF(CLOSE,2));
  19. ABCC:=(REF(ABCB,1) AND CLOSE<=REF(CLOSE,1) AND CLOSE>=REF(CLOSE,2));
  20. ABCD:=(CLOSE< REF(CLOSE,1) AND CLOSE< REF(CLOSE,2));
  21. ABCE:=(REF(ABCD,1) AND CLOSE>=REF(CLOSE,1) AND CLOSE<=REF(CLOSE,2));
  22. ABCF:=(REF(ABCE,1) AND CLOSE<=REF(CLOSE,1) AND CLOSE>=REF(CLOSE,2));
  23. ABC10:=(REF(ABCF,1) AND CLOSE>=REF(CLOSE,1) AND CLOSE<=REF(CLOSE,2));
  24. ABC11:=(REF(ABC10,1) AND CLOSE<=REF(CLOSE,1) AND CLOSE>=REF(CLOSE,2));
  25. ABC12:=(REF(ABC11,1) AND CLOSE>=REF(CLOSE,1) AND CLOSE<=REF(CLOSE,2));
  26. ABC13:=(REF(ABC12,1) AND CLOSE<=REF(CLOSE,1) AND CLOSE>=REF(CLOSE,2));
  27. ABC14:=(REF(ABC13,1) AND CLOSE>=REF(CLOSE,1) AND CLOSE<=REF(CLOSE,2));
  28. ABC15:=(REF(ABC14,1) AND CLOSE<=REF(CLOSE,1) AND CLOSE>=REF(CLOSE,2));
  29. ABC16:=(REF(ABC15,1) AND CLOSE>=REF(CLOSE,1) AND CLOSE<=REF(CLOSE,2));
  30. ABC17:=(REF(ABC16,1) AND CLOSE<=REF(CLOSE,1) AND CLOSE>=REF(CLOSE,2));
  31. ABC18:=(REF(ABC17,1) AND CLOSE>=REF(CLOSE,1) AND CLOSE<=REF(CLOSE,2));
  32. ABC19:=((REF(ABCD OR ABCE OR ABCF OR ABC10 OR ABC11 OR ABC12 OR ABC13 OR ABC14 OR ABC15 OR ABC16 OR ABC17 OR ABC18,1)) AND ABC1);
  33. DIF:=EMA(CLOSE,12)-EMA(CLOSE,26);
  34. QXS:=NOT(CODELIKE('4'));
  35. QKC:=NOT(CODELIKE('688'));
  36. QST:=IF(NAMELIKE('S'),0,1);
  37. QXX:=IF(NAMELIKE('*'),0,1);
  38. QBJ:=NOT(CODELIKE('8'));
  39. ABCDE:=QXS AND QST AND QKC AND QXX AND QBJ;
  40. DEA:=EMA(DIF,9);
  41. MACD:=(DIF-DEA)*2;
  42. OK:=MACD>0;
  43. 短买:=ABC19,COLOR33AACC;
  44. 短买 AND OK AND ABCDE AND LTSZY AND LTSZY1 AND C< 50;
复制代码


回复

使用道具 举报

懒得打字嘛,点击快捷回复 【回复乱码 永久禁言】
您需要登录后才可以回帖 登录 | 立即注册

本版积分规则

关注0

粉丝5

帖子724

发布主题
推荐素材更多+
广告位

服务电话

15987183307

QQ:1136111231
关注我们 :

QQ- Archiver-手机版-小黑屋-经典-文库- 与你共享

Powered by ynjie.com Array© 2001-2013 ynjie.com  滇ICP备19007624号-1