决策主力股票论坛|今日股市行情大盘分析查询

 找回密码
 立即/注册

扫一扫,访问微社区

QQ登录

只需一步,快速开始

搜索
上证指数 3191.30 -23.74 -0.74% 香港恒生 29914.500 -48.762 -0.16% 日经225 22167.30 -50.60 -0.23% 韩国综合 2216.81 +0.16 +0.01%
道琼斯 26511.05 -48.49 -0.18% 纳斯达克 8015.27 +17.21 +0.22% 英国富时 7462.16 -9.16 -0.12% 德国DAX 12213.26 +60.19 +0.50%
人民币 6.7132 +0.0011 +0.02% 原油 65.89 +0.52% 原油 黄金 1276.7 -0.07% 黄金全球股市行情 2019年04月23日10时44分
查看: 14059|回复: 0

[通达信] 通达信预判顶底主图指标公式

[复制链接]
发表于 2019-1-30 14:03:01 | 显示全部楼层 |阅读模式

  1. M5:=MA(CLOSE,5),COLORWHITE;
  2. M10:=MA(CLOSE,10),COLORYELLOW;
  3. M20:MA(CLOSE,20),COLORMAGENTA;
  4. M30:=MA(CLOSE,30),COLORGREEN;
  5. M60:MA(CLOSE,60),LINETHICK2,COLORCYAN;
  6. M90:=MA(CLOSE,90),COLORBLUE;
  7. M120:MA(CLOSE,120),LINETHICK2,COLORLIRED;
  8. M180:=MA(CLOSE,180),LINETHICK1,COLORYELLOW;
  9. M250:MA(CLOSE,250),COLORRED;
  10. M350:=MA(CLOSE,318),COLORBROWN;
  11. 生命:EMA(CLOSE,453),COLORCYAN,LINETHICK1;
  12. 判:IF(M60>REF(M60,1),M60,DRAWNULL),COLORMAGENTA,LINETHICK2;
  13. 判2:IF(M20M120 AND M120>M90 AND M90>M60 AND M60>M30 AND M30>M20 AND M20>M10 AND M10>M5;
  14. 空头2:=M250>M180 AND M180>M120 AND M120>M90 AND M90>M60 AND M60>M30 AND M30>M20 AND M20>M10 AND M10>M5;
  15. DRAWTEXT(CROSS(M5,M10) AND COUNT(空头,10)>0,H*1.005,'底?'),COLORYELLOW;
  16. DRAWTEXT(CROSS(M10,M20) AND COUNT(空头,10)>0,H*1.0035,'底成'),COLORYELLOW;
  17. DRAWTEXT(CROSS(M120,M180) AND M60>REF(M60,1),L*0.9985,'跌后赶顶'),COLORGREEN;
  18. DRAWTEXT(CROSS(M180,M250) AND M60>REF(M60,1) ,L*0.998,'跌后见顶?'),COLORGREEN;
  19. DRAWTEXT(CROSS(M250,M350),M30*0.9985,'若新高逃顶'),COLORGREEN;
  20. DRAWTEXT(CROSS(M250,生命),H*1.0010,'离场'),COLORGREEN;
  21. DRAWTEXT(CROSS(M60,M30) AND DIF做空,O,C,1,0),COLORBLUE;
  22. MM:=SMA(MAX(CLOSE-REF(CLOSE,1),0),6,1)/SMA(ABS(CLOSE-REF(CLOSE,1)),6,1)*100;
  23. 分批出:=CROSS(MM,85);
  24. 分批买:=CROSS(MM,15);
  25. DRAWTEXT(分批买,C*1.0045,'进'),COLORYELLOW;
  26. DRAWTEXT(分批出 ,H*0.999,'出'),COLORGREEN;
  27. DRAWICON(分批买,H*1.0025,9);
  28. A11:=BARSLAST(REF(CROSS(DIF,DEA),1));
  29. 底背离:=REF(CLOSE,A11+1)>CLOSE AND DIF>REF(DIF,A11+1) AND CROSS(DIF,DEA),COLORFF00FF;
  30. DRAWTEXT(底背离,L*1.001,'M背'),COLORMAGENTA;
  31. A12:=BARSLAST(REF(CROSS(DEA,DIF),1));
  32. 顶背离:=REF(CLOSE,A12+1)DIF AND CROSS(DEA,DIF),COLORGREEN;
  33. DRAWTEXT(顶背离,H*0.999,'M背'),COLORGREEN;
  34. JCCOUNT:=COUNT(CROSS(DIF,DEA),BARSLAST(DEA>=0));
  35. 二次金叉:=CROSS(DIF,DEA) AND DEAREF(生命线,1),8);
  36. STICKLINE(空头,M120,M90,1,0),COLORGREEN;
  37. STICKLINE(空头 AND LAST(DIFREF(DIF,1),M120,M20,1,0),COLORMAGENTA;
  38. STICKLINE(空头 AND CROSS(资金线,生命线) AND 生命线REF(生命线,1) AND REF(生命连跌,1)=1 AND 生命线C AND C>REF(C,1) AND C>REF(C,1)*1.03,O,'随后有涨停'),COLORLIRED;
  39. MV5:=MA(VOL,5),COLORWHITE,LINETHICK2;
  40. M3:=MA(VOL,35),COLORLIRED;
  41. M1:=MA(VOL,135),COLORGREEN;
  42. DRAWTEXT(CROSS(C,生命) AND C>REF(C,1)*1.02 AND DIF>REF(DIF,1) AND M30>REF(M30,1) AND MV5>REF(MV5,1) AND M1>REF(M1,1),H,'突破'),COLORMAGENTA;
  43. VL:=REF(LOW,1);
  44. VAR112:=(SMA(ABS(LOW-VL),7,1))/(SMA(MAX(LOW-VL,0),7,1))*100;
  45. VAR14:=MA(VAR112,7);
  46. VAR15:=LLV(LOW,15);
  47. VAR18:=EMA(IF(LOWREF(VAR18,1),VAR18*8,0),7);
  48. DRAWTEXT(TT,H*1.002,'随后止跌'),COLORCYAN;
  49. 买线:=EMA(C,2);
  50. 卖线:=EMA(SLOPE(C,21)*20+C,42);
  51. BU:=CROSS(买线,卖线);
  52. SEL:=CROSS(卖线,买线);
  53. DRAWTEXT(BU,L*0.998,'埋伏'),COLORMAGENTA;
  54. DRAWTEXT(CROSS(EMA(C,8),EMA(C,3)),L*0.997,'跟'),COLORCYAN;
  55. 量B:=SUM(VOL,5)/(SUM(VOL,10)-SUM(VOL,5));
  56. 芝麻:=REF(量B,1)REF(量B,1);
  57. DRAWTEXT(芝麻,L*0.998,'芝'),COLORWHITE;
  58. PDAY1 := BARSLAST(CROSS(M5,M60));
  59. PDAY2 := BARSLAST(CROSS(M10,M60));
  60. PDAY3 := BARSLAST(REF(HIGH=HHV(HIGH,PDAY2),1));
  61. PDAY4 := BARSLAST(CROSS(M10,M5){http://jue-ce.com});
  62. PDAY5 := BARSLAST(CROSS(M5,M10){http://jue-ce.com});
  63. A1:= PDAY1>PDAY2 AND PDAY2>PDAY3 AND PDAY3>PDAY4 AND PDAY4>PDAY5 AND PDAY5M60 AND M10>M60;
  64. 老鸭头:=(A1 AND A2 AND A3) AND FILTER(A1 AND A2 AND A3 ,5);
  65. DRAWTEXT(老鸭头,H*1.005,'老鸭头'),COLORGREEN;
复制代码
回复

使用道具 举报

您需要登录后才可以回帖 登录 | 立即/注册

本版积分规则



手机版|今日股市行情|联系我们|决策主力股票论坛 ( 鄂ICP备15023833号-1)点击这里给我发消息 鄂公网安备 42062502000040号

GMT+8, 2019-4-23 10:48

Powered by 今日股市

© 2001-2017 http://jue-ce.com/

快速回复 返回顶部 返回列表