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

 找回密码
 立即/注册

扫一扫,访问微社区

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%
道琼斯 23675.64 +82.66 +0.35% 纳斯达克 6783.91 +30.18 +0.45% 英国富时 6713.77 -59.47 -0.88% 德国DAX 10755.90 -16.30 -0.15%
人民币 6.8968 -0.0003 -0.00% 原油 46.04 -7.6985% NYMEX原油 黄金 1253.3 +0.1198% 黄金全球股市行情 2018年12月19日05时43分
查看: 4918|回复: 0

[通达信] 通达信散户之盾指标公式

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

  1. {价量线主线快线}
  2. 价量:3*SMA((CLOSE-LLV(LOW,27))/(HHV(HIGH,27)-LLV(LOW,27))*100,5,1) -2*SMA(SMA((CLOSE-LLV(LOW,27))/(HHV(HIGH,27)-LLV(LOW,27))*100,5,1),3,1) ,COLOR00CCFF,NODRAW;
  3. 主线:(((价量-LLV(价量,27))/(HHV(价量,27)-LLV(价量,27)))*(4))*(25) ,COLORCYAN,NODRAW;
  4. 快线:(((价量-LLV(价量,9))/(HHV(价量,9)-LLV(价量,9)))*(4))*(25) ,COLOR55AAFF,NODRAW;
  5. RSV:=(CLOSE-LLV(LOW,13))/(HHV(HIGH,13)-LLV(LOW,13))*100;
  6. K1:=SMA(RSV,3,1);
  7. D1:=SMA(K1,3,1);
  8. KK:=INTPART(K1);
  9. DD:=INTPART(D1);
  10. TFXXS:=KK+DD;{变异 KD 风险系数}
  11. TGLXS:=(TFXXS-REF(TFXXS,1));{变异 KD 乖离系数:资金流向}
  12. {红}
  13. STICKLINE(TGLXS>0 AND TGLXS>REF(TGLXS,1),100,TGLXS+100,2.5,0),COLOR0000AA;   
  14. STICKLINE(TGLXS>0 AND TGLXS>REF(TGLXS,1),100,TGLXS+100,1.5,0),COLOR0022CC;
  15. STICKLINE(TGLXS>0 AND TGLXS>REF(TGLXS,1),100,TGLXS+100,0.5,0),COLOR0055FF;
  16. {粉}
  17. STICKLINE(TGLXSREF(TGLXS,1),100,TGLXS+100,2.5,0),COLORAA00BB;
  18. STICKLINE(TGLXSREF(TGLXS,1),100,TGLXS+100,1.5,0),COLORCC22BB;
  19. STICKLINE(TGLXSREF(TGLXS,1),100,TGLXS+100,0.5,0),COLORFF55BB;
  20. {黄}
  21. STICKLINE(TGLXS>0 AND TGLXS0 AND TGLXS0 AND TGLXS=0,100,TGLXS+100,8,0),COLORBROWN;
  22. STICKLINE(TGLXS=0 AND REF(TGLXS,1)0,ZSHTL,ZZLKP,2,0),COLOR808080;
  23. {散户筹码警戒}
  24. STICKLINE(ZSHJJ>REF(ZSHJJ,1),ZSHTL,ZSHJJ,2,0),COLORC0C0C0;
  25. {主力控盘筹码}
  26. {粉}
  27. STICKLINE(ZZLKP>REF(ZZLKP,1) AND ZZLKP>20,ZZLKP,20,2.5,0 ),COLORAA00BB;
  28. STICKLINE(ZZLKP>REF(ZZLKP,1) AND ZZLKP>20,ZZLKP,20,1.5,0 ),COLORCC22BB;   
  29. STICKLINE(ZZLKP>REF(ZZLKP,1) AND ZZLKP>20,ZZLKP,20,0.5,0 ),COLOREE44BB;   
  30. {蓝}
  31. STICKLINE(ZZLKP20,ZZLKP,20,2.5,0 ),COLORFF7700;   
  32. STICKLINE(ZZLKP20,ZZLKP,20,1.5,0 ),COLORFFAA22;
  33. STICKLINE(ZZLKP20,ZZLKP,20,0.5 ,0 ),COLORFFFF55;
  34. {亮红}
  35. STICKLINE(ZZLKP>REF(ZZLKP,1) AND ZZLKPREF(ZZLKP,1) AND ZZLKPREF(ZZLKP,1) AND ZZLKPREF(ZZLJJ,1),ZZLKP,ZZLJJ,2.5,0 ),COLOR00AAFF;   
  36. STICKLINE(ZZLJJ>REF(ZZLJJ,1),ZZLKP,ZZLJJ,1.5,0 ),COLOR00CCFF;   
  37. STICKLINE(ZZLJJ>REF(ZZLJJ,1),ZZLKP,ZZLJJ,0.5,0 ),COLOR00FFFF;
  38. {红}
  39. STICKLINE(ZZLKP>ZZLJJ AND ZZLJJ>50,ZZLKP,ZZLJJ,2.5,0 ),COLOR0000AA;   
  40. STICKLINE(ZZLKP>ZZLJJ AND ZZLJJ>50,ZZLKP,ZZLJJ,1.5,0 ),COLOR0022CC;
  41. STICKLINE(ZZLKP>ZZLJJ AND ZZLJJ>50,ZZLKP,ZZLJJ,0.5 ,0 ),COLOR0055FF;
  42. {红}
  43. STICKLINE(ZZLKP>ZZLJJ AND ZZLJJ50   
  44. AND ZZLJJ>REF(ZZLJJ,1),ZZLKP,50,2.5,0 ),COLOR0000AA;   
  45. STICKLINE(ZZLKP>ZZLJJ AND ZZLJJ50   
  46. AND ZZLJJ>REF(ZZLJJ,1),ZZLKP,50,1.5,0 ),COLOR0022CC;
  47. STICKLINE(ZZLKP>ZZLJJ AND ZZLJJ50   
  48. AND ZZLJJ>REF(ZZLJJ,1),ZZLKP,50,0.5 ,0 ),COLOR0055FF;
  49. {铸顶风险区}
  50. {绿}
  51. STICKLINE(ZZLKP>80,ZZLKP,ZZLKP-(ZZLKP-80)/2,2.5,0),COLOR00AA00;
  52. STICKLINE(ZZLKP>80,ZZLKP,ZZLKP-(ZZLKP-80)/2,1.5,0),COLOR00CC00;
  53. STICKLINE(ZZLKP>80,ZZLKP,ZZLKP-(ZZLKP-80)/2,0.5,0),COLOR00FF00;
  54. {散兵坑}
  55. STICKLINE(ZZLKP<=10,ZZLKP,0,5,0),COLORDD00DD;
  56. 100,COLORGREEN;
  57. 80,COLORGREEN;
  58. {0,COLORGREEN;}
  59. {主线快线}
  60. 价量,COLOR0CC0FF,LINETHICK2;
  61. 主线,COLOR00FFAA,LINETHICK2;
  62. 快线,LINESTICK,COLORFF68DD;
复制代码
回复

使用道具 举报

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

本版积分规则



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

GMT+8, 2018-12-19 05:48

Powered by 今日股市

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

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