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

 找回密码
 立即/注册

扫一扫,访问微社区

QQ登录

只需一步,快速开始

搜索
上证指数 2581.00 +1.30 +0.05% 香港恒生 27008.199 +2.750 +0.01% 日经225 20587.24 -35.67 -0.17% 韩国综合 2127.78 +10.01 +0.47%
道琼斯 24404.48 -301.87 -1.22% 纳斯达克 7020.36 -136.87 -1.91% 英国富时 6880.09 -21.30 -0.31% 德国DAX 11095.69 +5.58 +0.05%
人民币 6.7876 -0.0204 -0.30% 原油 53.45 +0.8300% 原油 黄金 1284.5 +0.0857% 黄金全球股市行情 2019年01月23日20时08分
查看: 15382|回复: 0

[通达信] 通达信短买主图指标公式

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

  1. Z1A:=STRCAT(HYBLOCK,' ');
  2. Z2A:=STRCAT(Z1A,FGBLOCK);
  3. Z3A:=STRCAT(Z2A,DYBLOCK);
  4. Z4A:=STRCAT(Z3A,' ');
  5. DRAWTEXT_FIX(ISLASTBAR,0.01,1,0,STRCAT(Z4A,GNBLOCK)),COLORCYAN;
  6. MA5:=MA(C,5);
  7. MA10:=MA(C,10);
  8. MA30:=MA(C,30);
  9. FA:=BARSLAST(CROSS(MA10,MA5)) AND CROSS(MA5,MA10);
  10. FB:=FA AND MA5>MA30 AND MA10>MA30 AND MA10>REF(MA10,1);
  11. DRAWTEXT(FB,L-0.10,'★龙门关'),COLORRED;
  12. V1:=EMA(CLOSE,5);
  13. V2:=EMA(EMA(CLOSE,90)*1.01,10);
  14. DRAWTEXT(CROSS(V1,V2),V1+0.05,'迎上水'),COLOR00FF00;
  15. VAR1D:=LLV(LOW,21);
  16. VAR2D:=HHV(HIGH,21);
  17. AK1:=EMA((((CLOSE - VAR1D) / (VAR2D - VAR1D)) * 100),5);
  18. AKD:=EMA((((CLOSE - VAR1D) / (VAR2D - VAR1D)) * 50),13);
  19. AB:=CROSS(AK1,AKD);
  20. DRAWTEXT((AB = 1),(LOW * 0.99),'~鱼跃'),COLORYELLOW;
  21. AA1D:=AMOUNT/V;
  22. BB1:=L1.2;
  23. DD1:=LREF(CLOSE,1)),88,0);
  24. VAR4AA:=IF(((CLOSE)/(REF(CLOSE,1))>1.05) AND ((HIGH)/(CLOSE)0),91,0);
  25. DRAWTEXT(FILTER((VAR4AA>90),45),(LOW)*(0.93),'★蓄势待发 '),COLOR00FFFF;
  26. DRAWTEXT(FILTER((VAR4AA>90),35),(LOW)*(0.99000001),'★补仓'),COLOR00FFFF;
  27. A1AA:=9;
  28. A2AA:=(REF(CLOSE,A1AA+1)-0.5),84),(HIGH)*(1.05),'风险警示'),COLORFFFFFF;
  29. VAR6D:=REF(C,1);
  30. VAR7D:=SMA(MAX(C-VAR6D,0),6,1)/SMA(ABS(C-VAR6D),6,1)*100;
  31. DRAWTEXT(CROSS(82,VAR7D),H*1.01,'风险警示'),COLORYELLOW;
  32. AA:=MA(C,5);
  33. BB:=MA(C,15);
  34. AF:=CROSS(AA,BB);
  35. STICKLINE(AF,LLV(L,8),LLV(L,8),50,1),COLORRED,LINETHICK3;
  36. AF1:=CROSS(BB,AA);
  37. STICKLINE(AF1,HHV(H,8),HHV(H,8),50,1),COLOR00FF00,LINETHICK3;
  38. A1A:=C>REF(C,4);
  39. A2A:=BARSLASTCOUNT(A1A);
  40. A3A:=REF(A2A,1)=8 AND A2A>REF(A2A,1);
  41. A4A:=REF(BETWEEN(A2A,5,8),1) AND A2A0,9) OR BACKSET(A4A>0,A2A+1)*0 OR BACKSET(A5A>0,A2A))*A2A;
  42. DRAWTEXT(A6A>0,H+H*0.005,VAR2STR(A6A,0)),COLOR00FFFF;
  43. DRAWTEXT(A2A=9,H+H*0.005,'9'),COLOR00FF00;
  44. B1A:=CREF(B2A,1);
  45. B4A:=REF(BETWEEN(B2A,5,8),1) AND B2A0,9) OR BACKSET(B4A>0,B2A+1)*0 OR BACKSET(B5A>0,B2A))*B2A;
  46. DRAWTEXT(B6A>0,L-L*0.005,VAR2STR(B6A,0)),COLORFFFFFF;
  47. DRAWTEXT(B2A=9,L-L*0.005,'9'),COLORFF00FF;
  48. JRH:=HHV(C,2);
  49. JRL:=LLV(C,2);
  50. MA3:=MA(CLOSE,3);
  51. YTSL:=(3*CLOSE+LOW+OPEN+HIGH)/6;
  52. VAR1:=(CLOSE>REF(CLOSE,1) AND CLOSE>REF(CLOSE,2));
  53. VAR2:=(REF(VAR1,1) AND CLOSE=REF(CLOSE,2));
  54. VAR3:=(REF(VAR2,1) AND CLOSE>=REF(CLOSE,1) AND CLOSE=REF(CLOSE,2));
  55. VAR5:=(REF(VAR4,1) AND CLOSE>=REF(CLOSE,1) AND CLOSE=REF(CLOSE,2));
  56. VAR7:=(REF(VAR6,1) AND CLOSE>=REF(CLOSE,1) AND CLOSE=REF(CLOSE,2));
  57. VAR9:=(REF(VAR8,1) AND CLOSE>=REF(CLOSE,1) AND CLOSE=REF(CLOSE,2));
  58. VARB:=(REF(VARA,1) AND CLOSE>=REF(CLOSE,1) AND CLOSE=REF(CLOSE,2));
  59. VARD:=(CLOSE=REF(CLOSE,1) AND CLOSE=REF(CLOSE,2));
  60. VAR10:=(REF(VARF,1) AND CLOSE>=REF(CLOSE,1) AND CLOSE=REF(CLOSE,2));
  61. VAR12:=(REF(VAR11,1) AND CLOSE>=REF(CLOSE,1) AND CLOSE=REF(CLOSE,2));
  62. VAR14:=(REF(VAR13,1) AND CLOSE>=REF(CLOSE,1) AND CLOSE=REF(CLOSE,2));
  63. VAR16:=(REF(VAR15,1) AND CLOSE>=REF(CLOSE,1) AND CLOSE=REF(CLOSE,2));
  64. VAR18:=(REF(VAR17,1) AND CLOSE>=REF(CLOSE,1) AND CLOSE辰星线,辰星线,MA3);
  65. 上市日期年:REF(YEAR,BARSCOUNT(CLOSE)-1),NODRAW,COLOR0000FF;
  66. 月:REF(MONTH,BARSCOUNT(CLOSE)-1),NODRAW,COLORFF00FF;
  67. 日:REF(DAY,BARSCOUNT(CLOSE)-1),NODRAW,COLOR00FFFF;
  68. IF(等待>REF(等待,1),等待,DRAWNULL),LINETHICK2,COLOR00FFFF;
  69. IF(辰星线>REF(辰星线,1),辰星线,DRAWNULL),LINETHICK2,COLOR0000FF;
  70. IF(辰星线REF(牵牛线,1),牵牛线,DRAWNULL),LINETHICK1,COLORFF00FF;
  71. IF(牵牛线=O,L,H,0,0),COLOR0000CC;
  72. STICKLINE(C=O,C,O,3.5,0),COLOR0000E5;
  73. STICKLINE(红色持股,CLOSE,O,2.8,0),COLOR000055;
  74. STICKLINE(红色持股,CLOSE,O,2,0),COLOR000088;
  75. STICKLINE(红色持股,CLOSE,O,1.5,0),COLOR0000AA;
  76. STICKLINE(红色持股,CLOSE,O,1,0),COLOR0000CC;
  77. STICKLINE(红色持股,CLOSE,O,0.5,0),COLOR0000EE;
  78. STICKLINE(青色观望,CLOSE,O,2.8,0),COLOR555500;
  79. STICKLINE(青色观望,CLOSE,O,2,0),COLOR888800;
  80. STICKLINE(青色观望,CLOSE,O,1.5,0),COLORAAAA00;
  81. STICKLINE(青色观望,CLOSE,O,1,0),COLORCCCC00;
  82. STICKLINE(青色观望,CLOSE,O,0.5,0),COLOREEEE00;
  83. CO:=(C-O);
  84. STICKLINE(急速超跌,O,C-CO/2,2.8,0),COLOR555555;
  85. STICKLINE(急速超跌,O,C-CO/2,2,0),COLOR888888;
  86. STICKLINE(急速超跌,O,C-CO/2,1.5,0),COLORAAAAAA;
  87. STICKLINE(急速超跌,O,C-CO/2,1,0),COLORCCCCCC;
  88. STICKLINE(急速超跌,O,C-CO/2,0.5,0),COLOREEEEEE;
  89. STICKLINE(曹薇短买,O,O+CO/3,2.8,0),COLOR335555;
  90. STICKLINE(曹薇短买,O,O+CO/3,2,0),COLOR338888;
  91. STICKLINE(曹薇短买,O,O+CO/3,1.5,0),COLOR33AAAA;
  92. STICKLINE(曹薇短买,O,O+CO/3,1,0),COLOR33CCCC;
  93. STICKLINE(曹薇短买,O,O+CO/3,0,0),COLOR33EEEE;
  94. DRAWTEXT(曹薇短买,REF(CLOSE,1),'←短买'),COLOR33FFCC;
  95. STICKLINE(曹薇离场,O,O+CO/3,2.8,0),COLOR550055;
  96. STICKLINE(曹薇离场,O,O+CO/3,2,0),COLOR880088;
  97. STICKLINE(曹薇离场,O,O+CO/3,1.5,0),COLORAA00AA;
  98. STICKLINE(曹薇离场,O,O+CO/3,1,0),COLORCC00CC;
  99. STICKLINE(曹薇离场,O,O+CO/3,0.5,0),COLOREE00EE;
  100. DRAWTEXT(曹薇离场,REF(CLOSE,1)+0.1,'←离场'),COLORFF99FF;
  101. A3:=(C-LLV(L,9))/(HHV(H,9)-LLV(L,9))*100;
  102. A4:=SMA(A3,3,1);
  103. A5:=SMA(A4,3,1);
  104. A6:=3*A4-2*A5;
  105. A7:=C-REF(C,1);
  106. A8:=100*EMA(EMA(A7,6),6)/EMA(EMA(ABS(A7),6),6);
  107. 买:=LLV(A8,2)=LLV(A8,7) AND COUNT(A8<0,2) AND CROSS(A8,MA(A8,2));
  108. DRAWTEXT(FILTER(买=1,5),LOW-0.11,'↖买进'),COLORYELLOW;
复制代码
回复

使用道具 举报

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

本版积分规则



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

GMT+8, 2019-1-23 20:11

Powered by 今日股市

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

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