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

 找回密码
 立即/注册

扫一扫,访问微社区

QQ登录

只需一步,快速开始

搜索
上证指数 2887.62 +5.65 +0.20% 香港恒生 27227.162 +108.812 +0.40% 日经225 21134.85 +17.96 +0.09% 韩国综合 2090.73 -4.68 -0.22%
道琼斯 26112.53 +22.92 +0.09% 纳斯达克 7845.02 +48.36 +0.62% 英国富时 7363.30 +17.52 +0.24% 德国DAX 12099.20 +2.80 +0.02%
人民币 6.9258 +0.0003 +0.00% 原油 51.92 -1.12% NYMEX原油 黄金 1343.1 -0.10% 黄金全球股市行情 2019年06月18日05时22分
查看: 7954|回复: 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备15024813号-1)点击这里给我发消息

GMT+8, 2019-6-18 05:27

Powered by 今日股市

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

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