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

 找回密码
 立即/注册

扫一扫,访问微社区

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% 英国富时 6885.19 -16.20 -0.23% 德国DAX 11093.25 +3.14 +0.03%
人民币 6.7877 -0.0203 -0.30% 原油 53.50 +0.9244% 原油 黄金 1284.2 +0.0623% 黄金全球股市行情 2019年01月23日20时14分
查看: 11390|回复: 0

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

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

  1. DPZX:=EMA(C,1),NODRAW;
  2. GGZX:=AMOUNT/V/100;
  3. 重心:=IF(CREF(上,1) AND REF(上,1)0,MA2Q,MA2Q);
  4. MA5Q:=MA(CLOSE,5),COLOR888899;
  5. MA13:=MA(CLOSE,13),COLORFF00F0,LINETHICK2;
  6. VAR01:=CLOSE=HHV(C,4) AND (REF(C,1)>=REF(C,2) OR REF(C,1)>=REF(C,3))
  7. OR REF(C,1)=HHV(C,4) AND CLOSE>=REF(C,2) OR REF(C,2)=HHV(C,4) AND
  8. REF(C,3)=LLV(C,4) AND C>=REF(C,1) OR REF(C,3)=HHV(C,4) AND
  9. C>=REF(C,1) AND C>=REF(C,2);
  10. VAR02:=CLOSE=HHV(C,4) AND REF(C,1)=LLV(C,4);
  11. VAR03:=CLOSE=LLV(C,4) AND (REF(C,1)=REF(C,2) OR REF(C,2)=LLV(C,4) AND
  12. REF(C,1)=REF(C,1);
  13. VAR05:=REF(C,1)=HHV(C,4) AND CREF(C,3) OR REF(C,3)=HHV(C,4) AND REF(C,1)>REF(C,2)) AND
  14. REF(C,2)>=REF(C,4) AND CREF(V5,1) AND REF(V5,1)HHV(V5,13) AND CLOSE>REF(C,1) AND CLOSE>OPEN;
  15. VAR08:=VAR07 AND COUNT(VAR06,2);
  16. VAR09:=100*EMA(EMA(C-REF(C,1),6),6)/EMA(EMA(ABS(C-REF(C,1)),6),6);
  17. VAR10:=EMA(MA(C,13),13);
  18. VAR11:=FILTER((LLV(VAR09,2)=LLV(VAR09,7) AND COUNT(VAR0950,2) AND
  19. CROSS(MA(VAR09,2),VAR09))=1,1);
  20. VAR13:=SMA(EMA((C-REF(C,1))/REF(C,1),5)*100,3,1)*10;
  21. VAR14:=FILTER(((CROSS(VAR13,0) OR CROSS(C,VAR10)) AND VAR11)=1,3);
  22. VAR15:=MA(C,18)>=REF(MA(C,18),3) AND CROSS(C,MA(C,18));
  23. VAR16:=VAR08 AND NOT(REF(VAR08,1));
  24. RSVQ:=(CLOSE-LLV(LOW,9))/(HHV(HIGH,9)-LLV(LOW,9))*100;
  25. K:=SMA(RSVQ,3,1);
  26. D:=SMA(K,3,1);
  27. J:=3*K-2*D;
  28. 金叉:=CROSS(J,D);
  29. 死叉:=CROSS(D,J);
  30. 买1:=(VAR14 OR VAR15) AND VAR11;
  31. 买2:=(VAR14 OR VAR15) AND VAR04;
  32. 买3:=(VAR14 OR VAR15) AND VAR02;
  33. 买4:=(VAR02 AND VAR11) OR (VAR04 AND VAR11);
  34. 买5:=(金叉 AND VAR04) OR (金叉 AND VAR02) OR (金叉 AND VAR11);
  35. TTJ0:=VAR16;
  36. TTJ1:=买1 OR 买2 OR 买3 OR 买4 OR 买5 AND MM;
  37. XG0:=TTJ AND TTJ0;
  38. XG1:=TTJ AND TTJ1;
  39. XG11:=XG0 OR XG1;
  40. XGQ:=XG11;
  41. 拐牛:XGQ,COLORRED,NODRAW;
  42. DRAWTEXT(XGQ,L*0.99,'●拐牛'),COLORRED;
  43. MA1:=MA(C,5);
  44. MA2:=MA(C,10);
  45. MA3:=MA(C,21);
  46. 破N:=REF(MA1,1)REF(MA2,1);
  47. 试摸N:=C>MA(C,10) OR H>=MA2;
  48. 再上N:=C>O AND REF(C,1) REF(CLOSE,1)) AND (CLOSE > REF(CLOSE,2)));
  49. VAR2MZ:=((REF(VAR1MZ,1) AND (CLOSE = REF(CLOSE,2)));
  50. VAR3MZ:=((REF(VAR2MZ,1) AND (CLOSE >= REF(CLOSE,1))) AND (CLOSE = REF(CLOSE,2)));
  51. VAR5MZ:=((REF(VAR4MZ,1) AND (CLOSE >= REF(CLOSE,1))) AND (CLOSE = REF(CLOSE,2)));
  52. VAR7MZ:=((REF(VAR6MZ,1) AND (CLOSE >= REF(CLOSE,1))) AND (CLOSE = REF(CLOSE,2)));
  53. VAR9MZ:=((REF(VAR8MZ,1) AND (CLOSE >= REF(CLOSE,1))) AND (CLOSE = REF(CLOSE,2)));
  54. VARBMZ:=((REF(VARAMZ,1) AND (CLOSE >= REF(CLOSE,1))) AND (CLOSE = REF(CLOSE,2)));
  55. {http://jue-ce.com}
  56. {http://jue-ce.com};
  57. VARDMZ:=((CLOSE = REF(CLOSE,1))) AND (CLOSE = REF(CLOSE,2)));
  58. VAR10MZ:=((REF(VARFMZ,1) AND (CLOSE >= REF(CLOSE,1))) AND (CLOSE = REF(CLOSE,2)));
  59. VAR12MZ:=((REF(VAR11MZ,1) AND (CLOSE >= REF(CLOSE,1))) AND (CLOSE = REF(CLOSE,2)));
  60. VAR14MZ:=((REF(VAR13MZ,1) AND (CLOSE >= REF(CLOSE,1))) AND (CLOSE = REF(CLOSE,2)));
  61. VAR16MZ:=((REF(VAR15MZ,1) AND (CLOSE >= REF(CLOSE,1))) AND (CLOSE = REF(CLOSE,2)));
  62. VAR18MZ:=((REF(VAR17MZ,1) AND (CLOSE >= REF(CLOSE,1))) AND (CLOSE  0 AND X1D - REF(X1D,1)>0 AND
  63. D大  0,COLORWHITE;
  64. DRAWTEXT(牛浮面,L,'●牛浮面'),COLORWHITE;
  65. {http://jue-ce.com};
  66. 决策:=IF(ISLASTBAR,压力位,DRAWNULL),COLORMAGENTA;
  67. {http://jue-ce.com};
  68. 底部:=LLV(HIGH,30),COLOR00FF00;
  69. 超跌:=IF(ISLASTBAR,底部,DRAWNULL),COLORRED;
  70. {http://jue-ce.com};
  71. T1:=IF(FINDSTR(EXTERNSTR(0,13),'万元'),STRCAT('敢死队席位:',EXTERNSTR(0,13)),'');
  72. T2:=IF(FINDSTR(EXTERNSTR(0,12),'。'),STRCAT('智能诊断:',EXTERNSTR(0,12)),'');
  73. T3:=IF(FINDSTR(EXTERNSTR(0,8),'公告'),STRCAT('年报业绩:',EXTERNSTR(0,8)),'');
  74. T4:=IF(FINDSTR(EXTERNSTR(0,10),','),STRCAT('主题投资:',EXTERNSTR(0,10)),'');
  75. T5:=IF(FINDSTR(EXTERNSTR(0,15),'-'),STRCAT('解禁日期:',EXTERNSTR(0,15)),'');
  76. T6:=IF(FINDSTR(EXTERNSTR(0,1),','),STRCAT('千股千评:',EXTERNSTR(0,1)),'');
  77. T7:=IF(FINDSTR(EXTERNSTR(0,14),'-'),STRCAT('业绩预报:',EXTERNSTR(0,14)),'');
  78. T8:=IF(FINDSTR(EXTERNSTR(0,11),'-'),STRCAT('机构评级:',EXTERNSTR(0,11)),'');
  79. T9:=IF(FINDSTR(EXTERNSTR(0,9),'-'),STRCAT('中报业绩:',EXTERNSTR(0,9)),'');
  80. N:=IF(TOTALBARSCOUNT>=120,120,TOTALBARSCOUNT);
  81. {http://jue-ce.com}
  82. HH0:=HHV(H,N);
  83. LL0:=LLV(L,N);
  84. MM0:=CONST((HH0+LL0)*0.5);
  85. S01:=CONST(IF(REF(C,N-15)>MM0,1.00,-0.08));
  86. S02:=CONST(IF(REF(C,N-15)>MM0,-1,1));
  87. S1:=IF(FINDSTR(EXTERNSTR(0,13),'万元'),S01+(0.08*S02),S01),NODRAW;
  88. S2:=IF(FINDSTR(EXTERNSTR(0,12),'。'),S1+(0.08*S02),S1),NODRAW;
  89. S3:=IF(FINDSTR(EXTERNSTR(0,8),'公告'),S2+(0.08*S02),S2),NODRAW;
  90. S4:=IF(FINDSTR(EXTERNSTR(0,10),','),S3+(0.08*S02),S3);
  91. S5:=IF(FINDSTR(EXTERNSTR(0,15),'-'),S4+(0.08*S02),S4);
  92. S6:=IF(FINDSTR(EXTERNSTR(0,1),','),S5+(0.08*S02),S5);
  93. S7:=IF(FINDSTR(EXTERNSTR(0,14),'-'),S6+(0.08*S02),S6);
  94. S8:=IF(FINDSTR(EXTERNSTR(0,11),'-'),S7+(0.08*S02),S7);
  95. S9:=IF(FINDSTR(EXTERNSTR(0,9),'-'),S8+(0.08*S02),S8);
  96. KK:=IF(S1=0,-0.05,0));
  97. DRAWTEXT_FIX(1,0,S1+KK,0,T1)COLOR00FFFF;
  98. DRAWTEXT_FIX(1,0,S2+KK,0,T2)COLORFFFFFF;
  99. DRAWTEXT_FIX(1,0,S3+KK,0,T3)COLORFF00FF;
  100. DRAWTEXT_FIX(1,0,S4+KK,0,T4)COLOR0088FF;
  101. DRAWTEXT_FIX(1,0,S5+KK,0,T5)COLOR00FF00;
  102. DRAWTEXT_FIX(1,0,S6+KK,0,T6)COLOR0000FF;
  103. DRAWTEXT_FIX(1,0,S7+KK,0,T7)COLOR00CCFF;
  104. DRAWTEXT_FIX(1,0,S8+KK,0,T8)COLORFF88FF;
  105. DRAWTEXT_FIX(1,0,S9+KK,0,T9)COLORBBFFFF;
  106. X1:=(C+L+H)/3;
  107. X2:=EMA(X1,6);
  108. X3:=EMA(X2,5);
  109. DRAWICON(CROSS(X2,X3),L*0.99,7);
  110. XG:CROSS(X2,X3),NODRAW;
  111. DRAWICON(CROSS(X3,X2),H*1.01,8);
  112. YY1:=C>MA(C,5) AND OPENMA(C,10) AND OPENMA(C,30) AND OPEN<MA(C,30);
  113. DRAWTEXT(YY1 AND YY5 AND YY3,LOW-0.05,'↖神话'),COLOR00FFFF;
复制代码
回复

使用道具 举报

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

本版积分规则



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

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

Powered by 今日股市

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

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