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

 找回密码
 立即/注册

扫一扫,访问微社区

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.08 -7.6183% NYMEX原油 黄金 1253.2 +0.1118% 黄金全球股市行情 2018年12月19日05时31分
查看: 4298|回复: 0

[通达信] 通达信超级思路主图指标公式

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

  1. MA8:EMA(CLOSE,8),COLORLIBLUE,LINETHICK1;
  2. MA25:EMA(CLOSE,25),COLORBLUE,LINETHICK1;
  3. MA55:EMA(CLOSE,55),COLORLICYAN,LINETHICK1;
  4. IF(EMA(C,8)>=REF(EMA(C,8),1),EMA(C,8),DRAWNULL),COLORRED;
  5. IF(EMA(C,25)>=REF(EMA(C,25),1),EMA(C,25),DRAWNULL),COLORRED;
  6. IF(EMA(C,55)>=REF(EMA(C,55),1),EMA(C,55),DRAWNULL),COLORRED;
  7. X3:=EMA(CLOSE,55);
  8. STICKLINE(((C >= X3) AND (C >= O)),H,L,0,1),COLOR0000AA;
  9. STICKLINE(((C >= X3) AND (C >= O)),O,C,3,0),COLOR0000AA;
  10. STICKLINE(((C >= X3) AND (C >= O)),O,C,2.3,0),COLOR0000CC;
  11. STICKLINE(((C >= X3) AND (C >= O)),O,C,1.8,0),COLOR0000FF;
  12. STICKLINE(((C >= X3) AND (C >= O)),O,C,1,0),COLORCC66FF;
  13. STICKLINE(((C >= X3) AND (C = X3) AND (C = X3) AND (C = X3) AND (C = X3) AND (C = O)),H,L,0,1),COLORFF6600;
  14. STICKLINE(((C = O)),O,C,3,0),COLORFF6600;
  15. STICKLINE(((C = O)),O,C,2.3,0),COLORFF9900;
  16. STICKLINE(((C = O)),O,C,1.8,0),COLORFFCC00;
  17. STICKLINE(((C = O)),O,C,1,0),COLORFFFF00;
  18. STICKLINE(((C REF(R11,1);
  19. DRAWLINE(W1,H,S11,H,1),COLORBLACK,LINETHICK2;
  20. Z2:=REF(L,8)=LLV(L,2*8+1);
  21. Y2:=FILTER(Z2,8);
  22. X2:=BACKSET(Y2,8+1);
  23. W2:=FILTER(X2,8);{低点}
  24. T11:=BACKSET(ISLASTBAR,BARSLAST(W2)+1); U11:=T11>REF(T11,1);
  25. DRAWLINE(W2,L,U11,L,1),COLORBLACK,LINETHICK2;
  26. M:=INTPART(3*8/5);
  27. Z12:=REF(H,M)=HHV(H,2*M+1);
  28. Y12:=FILTER(Z12,M);
  29. X12:=BACKSET(Y12,M+1);
  30. W12:=FILTER(X12,M);{高点}
  31. R112:=BACKSET(ISLASTBAR,BARSLAST(W12)+1); S112:=R112>REF(R112,1);
  32. DRAWLINE(W12,H,S112,H,1),COLORRED,LINETHICK2;
  33. Z22:=REF(L,M)=LLV(L,2*M+1);
  34. Y22:=FILTER(Z22,M);
  35. X22:=BACKSET(Y22,M+1);
  36. W22:=FILTER(X22,M);{低点}
  37. T112:=BACKSET(ISLASTBAR,BARSLAST(W22)+1); U112:=T112>REF(T112,1);
  38. DRAWLINE(W22,L,U112,L,1),COLORRED,LINETHICK2;
  39. VAR1111:=BACKSET(REF(HIGH,2)=HHV(HIGH,5),3);
  40. VAR2222:=CROSS(VAR1111,0.9);
  41. VAR3333:=BACKSET(REF(LOW,2)=LLV(LOW,5),3);
  42. VAR4444:=CROSS(VAR3333,0.9);
  43. 压力:= REF(HIGH,BARSLAST(VAR2222));
  44. STICKLINE(CLOSE,REF(HIGH,BARSLAST(VAR2222)),REF
  45. (HIGH,BARSLAST(VAR2222)),0.5,1),COLORBLACK,LINETHICK2;
  46. 支撑:= REF(LOW,BARSLAST(VAR4444));
  47. STICKLINE(CLOSE,REF(LOW,BARSLAST(VAR4444)),REF
  48. (LOW,BARSLAST(VAR4444)),0.5,1),COLORBLACK,LINETHICK2;
  49. TY:=C;
  50. A1:=REF(TY,10)=HHV(TY,2*10+1); B1:=FILTER(A1,10);
  51. C1:=BACKSET(B1,10+1); HD:=FILTER(C1,10);
  52. A2:=REF(TY,10)=LLV(TY,2*10+1); B2:=FILTER(A2,10);
  53. C2:=BACKSET(B2,10+1); LD:=FILTER(C2,10);
  54. AZ1:=REF(C,BARSLAST(HD)); B:=REF(C,BARSLAST(LD));
  55. T1:=BARSLAST(HD)[B]BARSLAST(LD) AND NOT(LD);
  56. 前期高点:IF(T1,AZ1,AZ1),POINTDOT,COLOR0000FF,LINETHICK2;
  57. STICKLINE(T1,AZ1,AZ1,9,0),COLOR0000FF,LINETHICK2;
  58. 前期低点:IF(T2,B,B),COLOR80FF00,POINTDOT,LINETHICK2;
  59. STICKLINE(T2,B,B,9,0),COLORFF0000,LINETHICK2;
  60. DIFF:=EMA(CLOSE,9)-EMA(CLOSE,21);
  61. DEA:=EMA(DIFF,6);
  62. STICKLINE(DIFF>DEA,C,O,1.2,0),COLOR0000FF;
  63. STICKLINE(DIFF>DEA,C,O,0.6,0),COLORCC66FF;
  64. STICKLINE(DIFF<=DEA,C,O,1.2,0),COLORFFCC00;
  65. STICKLINE(DIFF<=DEA,C,O,0.6,0),COLORFFFF00;
复制代码
回复

使用道具 举报

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

本版积分规则



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

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

Powered by 今日股市

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

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