当前位置:→ 公式网 > 通达信公式 > 正文  公式解密、改选股等业务 联系点击查看详情...

以下是潜龙出击(无源码的请下载附件导入)

 

C/C++ www.gszb.com 股票公式指标网提供 Code复制内容到剪贴板
  1. {N=26}   
  2. STICKLINE(50,50,-50,10,0),COLORFFB900,LINETHICK7;    
  3. RSVP:=(C-LLV(L,30))/(HHV(H,30)-LLV(L,30))*100-50;    
  4. KV:=SMA(RSVP,3,1);    
  5. DV:=SMA(KV,3,1);    
  6. JV:=3*KV-2*DV;    
  7. ZDZK1:=EMA(JV,6);    
  8. ZDZK2:=REF(ZDZK1,1);    
  9. XW1:=IF(O<=REF(O,1),0,MAX((H-O),(O-REF(O,1))));    
  10. XW2:=IF(O>=REF(O,1),0,MAX((O-L),(O-REF(O,1))));    
  11. XW3:=SUM(XW1,21);    
  12. XW4:=SUM(XW2,21);    
  13. XW5:=IF(XW3>XW4,(XW3-XW4)/XW3,IF(XW3=XW4,0,(XW3-XW4)/XW4));    
  14. {14天强弱}    
  15. RS:=SMA(MAX(C-REF(C,1),0),14,1)/SMA(ABS(C-REF(C,1)),14,1)*100;    
  16. ZD:= EMA(EMA(EMA(RS,7),3),3);    
  17. ZD1:=(ZD-REF(ZD,1))/REF(ZD,1)*15;    
  18. STICKLINE(ZD1>=0,0,ZD1*50,2,0),COLOR0000BE;    
  19. STICKLINE(ZD1<=0,0,ZD1*50,2,0),COLORGREEN;    
  20. Y1:=AMOUNT/V/100;    
  21. Y2:=(3*H+L+O+2*C)/7;    
  22. Y3:=100*(WINNER(1.1*C)-WINNER(0.9*C));    
  23. Y4:=SUM(AMOUNT,13)/Y1/100;    
  24. Y5:= DMA(Y2,V/Y4);    
  25. Y6:=(C-Y5)/Y5*100;    
  26. Y7:=(Y3<10) AND (Y6<=-10);    
  27. Y8:=SMA(MAX(C-REF(C,1.5),0),6,1)/SMA(ABS(C-REF(C,1.5)),1,1)*100;    
  28. 重亏:STICKLINE(Y6<=-10 AND ZD1<0,ZD1*55,ZD1*45,2,0),COLORFF89B2;    
  29. 全亏:STICKLINE(Y6<=-16 AND ZD1<0,ZD1*60,ZD1*55,2,1),COLORBLUE;    
  30. 超跌:STICKLINE(Y7 AND ZD1<0,ZD1*65,ZD1*60,2,0),COLORFFFFFF;    
  31.   
  32. {备战区1}    
  33. ZDD1:=(HHV(H,21)-C)/(HHV(H,21)-LLV(L,21))*100-10;    
  34. ZDD2:=(C-LLV(L,21))/(HHV(H,21)-LLV(L,21))*100;    
  35. ZDD3:=SMA(ZDD2,13,8);    
  36. ZDD4:=CEILING(SMA(ZDD3,13,8));    
  37. ZDD5:=SMA(ZDD1,21,8);    
  38. XH1:=SMA(MAX(C-REF(C,2),0),7,1)/SMA(ABS(C-REF(C,2)),7,1)*100;    
  39. XH2:=ZDD4-ZDD5<-65 AND XH1<12;    
  40. 备战区:=XH2;   
  41. {备战区2}    
  42. XX1:=MA(LOW,2)*0.96;    
  43. XX2:=MA(LOW,26)*0.85;    
  44. XX3:= REF(XX1,1)<XX2 AND REF(XX1,1)<XX1 AND REF(XX1,1)<REF(XX1,2);{30}    
  45. 备战区2:=XX3;   
  46. C0:=REF(C,2)*0.865;    
  47. C1:=REF(C,13)*0.772;    
  48. DSY:=100*VOL/CAPITAL;    
  49. 备战区3:=(C-MIN(C0,C1))/C<0.1 AND SUM(DSY,5)/5<1.8;   
  50. {STICKLINE((C-MIN(C0,C1))/C<0.1 AND SUM(DSY,5)/5<1.8,0,ZD1*25,1,0),COLOR006EFF;    
  51. DRAWICON((C-MIN(C0,C1))/C<0.1 AND SUM(DSY,5)/5<1.8,0,1);}    
  52. {备战区4}    
  53. WW1:= SUM( MA(C,10),9)/10.110;    
  54. WW2:=CROSS(C,WW1);    
  55. 备战区4:=WW2;   
  56. STICKLINE((备战区1 OR 备战区2 OR 备战区3 OR 备战区4),0,ZD1*25,1,0),COLOR006EFF;   
  57. DRAWICON(备战区1 OR 备战区2 OR 备战区3 OR 备战区4,0,1);   
  58. {买1}    
  59. VW1:=DMA(EMA(C,12),SUM(V,5)/3/CAPITAL);    
  60. VW2:=REF(H,10)/C>1.35;    
  61. VW3:=(COST(20)-C)/C>0.15;    
  62. VW4:=H>L*1.051;    
  63. VW5:=VW4 AND COUNT(VW4,5)>1;    
  64. VW6:=(((C-VW1)/VW1*100<-30) OR VW2) AND VW3 AND VW5;    
  65. {STICKLINE(VW6,0,ZD1*-40,1,0),COLOR0000FF;}    
  66. DRAWICON(VW6,ZD1*-40,4);    
  67. {买2}    
  68. XL1:=MA(LOW,2)*0.96;    
  69. XL2:=MA(LOW,26)*0.85;    
  70. XL3:=REF(XL1,1)<XL2 AND REF(XL1,1)<XL1 AND REF(XL1,1)<REF(XL1,2);    
  71. STICKLINE(XL3 OR VW6,0,15,1,0),COLORF8B7F0;    
  72. DRAWTEXT(XL3 OR VW6,15,'←买'),COLORF8B7F0;   
  73. {井喷}    
  74. JJP1:=REF(INDEXC,1);    
  75. JJP2:=FILTER((INDEXC-JJP1)/JJP1>0.03 AND ZDZK1>=ZDZK2,7);    
  76. STICKLINE(JJP2,0,-15,4,0),COLORFF00FF;    
  77. DRAWTEXT(JJP2,-15,'←买'),COLORFF00FF;   
  78. X1:=EMA(HHV(H,500),21);    
  79. X2:=EMA(HHV(H,250),21);    
  80. X3:=EMA(HHV(H,90),21);    
  81. X4:=EMA(LLV(L,500),21);    
  82. X5:=EMA(LLV(L,250),21);    
  83. X6:=EMA(LLV(L,90),21);    
  84. X7:=EMA((X1*0.558+X2*0.558+X3*0.558+X4*0.96+X5*0.96+X6*0.96)/6,21);    
  85. X8:=EMA((X1*0.55 +X2*0.55+ X3*0.65+ X4*1.25+X5*1.23+X6*1.2 )/6,21);    
  86. X9:=EMA((X1*0.68+ X2*0.68+ X3*0.68+ X4*1.3 +X5*1.3+ X6*1.3 )/6,21);    
  87. VARA:=EMA((X7*3+X8*2+X9)/6*1.738,21);    
  88. VARB:=REF(LOW,1);    
  89. VARC:=SMA(ABS(LOW-VARB),3,1)/SMA(MAX(LOW-VARB,0),3,1)*100;    
  90. VARD:=EMA(IF(C*1.35<=VARA,VARC*10,VARC/10),3);    
  91. VARE:=LLV(L,30);    
  92. VARF:=HHV(VARD,30);    
  93. VAR10:=IF(MA(C,58),1,0);    
  94. VAR11:=EMA(IF(LOW<=VARE,(VARD+VARF*2)/2,0),3)/618*VAR10;    
  95. MID:=REF(H+L,1)/2;    
  96. CR:=SUM(MAX(0,H-MID),N)/SUM(MAX(0,MID-L),N)*100;    
  97. 出击:=IF(CR<60 AND VAR11>10,35,0),COLORGREEN;    
  98. 攻击:=IF (VAR11>20,30,0),COLORYELLOW;   
  99. {加仓}    
  100. XC1:=(MA(C,80)-MA(C,13)/3);    
  101. XC2:= MA((C-XC1)/XC1,1);    
  102. XC3:=EMA(XC2,12)*0.7;    
  103. XC4:=EMA(XC2,3);    
  104. XC5:=IF(LLV(XC4-XC3,12)>0,0,-10);    
  105. XC6:=EMA(C,12)-EMA(C,26);    
  106. XC7:=EMA(XC6,9);    
  107. XC8:=2*(XC6-XC7);    
  108. 加仓:=IF(XC5<0 AND CROSS(XC8,0),50,0),LINETHICK1,COLORBLUE;    
  109. 出击加仓:IF((出击=35 OR 攻击=30 OR 加仓=50),30,0);   
  110. DRAWTEXT(加仓=50,35,'←加仓'),COLORBLUE;    
  111. 做多:IF(ZDZK1>=ZDZK2,ZDZK1+2,ZDZK2),COLORYELLOW,LINETHICK5;    
  112. 做空:IF(ZDZK2-ZDZK1,ZDZK2,ZDZK1),COLORGREEN,LINETHICK5;   
  113. DRAWBAND(做空,RGB(0,255,250),做多,RGB(255,50,50));VAR2:=MA(AMOUNT/(100*VOL),13);   
  114. VAR3:=MA(AMOUNT/(100*VOL),34);   
  115. VAR4:=DMA(CLOSE,VOL/CAPITAL);   
  116. VAR5:=WINNER(CLOSE)*100;   
  117. VAR6:=100*VOL/CAPITAL;   
  118. 犀牛:(CLOSE-VAR2)/VAR2*100,LINETHICK,COLORYELLOW;   
  119. Y0:=ABS(WINNER(C)-WINNER(OPEN))*70;            
  120. Y7C:=IF(VAR5>=90 AND VAR6<3,15.82,犀牛);       
  121. {控制}   
  122. 高:=MAX(MAX(犀牛,ABS(WINNER(C)-WINNER(O))*70),15.82);   
  123. 低:=MIN(MAX(-犀牛,-ABS(WINNER(C)-WINNER(O))*70),-15.82);   
  124. {STICKLINE(C>REF(C,1),0,Y0,3,1),COLORRED;            
  125. STICKLINE(C<=REF(C,1),0,Y0,3,0),COLORCYAN;}   
  126. STICKLINE(犀牛<=0,0,犀牛,2,0),COLOR005C00;    
  127. STICKLINE(犀牛>0,0,犀牛,2,0),COLORBLUE;   
  128. {STICKLINE(CROSS(C,VAR3),0,15.82,2,0),COLORRED;       
  129. STICKLINE(CROSS(C,VAR4),0,15.82,2,0),COLORRED;   
  130. STICKLINE(CROSS(VAR2,VAR4),0,15.82,2,0),COLORRED;}   
  131. STICKLINE(Y7C>0,0,Y7C,1,0),COLORRED;                 
  132. STICKLINE(Y7C<=0,0,Y7C,1,0),COLORWHITE;DIF:=EMA(CLOSE,12)-EMA(CLOSE,26);   
  133. DEA:=EMA(DIF,9);DDN:=C=HHV(C,180);    
  134. EE:=DEA< REF(DEA,1) AND REF(DEA< REF(DEA,1),1)=1;    
  135. CC:=C> REF(C,1) AND REF(C> REF(C,1),1)=1;    
  136. DRAWICON(CC AND EE,做空,5);  

 


上一篇:五线波段    下一篇:变色的macd

关于我们 - 联系我们 - 广告合作 - 下载声明 - 网站帮助 - 友情链接 - 网站地图 - RSS订阅 - TOP
湘ICP备09016573号-3 增值电信业务经营ICP许可证:湘B2-20210269 湘公网安备43108102000039号
Copyright © 铭网科技,All Rights Reserved.
股票公式,股票指标,股票软件,股票知识