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

 找回密码
 立即/注册

扫一扫,访问微社区

QQ登录

只需一步,快速开始

搜索
上证指数 2654.88 +24.36 +0.93% 香港恒生 25792.871 +159.689 +0.62% 日经225 21818.59 -451.29 -2.03% 韩国综合 2069.88 -10.56 -0.51%
道琼斯 25295.31 -91.87 -0.36% 纳斯达克 7245.48 +44.61 +0.62% 英国富时 7028.50 -24.58 -0.35% 德国DAX 11379.98 +54.54 +0.48%
人民币 6.9560 -0.0075 -0.11% 原油 56.92 -5.0225% NYMEX原油 黄金 1200.9 -0.2160% COMEX黄金全球股市行情 2018年11月13日23时43分
查看: 3471|回复: 0

[通达信] 通达信红绿灯买卖主图指标公式

[复制链接]
发表于 6 天前 | 显示全部楼层 |阅读模式

  1. MAH:=8;
  2. MAL:=20;
  3. M1:=3;
  4. M2:=6;
  5. M3:=12;
  6. M4:=24;
  7. N:=20;
  8. 百分比:=5;
  9. 右数峰序:=2;
  10. MA5:MA(C,5),LINETHICK1,COLORGREEN;
  11. NOTEXT2_: IF(MA5>=REF(MA5,1),MA5,DRAWNULL),COLORWHITE,LINETHICK2;
  12. DRAWTEXT(CURRBARSCOUNT=1,MA5,STRCAT('---',CON2STR(MA5,2))),COLORRED;
  13. MA10:MA(C,10)COLORYELLOW;
  14. MA25:MA(C,25),COLORGRAY;
  15. NOTEXT3_: IF(MA25>=REF(MA25,1),MA25,DRAWNULL),COLORRED,LINETHICK2;
  16. MA60:MA(C,60),COLOR7FFF00;
  17. DRAWTEXT(CURRBARSCOUNT=1,MA60,STRCAT('---',CON2STR(MA60,2))),COLORCYAN;
  18. NOTEXT4_: IF(MA60>=REF(MA60,1),MA60,DRAWNULL),COLORGREEN,LINETHICK3;
  19. DRAWICON(CROSS(MA5,MA10),MA10,23);
  20. DRAWTEXT(CROSS(MA10,MA5),MA10+0,'空仓'),COLORGREEN;
  21. DRAWTEXT(CROSS(MA5,MA10),MA5-0,'建仓'),COLORYELLOW;
  22. DRAWICON(CROSS(MA25,MA60),MA60,23);
  23. MA120:MA(C,120),COLORBLUE;
  24. MA250:MA(C,250),COLORWHITE;
  25. DRAWTEXT(CROSS(ZIG(3,4),REF(ZIG(3,4),1)),LOW*0.99,'★绝佳') ,LINETHICK2,COLORRED;
  26. STICKLINE(CROSS(ZIG(3,4),REF(ZIG(3,4),1)),OPEN,CLOSE,2,0),COLORMAGENTA;
  27. HB:=COST(99.9);
  28. LB:=COST(0.1);
  29. B3:=(HB-LB)/50;
  30. B31:=HB-B3;
  31. A1:=WINNER(HB)*100-WINNER(B31)*100;
  32. A01:=(L+H+C*2)/4;
  33. A11C:=EMA(A01,14)COLORYELLOW,LINETHICK2;
  34. A11X:=(A11C-REF(A11C,1))/REF(A11C,1)*100,NODRAW;
  35. A2X:=(EMA(A01,20)-REF(EMA(A01,20),1))/REF(EMA(A01,20),1)*100;
  36. G1:=BARSLAST(CROSS(A11X,0));
  37. 买入止损:=REF(A01,G1),COLORWHITE,LINETHICK1;
  38. 脉冲:=(A01-A1)/A1*100,NODRAW;
  39. 斜脉冲:=(A01-REF(A01,1))/(A1-REF(A1,1)),NODRAW;
  40. 买入盈利:(A01-买入止损)/买入止损*100,NODRAW;
  41. Y1:=REF(A01,G1)*1.1,COLORGREEN;
  42. B1:IF(A11X>=0,买入止损,DRAWNULL),COLORWHITE,LINETHICK1,CROSSDOT;
  43. B2:=IF(A11X>=0,A1,DRAWNULL),COLORWHITE,LINETHICK1;
  44. DRAWTEXT(CURRBARSCOUNT=1,买入止损,STRCAT('---',CON2STR(买入止损,2))),COLORCYAN;
  45. A0:=(L+H+C*2)/4;
  46. 工作:=EMA(A0,14);
  47. A1X:=(工作-REF(工作,1))/REF(工作,1)*100;
  48. 逼空线:IF(H>=REF(A0,BARSLAST(CROSS(A1X,0)))*1.3,REF(A0,BARSLAST(CROSS(A1X,0)))*1.3,DRAWNULL),COLORGREEN,LINETHICK2,CIRCLEDOT;
  49. DRAWTEXT(CURRBARSCOUNT=1,逼空线,STRCAT('---',CON2STR(逼空线,2))),COLORCYAN;
  50. STICKLINE(C/REF(C,1)>1.095,OPEN,CLOSE,2.0,0),COLOR00EEFF;
  51. 波谷值: CONST(TROUGH(2,百分比,1)),NODRAW;{前M个ZIG转向波谷值}
  52. 波谷距离:= 1+CONST(TROUGHBARS(2,百分比,1)),NODRAW;{前M个ZIG转向波谷到当前距离}
  53. {例如:TROUGH(2,5,2)表示%5最低价ZIG转向的前2个波谷到当前的周期数};
  54. 波峰值:= CONST(PEAK(1,百分比,右数峰序));
  55. {例如:PEAK(1,5,1)表示%5最高价ZIG转向的上一个波峰的数值}
  56. 允许误差:=0.024;
  57. XG:= ABS(波峰值-波谷值)60};
  58. 波峰距离:= 2+CONST(PEAKBARS(1,百分比,右数峰序)),NODRAW;
  59. {PEAKBARS(K,N,M)表示之字转向ZIG(K,N)的前M个波峰到当前的周期数,M必须大于等于1}
  60. 距离:=CURRBARSCOUNT;
  61. DRAWLINE(距离=波峰距离 AND XG,波谷值,距离=1,波谷值,1),COLORMAGENTA;
  62. DRAWTEXT(距离=波谷距离 AND XG,L*0.98,' 精准峰谷线'),COLORYELLOW;
  63. DRAWICON(距离=波峰距离,H*1.01,2);{波峰位置}
  64. DRAWICON(距离=波谷距离,L*0.985,1);{波谷位置}
  65. 精准点:=(ABS(H-波谷值)MA1A AND L=MA2A,L*0.98,1);
  66. DRAWICON(((C>MA2A AND L=MA2A,L*0.98,1);
  67. DRAWTEXT_FIX(ISLASTBAR ,0.065,0.01,1,DYBLOCK),COLORYELLOW;
  68. DRAWTEXT_FIX(ISLASTBAR ,0.065,0.01,0,HYBLOCK),COLORYELLOW;
  69. 概念:DRAWTEXT_FIX(ISLASTBAR ,0.15,0.01,0,GNBLOCK),COLORYELLOW;
  70. MMM:=MA(CLOSE,20);
  71. PEAK1:=CLOSE>REF(CLOSE,1) AND CLOSE>REF(CLOSE,2);
  72. VAR2:=REF(PEAK1,1) AND CLOSE=REF(CLOSE,2);
  73. VAR3:=REF(VAR2,1) AND CLOSE>=REF(CLOSE,1) AND CLOSE=REF(CLOSE,2);
  74. VAR5:=REF(VAR4,1) AND CLOSE>=REF(CLOSE,1) AND CLOSE=REF(CLOSE,2);
  75. VAR7:=REF(VAR6,1) AND CLOSE>=REF(CLOSE,1) AND CLOSE=REF(CLOSE,2);
  76. VAR9:=REF(VAR8,1) AND CLOSE>=REF(CLOSE,1) AND CLOSE=REF(CLOSE,2);
  77. VARB:=REF(VARA,1) AND CLOSE>=REF(CLOSE,1) AND CLOSE=REF(CLOSE,2);
  78. VARD:=CLOSE=REF(CLOSE,1) AND CLOSE=REF(CLOSE,2);
  79. VAR10:=REF(VARF,1) AND CLOSE>=REF(CLOSE,1) AND CLOSE=REF(CLOSE,2);
  80. VAR12:=REF(VAR11,1) AND CLOSE>=REF(CLOSE,1) AND CLOSE=REF(CLOSE,2);
  81. VAR14:=REF(VAR13,1) AND CLOSE>=REF(CLOSE,1) AND CLOSE=REF(CLOSE,2);
  82. VAR16:=REF(VAR15,1) AND CLOSE>=REF(CLOSE,1) AND CLOSE=REF(CLOSE,2);
  83. VAR18:=REF(VAR17,1) AND CLOSE>=REF(CLOSE,1) AND CLOSEREF(C,1)*(1+9.7/100);
  84. 高不破价11:=REF(C,BARSLAST(单阳11));
  85. YY1: STICKLINE(CURRBARSCOUNTREF(C,1)*(1+9.7/100);
  86. 低不破价11:=REF(C,BARSLAST(单阳));
  87. LS0:=BARSLAST(单阳);
  88. LS11:=IF(1,LS0=1,单阳);
  89. LS21:=IF(1,LLV(L,1)>REF(L,1),1);
  90. 低不破价1:=LS11 AND LS21;
  91. DRAWTEXT(低不破价1,低不破价-低不破价*0.0,'1'),COLORGREEN;
  92. LS12:=IF(2,LS0=2,单阳);
  93. LS22:=IF(2,LLV(L,2)>REF(L,2),1);
  94. 低不破价2:=LS12 AND LS22;
  95. DRAWTEXT(低不破价2,低不破价-低不破价*0.0,'2'),COLORGREEN;
  96. LS13:=IF(3,LS0=3,单阳);
  97. LS23:=IF(3,LLV(L,3)>REF(L,3),1);
  98. 低不破价3:=LS13 AND LS23;
  99. DRAWTEXT(低不破价3,低不破价-低不破价*0.0,'3'),COLORGREEN;
  100. LS14:=IF(4,LS0=4,单阳);
  101. LS24:=IF(4,LLV(L,4)>REF(L,4),1);
  102. 低不破价4:=LS14 AND LS24;
  103. DRAWTEXT(低不破价4,低不破价-低不破价*0.0,'4'),COLORGREEN;
  104. LS15:=IF(5,LS0=5,单阳);
  105. LS25:=IF(5,LLV(L,5)>REF(L,5),1);
  106. 低不破价5:=LS15 AND LS25;
  107. DRAWTEXT(低不破价5,低不破价-低不破价*0.0,'5'),COLORGREEN;
  108. LS16:=IF(6,LS0=6,单阳);
  109. LS26:=IF(6,LLV(L,6)>REF(L,6),1);
  110. 低不破价6:=LS16 AND LS26;
  111. DRAWTEXT(低不破价6,低不破价-低不破价*0.0,'6'),COLORGREEN;
  112. LS17:=IF(7,LS0=7,单阳);
  113. LS27:=IF(7,LLV(L,7)>REF(L,7),1);
  114. 低不破价7:=LS17 AND LS27;
  115. DRAWTEXT(低不破价7,低不破价-低不破价*0.0,'7'),COLORGREEN;
  116. LS18:=IF(8,LS0=8,单阳);
  117. LS28:=IF(8,LLV(L,8)>REF(L,8),1);
  118. 低不破价8:=LS18 AND LS28;
  119. DRAWTEXT(低不破价8,低不破价-低不破价*0.0,'8'),COLORGREEN;
  120. LS19:=IF(9,LS0=9,单阳);
  121. LS29:=IF(9,LLV(L,9)>REF(L,9),1);
  122. 低不破价9:=LS19 AND LS29;
  123. DRAWTEXT(低不破价9,低不破价-低不破价*0.0,'9'),COLORGREEN;
  124. LS110:=IF(10,LS0=10,单阳);
  125. LS210:=IF(10,LLV(L,10)>REF(L,10),1);
  126. 低不破价10:=LS110 AND LS210;
  127. DRAWTEXT(低不破价10,低不破价-低不破价*0.0,'10'),COLORGREEN;
  128. A1A:=EMA(C,3);
  129. A5A:=EMA(C,20);
  130. SS:=CROSS(A1A,A5A)  AND C>O AND C>REF(C,1) AND C/REF(C,1)>=1.018 ;
  131. SSS:=CROSS(A1A,A5A)  AND C>O AND C>REF(C,1) AND C/REF(C,1)>=1.018;
  132. DRAWICON(SS ,L-0.05,24);
  133. ZB1:=EMA(C,34);
  134. 长期趋势:=EMA(ZB1,13),COLORRED,LINETHICK3;
  135. MA1:=MA(C,5);
  136. MA2:=MA(C,10);
  137. MA3:=MA(C,21);
  138. 破N:=REF(MA1,1)REF(MA2,1);
  139. 试摸N:=C>MA(C,10) OR H>=MA2;
  140. 再上N:=C>O AND REF(C,1)=MA(C,5)*(50+MAH)/50;
  141. PP2:=L*(100+MAL)/100=MA(C,25) AND MA(C,5)<MA(C,25),L*0.97,1);
复制代码
回复

使用道具 举报

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

本版积分规则



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

GMT+8, 2018-11-13 23:43

Powered by 今日股市

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

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