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

 找回密码
 立即/注册

扫一扫,访问微社区

QQ登录

只需一步,快速开始

搜索
上证指数 2891.70 -14.26 -0.49% 香港恒生 27705.939 +48.697 +0.18% 日经225 21167.00 -116.37 -0.55% 韩国综合 2054.57 -10.29 -0.50%
道琼斯 25776.61 -100.72 -0.39% 纳斯达克 7750.84 -34.88 -0.45% 英国富时 7343.97 +15.05 +0.21% 德国DAX 12169.44 +25.97 +0.21%
人民币 6.9064 +0.0040 +0.06% 原油 61.31 -2.88% NYMEX原油 黄金 1273.7 +0.04% 黄金全球股市行情 2019年05月23日08时35分
查看: 25621|回复: 0

[通达信] 通达信红绿二重天主图指标公式

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

  1. MA1:MA(CLOSE,5);
  2. MA2:MA(CLOSE,10);
  3. MA3:MA(CLOSE,20);
  4. MA4:MA(CLOSE,60);
  5. VAR3:=(CLOSE-MA(CLOSE,6))/MA(CLOSE,6)*100;
  6. VAR4:=(CLOSE-MA(CLOSE,24))/MA(CLOSE,24)*100;
  7. VAR5:=(CLOSE-MA(CLOSE,32))/MA(CLOSE,32)*100;
  8. VAR6:=(VAR3+VAR4+VAR5)/3;
  9. VAR7:=EMA(VAR6,5);
  10. ZB:=EMA(EMA(VAR3,5),5)*3, COLORSTICK;
  11. VAR8:=IF(VAR610;
  12. HS:=VOL/CAPITAL*100, , COLORGREEN;
  13. DRAWTEXT(VAR8=10 AND FILTER(VAR8=10,5),LOW*0.93,'接近底部') COLORMAGENTA;
  14. DRAWTEXT(VARA=20,LOW*0.95,'底部') COLORYELLOW;
  15. VARE:=MA(100*(CLOSE-LLV(CLOSE,34))/(HHV(HIGH,34)-LLV(LOW,34)),5)-20;
  16. VARF:=100-3*SMA((CLOSE-LLV(LOW,75))/(HHV(HIGH,75)-LLV(LOW,75))*100,20,1)+2*SMA(SMA((CLOSE-LLV(LOW,75))/(HHV(HIGH,75)-LLV(LOW,75))*100,20,1),15,1);
  17. VAR10:=100-3*SMA((OPEN-LLV(LOW,75))/(HHV(HIGH,75)-LLV(LOW,75))*100,20,1)+2*SMA(SMA((OPEN-LLV(LOW,75))/(HHV(HIGH,75)-LLV(LOW,75))*100,20,1),15,1);
  18. VAR11:=VARFREF(VOL,1) AND CLOSE>REF(CLOSE,1);
  19. DRAWTEXT(VAR11 AND COUNT(VAR11,30)=1,LOW*0.95,'↖有庄家在吸货'),LINETHICK1,COLORFF00FF;
  20. VAR12:=(HIGH+LOW+CLOSE)/3;
  21. VAR13:=(VAR12-MA(VAR12,14))/(0.015*AVEDEV(VAR12,14));
  22. VAR14:=(VAR12-MA(VAR12,70))/(0.015*AVEDEV(VAR12,70));
  23. VAR15:=IF(VAR13>=150 AND VAR13=150 AND VAR14-200 AND VAR14-200,-10,VAR15);
  24. VAR17:=(CLOSE-MA(CLOSE,13))/MA(CLOSE,13)*100;
  25. VAR18:=100-ABS(VAR17);
  26. VAR19:=IF(VAR180,VARE,0);
  27. VAR1B:=IF(VAR14>=200 AND VAR13>=150,15,IF(VAR1448 AND VAR1B>60 AND VAR19REF(R11,1);
  28. DRAWLINE(D1,H,S11,H,1),COLORBLUE;
  29. A2:=REF(L,8)=LLV(L,2*8+1);
  30. B2:=FILTER(A2,8);
  31. C2:=BACKSET(B2,8+1);
  32. D2:=FILTER(C2,8);{http://jue-ce.com}
  33. T11:=BACKSET(ISLASTBAR,BARSLAST(D2)+1); U11:=T11>REF(T11,1);
  34. DRAWLINE(D2,L,U11,L,1),COLORBLUE;
  35. M:=INTPART(3*8/5);
  36. A12:=REF(H,M)=HHV(H,2*M+1);
  37. B12:=FILTER(A12,M);
  38. C12:=BACKSET(B12,M+1);
  39. D12:=FILTER(C12,M);{http://jue-ce.com}
  40. R112:=BACKSET(ISLASTBAR,BARSLAST(D12)+1); S112:=R112>REF(R112,1);
  41. DRAWLINE(D12,H,S112,H,1),COLORRED;
  42. A22:=REF(L,M)=LLV(L,2*M+1);
  43. B22:=FILTER(A22,M);
  44. C22:=BACKSET(B22,M+1);
  45. D22:=FILTER(C22,M);{http://jue-ce.com}
  46. T112:=BACKSET(ISLASTBAR,BARSLAST(D22)+1); U112:=T112>REF(T112,1);
  47. DRAWLINE(D22,L,U112,L,1),COLORRED;
  48. LC:=REF(CLOSE,1);
  49. RSI:=SMA(MAX(CLOSE-LC,0),6,1)/SMA(ABS(CLOSE-LC),6,1)*100;
  50. DRAWTEXT(CROSS(84,RSI) , HIGH,'←逃'),COLORGREEN;
  51. VAR3AA:=IF((CLOSE>REF(CLOSE,1)),88,0);
  52. VAR4AA:=IF(((CLOSE)/(REF(CLOSE,1))>1.05) AND ((HIGH)/(CLOSE)0),91,0);
  53. VAR51:=3;
  54. VAR52:=(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));
  55. DRAWTEXT(CROSS(VAR52,VAR51), LOW,'←启动')COLORMAGENTA;
  56. 涨停:=IF(REF(C,1)*1.095-C=(10-0.01*100/C3),1,0);
  57. STICKLINE(跌停,OPEN,CLOSE,4,0),COLORBLUE;
  58. STICKLINE(跌停,OPEN,CLOSE,3,0),COLORBLUE;
  59. DRAWTEXT(跌停,H+0.3,'跌停'),COLORBLUE;
复制代码
回复

使用道具 举报

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

本版积分规则



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

GMT+8, 2019-5-23 08:37

Powered by 今日股市

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

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