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

 找回密码
 立即/注册

扫一扫,访问微社区

QQ登录

只需一步,快速开始

搜索
上证指数 2561.61 +15.28 +0.60% 香港恒生 25462.260 +17.201 +0.07% 日经225 22833.94 +284.70 +1.26% 韩国综合 2169.83 +24.71 +1.15%
道琼斯 25766.00 -32.42 -0.13% 纳斯达克 7642.59 -2.90 -0.04% 英国富时 7044.55 -14.85 -0.21% 德国DAX 11722.74 -53.81 -0.46%
人民币 6.9275 +0.0155 +0.22% 原油 69.90 -2.8087% NYMEX原油 黄金 1227.4 -0.2924% COMEX黄金全球股市行情 2018年10月18日01时50分
查看: 3568|回复: 0

[通达信] 通达信牛马MID主图指标公式

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

  1. MID:=(3*CLOSE+LOW+OPEN+HIGH)/6;
  2. 牛线:(20*MID+19*REF(MID,1)+18*REF(MID,2)+17*REF(MID,3)+16*REF(MID,4)+15*REF(MID,5)+14
  3. *REF(MID,6)+13*REF(MID,7)+12*REF(MID,8)+11*REF(MID,9)+10*REF(MID,10)+9*REF(MID,11)+8
  4. *REF(MID,12)+7*REF(MID,13)+6*REF(MID,14)+5*REF(MID,15)+4*REF(MID,16)+3*REF(MID,17)
  5. +2*REF(MID,18)+REF(MID,20))/210,COLORRED;
  6. 马线:MA(牛线,6),COLORGREEN;
  7. VAR0:=SMA(MAX(CLOSE-REF(C,1),0),12,1)/SMA(ABS(CLOSE-REF(C,1)),15,1)*100;
  8. DRAWTEXT(CROSS(82,VAR0),H*1.04,'快卖'),COLORWHITE;
  9. S:=C-REF(C,1);
  10. DX:=100*EMA(EMA(S,6),6)/EMA(EMA(ABS(S),6),6);
  11. 买:=IF(LLV(DX,2)=LLV(DX,7) AND COUNT(DXREF(HIGH,1);
  12. A1:=FILTER(A,12);
  13. B:=LLV(LOW,13)=LOW AND LOWVAR2 AND CLOSE>VAR1;
  14. SZ2:=VAR1>VAR2 AND VAR1>REF(VAR1,1) AND VAR2>REF(VAR2,1)
  15. AND H/VAR1VAR2 AND CLOSE>VAR1;
  16. SZ3:=VAR1>VAR2 AND VAR1>REF(VAR1,1) AND VAR2>=REF(VAR2,1) AND H/VAR1>1.1;
  17. SZ4:=VAR1>VAR2 AND VAR1>REF(VAR1,1) AND VAR2>REF(VAR2,1)
  18. AND CLOSE>VAR2 AND CLOSEVAR2 AND VAR2>REF(VAR2,1) AND VAR1REF(VAR1,1)
  19. AND CLOSEVAR2 AND VAR1REF(VAR2,1) AND VAR1=VAR2 AND CLOSEVAR1;
  20. SAT:=(AMOUNT/C)/(HHV(AMOUNT,20)/HHV(C,20));
  21. 量能饱和度:=IF(SAT>1,1,SAT)*100;
  22. DRAWTEXT_FIX(BARSTATUS=2 AND SZ1,0.8,0.05,0,'调整结束短线介入'),COLORRED;
  23. DRAWTEXT_FIX(BARSTATUS=2 AND SZ2,0.8,0.05,0,'上升通道走势良好'),COLORRED;
  24. DRAWTEXT_FIX(BARSTATUS=2 AND SZ3,0.8,0.05,0,'股价偏离注意调整'),COLORRED;
  25. DRAWTEXT_FIX(BARSTATUS=2 AND SZ4,0.8,0.05,0,'上升通道调整洗盘'),COLORGREEN;
  26. DRAWTEXT_FIX(BARSTATUS=2 AND SZ5,0.8,0.05,0,'转向特征注意离场'),COLORGREEN;
  27. DRAWTEXT_FIX(BARSTATUS=2 AND SZ6,0.8,0.05,0,'通道改变坚决离场'),COLORGREEN;
  28. DRAWTEXT_FIX(BARSTATUS=2 AND XD1,0.8,0.05,0,'下跌通道只宜观望'),COLORGREEN;
  29. DRAWTEXT_FIX(BARSTATUS=2 AND XD2,0.8,0.05,0,'短期底部准备进入'),COLORYELLOW;
  30. STICKLINE(CLOSE>OPEN,OPEN,LOW,0,0 ),COLOR0000FF;
  31. STICKLINE(CLOSE>OPEN,CLOSE,HIGH,0,0 ),COLOR0000FF;
  32. STICKLINE(OPEN>=CLOSE,CLOSE,LOW,0,0 ),COLOR00FF00;
  33. STICKLINE(OPEN>=CLOSE,OPEN,HIGH,0,0 ),COLOR00FF00;
  34. STICKLINE(OPEN>=CLOSE,CLOSE,OPEN,3,0 ),COLORFF5500;
  35. STICKLINE(OPEN>=CLOSE,CLOSE,OPEN,2.8,0 ),COLORFF8800;
  36. STICKLINE(OPEN>=CLOSE,CLOSE,OPEN,2,3 ),COLORFFBB00;
  37. STICKLINE(OPEN>=CLOSE,CLOSE,OPEN,1.5,0 ),COLORFFDD00;
  38. STICKLINE(OPEN>=CLOSE,CLOSE,OPEN,0.5,0 ),COLORFFFF00;
  39. STICKLINE(CLOSE>OPEN,CLOSE,OPEN,3,0),COLOR000055;
  40. STICKLINE(CLOSE>OPEN,CLOSE,OPEN,2.8,0),COLOR000077;
  41. STICKLINE(CLOSE>OPEN,CLOSE,OPEN,2,3),COLOR000099;
  42. STICKLINE(CLOSE>OPEN,CLOSE,OPEN,1.5,0),COLOR0000BB;
  43. STICKLINE(CLOSE>OPEN,CLOSE,OPEN,0.5,0),COLOR0000DD;
  44. VAR9Q:=C= HHV(C,4)AND (REF(C,1)>=REF(C,2) OR REF(C,1)>=REF(C,3)) OR REF(C,1)=HHV(C,4)
  45. AND CLOSE>=REF(C,2) OR REF(C,2)=HHV(C,4) AND REF(C,3)=LLV(C,4) AND C>=REF(C,1)
  46. OR REF(C,3)=HHV(C,4) AND C>=REF(C,1) AND C>=REF(C,2);
  47. STICKLINE(VAR9Q,C,(O+C)/2,3,0),COLOR000055;
  48. STICKLINE(VAR9Q,C,(O+C)/2,2.8,0),COLOR000077;
  49. STICKLINE(VAR9Q,C,(O+C)/2,2,3),COLOR000099;
  50. STICKLINE(VAR9Q,C,(O+C)/2,1.5,0),COLOR0000DD;
  51. STICKLINE(VAR9Q,C,(O+C)/2,0.5,0),COLOR0000FF;
  52. VARAQ:=C=HHV(C,4) AND REF(C,1)=LLV(C,4);
  53. STICKLINE(VARAQ,C,(O+C)/2,3,0),COLORFF11FF;
  54. STICKLINE(VARAQ,C,(O+C)/2,2.8,0),COLORFF33FF;
  55. STICKLINE(VARAQ,C,(O+C)/2,2,5),COLORFF66FF;
  56. STICKLINE(VARAQ,C,(O+C)/2,1.5,0),COLORFF99FF;
  57. STICKLINE(VARAQ,C,(O+C)/2,0.5,0),COLORFFDDFF;
  58. VARBQ:=C=LLV(C,4) AND (REF(C,1)HHV(C,4) AND C=REF(C,2) OR REF(C,2)=LLV(C,4)
  59. AND REF(C,1)=REF(C,1);
  60. STICKLINE(VARCQ,O,(O+C)/2,3,0),COLOR008800;
复制代码
回复

使用道具 举报

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

本版积分规则




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

GMT+8, 2018-10-18 01:52

Powered by 今日股市

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

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