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

 找回密码
 立即/注册

扫一扫,访问微社区

QQ登录

只需一步,快速开始

搜索
上证指数 2576.65 -21.32 -0.82% 香港恒生 25814.250 -273.730 -1.05% 日经225 21126.00 -380.88 -1.77% 韩国综合 2061.47 -9.62 -0.46%
道琼斯 23719.70 +126.72 +0.54% 纳斯达克 6800.42 +46.69 +0.69% 英国富时 6713.77 -59.47 -0.88% 德国DAX 10755.90 -16.30 -0.15%
人民币 6.8968 -0.0003 -0.00% 原油 46.19 -7.3978% NYMEX原油 黄金 1253.1 +0.1038% 黄金全球股市行情 2018年12月19日04时47分
查看: 5714|回复: 0

[通达信] 通达信背离不二指标公式

[复制链接]
发表于 2018-9-29 14:02:59 | 显示全部楼层 |阅读模式

  1. WL:(CLOSE-MA(CLOSE,6))/MA(CLOSE,6)*100,LINETHICK1,COLOR0000FF;
  2. WL3:=MA(WL,3),COLOR00FFFF;
  3. WLT:MA(WL,89),COLOR00FFFF,LINETHICK1;
  4. DRAWBAND(WL,RGB(200,60,200),WLT,RGB(0,100,50));
  5. 遵涨:IF(WL>=WLT,WL,DRAWNULL),COLOR3300FF;
  6. 守望:IF(WLT>=WL,WLT,DRAWNULL),COLORFF6000;
  7. 纪买:IF(WL>=WLT,WLT,DRAWNULL),COLOR00FFFF;
  8. 律跌:IF(WLT>=WL,WL,DRAWNULL),COLOR00FF00;
  9. WLT1:=CROSS(WL,WLT);
  10. WLT11:=CROSS(WL,-10);
  11. WLT2:=FILTER(WLT1,8);
  12. SKY:=10,POINTDOT,COLORFF0000,LINETHICK1;
  13. SEA:=-10,POINTDOT,COLORFF00FF,LINETHICK1;
  14. DRAWICON(WLT2,WLT,23);
  15. DRAWICON(WLT11,SEA,15);
  16. T8:=FILTER(CROSS(WL,WL3) AND WL310,5)>=3;
  17. WLT33:=CROSS(10,WL);
  18. SEL:=WLT3 AND WLT33;
  19. DRAWICON(SEL,10,19);
  20. STICKLINE(WL>10,WL,10,0.001,0),COLOR00FF00;
  21. STICKLINE(WLDIF底),1,0);
  22. DDD:=EXIST(偏离,20) AND SLOPE(DEA,2)>=0;
  23. HRY:=FILTER(DDD,10);
  24. STICKLINE(HRY,-5,-10,3,0),COLOR00FFFF;
  25. DRAWTEXT(HRY,-5,'M背'),COLOR88FFFF;
  26. {YYY:COUNT(偏离,5);}
  27. DIF顶:=HHV(DIF,120);
  28. 最高价:=H=HHV(H,120);
  29. 距今高:=BARSLAST(最高价);
  30. 偏离高:=IF((距今高=0 AND DIFC AND REF("KDJ.K"(9,3,3),A2+1)C AND REF("RSI.RSI1"(6,12,24),A3+1)"KDJ.K"(9,3,3) AND CROSS("KDJ.D"(9,3,3),"KDJ.K"(9,3,3));
  31. C3:=BARSLAST(REF(CROSS("RSI.RSI2"(6,12,24),"RSI.RSI1"(6,12,24)),1));
  32. D3:=REF(C,C3+1)"RSI.RSI1"(6,12,24) AND CROSS("RSI.RSI2"(6,12,24),"RSI.RSI1"(6,12,24));
  33. KDJ底背:FILTER(IF(B2>0,-1,0),13),COLORFF00FF,NODRAW;
  34. STICKLINE(KDJ底背,-10,-8,3,0),COLORFF00FF;
  35. DRAWTEXT(KDJ底背,-7.5,'K背'),COLORFF00FF;
  36. RSI底背:FILTER(IF(B3>0,-1,0),13),COLORFF8000,NODRAW;
  37. STICKLINE(RSI底背,-10,-7,3,0),COLORFFFFFF;
  38. DRAWTEXT(RSI底背,-6.5,'R背'),COLORFFFFFF;
  39. KDJ顶背:FILTER(IF(D2>0,1,0),13),COLORFFF000,NODRAW;
  40. STICKLINE(KDJ顶背,10,5,2,0),COLORFFFF00;
  41. DRAWTEXT(KDJ顶背,4.5,'K背'),COLORFFFF00;
  42. RSI顶背:FILTER(IF(D3>0,1,0),13),NODRAW;
  43. STICKLINE(RSI顶背,10,8,5,0),COLOR00FF00;
  44. DRAWTEXT(RSI顶背,7.5,'R背'),COLOR00FF80;
  45. T:=IF((BARSCOUNT(C) > 7),(100)*((MA(C,7))/(LLV(MA(C,7),7)) - 1),1);
  46. N:=IF((T > 0.35),6,65);
  47. W:=((-((100)*(HHV(H,N) - C))/(HHV(HIGH,N) - LLV(L,N))));
  48. RV:=(CLOSE-LLV(LOW,27))/(HHV(HIGH,27)-LLV(LOW,27))*100;
  49. RG:=(CLOSE-LLV(LOW,5))/(HHV(HIGH,5)-LLV(LOW,5))*100;
  50. J0:=(HIGH+LOW)/2;
  51. QJ:=EMA(J0,3);
  52. J1:=IF(CLOSE>QJ,VOL,0);
  53. J2:=IF(CLOSEQJ,修改1,0);
  54. 修改3:=IF(CLOSE0,-4,'短'),COLORFF88FF;
  55. STICKLINE(REF("KDJ.J",1)0,-10,-4.5,3,0),COLORFF88FF;
  56. AA1:=HHV(H,55);
  57. BB1:=REF(H,13);
  58. TJ1:=AA1=BB1;
  59. XX:=LLV(L,55);
  60. YY:=REF(L,13);
  61. YY1:=REF(L,21);
  62. TJ2:=XX=YY;
  63. TJ3:=XX=YY1;
  64. 选股:TJ1 OR TJ2;
  65. DRAWTEXT(TJ2,-6,'离底13'),COLOR00FF00;
  66. STICKLINE(TJ2 ,-10,-6.5,2,1),COLOR00FF00;
  67. DRAWTEXT(TJ3,-7.5,'离底21'),COLOR00FFFF;
  68. STICKLINE(TJ3 ,-10,-8,4,1),COLOR00FFFF;
  69. DRAWTEXT(TJ1,-5.5,'离高13'),COLOR0000FF;
  70. STICKLINE(TJ1 ,-10,-6,2,0),COLOR0000FF;
  71. LV:=MA(C,24);
  72. HR0:=HHV(HIGH,N);
  73. HRY0:=LLV(LOW,N);
  74. HRY110:=HR0*HRY0;
  75. HRY330:=SQRT(HRY110);
  76. NS1:=C>HRY330 AND HRY330 >=REF(HRY330,1) AND C>LV;
  77. STICKLINE(C>0,-10,-11.5,3,0),COLORFF6000;
  78. STICKLINE(WLT2 OR WL>WLT,-10,-11.5,3,0),COLOR00FFFF;
  79. STICKLINE(NS1,-10,-11.5,3,0),COLOR0000FF;
  80. DRAWTEXT(FILTER(NS1,21),-11,'持股'),COLORFFFFFF;
  81. DRAWTEXT(FILTER(WLT2 OR WL>WLT,13),-11,'买入'),COLOR0000FF;
复制代码
回复

使用道具 举报

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

本版积分规则



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

GMT+8, 2018-12-19 04:51

Powered by 今日股市

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

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