公式指标平台 股票指标公式源码分享 登录 注册
公式指标平台
未来函数检测
首 页 金钻指标 通达信公式 大智慧公式 同花顺公式 文华财经公式 操盘手公式 东财通公式 飞狐公式 其他公式 公式解答 股票软件 股票池
当前位置:→ 公式指标平台 > 飞狐公式 > 正文 → 正文

不一样的超级MACD屠龙

发布时间:2009/10/7 20:09:42  浏览次数:

不一样的超级MACD屠龙

 

C/C++ Code复制内容到剪贴板
  1. 参数:S:26 -20 100   
  2.      K:12 -20 100   
  3.      M:9  -20 100   
  4.      N:101 100 1000   
  5. DRAWGBK(CLOSE,COLORRGB(1,0,0),COLORRGB(1,0,0),1);   
  6. DIFF:=EMA(CLOSE,K)-EMA(CLOSE,S);   
  7. DEA1:=EMA(DIFF,M);   
  8. 0;   
  9. MACD:=3*(DIFF-DEA1);   
  10. FILLRGN(MACD<=0,0,MACD),colorFFFF00;   
  11. FILLRGN(MACD>=0,0,MACD),colorFF;   
  12. DIFF1:EMA(CLOSE,K)-EMA(CLOSE,S),LINETHICK2,colorFFFF;   
  13. DEA:=EMA(DIFF,M);   
  14. 0;   
  15. MACD屠龙刀:0.29*(CROSS(DIFF1,DEA1) AND DIFF1>=0 AND DIFF<=0.08 AND (COUNT(DIFF1>DEA1,10))>3),LINETHICK2;   
  16. DRAWICON(MACD屠龙刀>0,0.3,1),colorFFFF;   
  17. DRAWICON(MACD屠龙刀>0,0.3,4),colorFFFF;   
  18. DRAWTEXT(MACD屠龙刀>0,0.3,'-^MACD'),colorFFFF;   
  19. DRAWTEXT(MACD屠龙刀>0,0.3,' ^    屠龙'),colorFF;   
  20. DEA:EMA(DIFF,M),colorFF00;   
  21. 0=0.14;   
  22. STICKLINE(CROSS(DIFF,DEA) AND DIFF>=-0.32 AND DIFF<=-0.21,DEA,0.23,0,0),LINETHICK2,colorFFFF;   
  23. DRAWICON(CROSS(DIFF,DEA) AND DIFF>-0.32 AND DIFF<-0.21,0.23,1);   
  24. DRAWICON(CROSS(DIFF,DEA) AND DIFF>-0.32 AND DIFF<-0.21,DIFF,10);   
  25. DRAWTEXT(CROSS(DIFF,DEA) AND DIFF>-0.32 AND DIFF<-0.21,0.23,'^DIFF金叉'),PXUP8,colorFF;   
  26. PARTLINE(DIFF>=DEA,DIFF AND DIFF>=0),LINETHICK3,colorFF;   
  27. PARTLINE(DIFF>=DEA AND DIFF<=0,DIFF),LINETHICK3,colorFF00FF;   
  28. PARTLINE(DIFF<=0 AND DIFF<=DEA,DIFF),LINETHICK3,colorFF00;   
  29. PARTLINE(MACD>=0,MACD),LINETHICK0,colorFF;   
  30. PARTLINE(MACD<=0,MACD),LINETHICK0,colorFFFF00;   
  31. STICKLINE(CROSS(MACD,DIFF) AND MACD>=-0.05 AND MACD<=0.02,MACD,0.23,0,0),LINETHICK2,colorFFFF;   
  32. DRAWTEXT(CROSS(MACD,DIFF) AND MACD>=-0.05 AND MACD<=0.02,0.23,'^MACD'),colorFF;   
  33. DRAWTEXT(CROSS(MACD,DIFF) AND MACD>=-0.05 AND MACD<=0.02,0.23,'      金叉'),PXUP8,colorFFFFFF;   
  34. DRAWICON(CROSS(MACD,DIFF) AND MACD>=-0.05 AND MACD<=0.02,0.23,1);   
  35. VCF1:=LLV(LOW,5);   
  36. VCF2:=HHV(HIGH,5);   
  37. VCF3:=EMA((CLOSE-VCF1)/(VCF2-VCF1)*100,4);   
  38. VCF4:=EMA(0.667*REF(VCF3,1)+0.333*VCF3,2);   
  39. VCF5:=(HIGH+LOW)/2;   
  40. VCF6:=DMA(VCF5,VOL/SUM(VOL,MIN(5,BARSCOUNT(CLOSE))));   
  41. VCF7:=DMA(VCF5,VOL/SUM(VOL,MIN(13,BARSCOUNT(CLOSE))));   
  42. VCF8:=DMA(VCF5,VOL/SUM(VOL,MIN(34,BARSCOUNT(CLOSE))));   
  43. VCF9:=DMA(VCF5,VOL/SUM(VOL,MIN(75,BARSCOUNT(CLOSE))));   
  44. VCFA:=EMA(WINNER(0.9*CLOSE),5);   
  45. VCFB:=1-EMA(WINNER(1.2*CLOSE),5);   
  46. VCFC:=EMA(WINNER(CLOSE),5);   
  47. VCFD:=100*(CLOSE-VCF6)/VCF6;   
  48. VCFE:=100*(CLOSE-VCF7)/VCF7;   
  49. VCFF:=100*(MIN(CLOSE,OPEN)-VCF8)/VCF8;   
  50. VCF10:=BARSLAST(VCF8>VCF9 AND REF(VCF8,1)<=REF(VCF9,1));   
  51. VCF11:=((COUNT(WINNER(CLOSE)<0.11 AND EMA(WINNER(CLOSE),5)<0.15,2))>0 OR 1-WINNER(1.2*CLOSE)>=0.8 AND WINNER(CLOSE)<0.05) AND (COUNT(VCFE<-16,2))>0 AND (COUNT(VCFF<-20,2))>0;   
  52. VCF12:=(COUNT(VCFD<-10,2))>0 AND (COUNT(VCFE<-15,2))>0 AND (COUNT(VCFF<-15,2))>0 AND (COUNT(VCFA>0.8,VCF10))=0;   
  53. VCF13:=(COUNT(VCF11 OR VCF12,2))>0 AND VCF3>REF(VCF3,1) AND (1-WINNER(1.15*CLOSE))*100>80;   
  54. 出击1:=IF(VCF13 AND COUNT(VCF13,3)<=1,0.1,0);   
  55. DRAWBKBMP(出击1>=0.1,'sun');   
  56. 黑马出击:IF(VCF13 AND COUNT(VCF13,3)<=1,0.37,0),LINETHICK3,colorFF;   
  57. DRAWICON(黑马出击>0,0.37,1);   
  58. DRAWTEXT(黑马出击>0,0.35,'.★黑马   '),colorFFFFFF;   
  59. DRAWTEXT(黑马出击>0,0.35,'       出击'),colorFF00;   
  60. 放量拉升:0.12*(LLV(CLOSE,100)=LLV(CLOSE,5) AND CLOSE/REF(CLOSE,1)>1+3/100),LINESTICK,LINETHICK2;   
  61. DRAWICON(放量拉升>=0.1,0.13,1);   
  62. DRAWTEXT(放量拉升>0,0.11,'-★^放量拉升'),colorFFFF;   
  63. VAR10:=(CLOSE-MA(CLOSE,58))/MA(CLOSE,58)*100;   
  64. VAR11:=(VAR10>1*REF(VAR10,1) AND VAR10<选股 AND VAR10>抄底)*1.5;   
  65. VAR12:=VOL/CAPITAL*100;   
  66. VAR13:=LLVBARS(LOW,50);   
  67. VAR14:=SUM(VOL,VAR13);   
  68. VAR15:=HHVBARS(HIGH,50);   
  69. VAR16:=SUM(VOL,VAR15);   
  70. VAR17:=(CLOSE-REF(OPEN,VAR15))/REF(OPEN,VAR15)*100;   
  71. VAR18:=VAR16/CAPITAL*100;   
  72. VAR19:=(CLOSE-REF(OPEN,VAR13))/REF(OPEN,VAR13)*100;   
  73. VAR20:=VAR14/CAPITAL*100;   
  74. VAR21:=MA(CLOSE,3);   
  75. VAR22:=REF(CLOSE,2)*0.865;   
  76. VAR23:=REF(CLOSE,13)*0.772;   
  77. VAR24:=MIN(VAR22,VAR23);   
  78. VAR25:=MA(CLOSE,13);   
  79. 抄底王:(IF((CLOSE-VAR24)/CLOSE<0.03 AND VAR17<-35 AND SUM(VAR12,5)/5<1.8,1,0))*0.4,LINETHICK3,colorFF0000;   
  80. DRAWTEXT(抄底王>0,抄底王,'.★抄底王'),PXUP6,colorFFFFFF;   
  81. DRAWTEXT(抄底王>0,抄底王,'         (成功率90%)'),PXUP6,colorFF00;   
  82. VAR26:=(CLOSE-REF(CLOSE,1))/REF(CLOSE,1)*100;   
  83. VAR27:=(EMA(CLOSE,12)-EMA(CLOSE,26))*100;   
  84. VAR28:=EMA(VAR27,9);   
  85. VAR29:=2*(VAR27-VAR28);   
  86. STICKLINE(VAR27<-50 AND VAR26>7,0,-0.1,5,0),colorFF;   
  87. DRAWTEXT(VAR27<-50 AND VAR26>7 AND VAR27<VAR28,-0.08,'底'),colorFFFFFF;   
  88. DRAWTEXT(VAR27<-50 AND VAR26>7 AND VAR27>=VAR28,-0.1,'追'),colorFFFFFF;   
  89. VAR1:=IF(DATE>=99990600,0,1);   
  90. VAR2:=MA(CLOSE,18);   
  91. VAR3:=(CLOSE-VAR2)/VAR2*100;   
  92. VAR4:=MA(VAR3,1);   
  93. 升跌:=VAR4*VAR1;   
  94. VAR5:=BARSLAST(CROSS(-10,VAR4)=1);   
  95. VAR6:=BARSLAST(CROSS(VAR4,10)=1);   
  96. VAR7:=VAR4<-10 AND VAR5>=5;   
  97. VAR8:=VAR4>10 AND VAR6>=5;   
  98. C1:0.01*(IF(VAR4<-10 AND VAR5>=5,VAR4,0))*VAR1,LINETHICK3,colorFFFFFF;   
  99. C2:=C1;   
  100. C3:=(IF(VAR4>10 AND VAR6>=5,VAR4,0))*VAR1;   
  101. C4:=C3;   
  102. D1:=(升跌>REF(升跌,1) AND VAR7)*0.2*VAR1;   
  103. DRAWBKBMP(D1>=0.2,'sun');   
  104. D:(升跌>REF(升跌,1) AND VAR7)*0.25*VAR1,LINETHICK3,colorFF;   
  105. DRAWTEXT(D>=0.25,D,'。★-铁底'),colorFFFF;   
  106. VARB:=REF(LOW,1)*0.9;   
  107. VARC:=LOW*0.9;   
  108. VARD:=(VARC*VOL+VARB*(CAPITAL-VOL))/CAPITAL;   
  109. VARE:=EMA(VARD,30);   
  110. VARF:=CLOSE-REF(CLOSE,1);   
  111. VAR10:=MAX(VARF,0);   
  112. VAR11:=ABS(VARF);   
  113. VAR12:=SMA(VAR10,7,1)/SMA(VAR11,7,1)*100;   
  114. VAR13:=SMA(VAR10,13,1)/SMA(VAR11,13,1)*100;   
  115. VAR14:=SMA(MAX(VARF,0),6,1)/SMA(ABS(VARF),6,1)*100;   
  116. VAR15:=(-200)*(HHV(HIGH,60)-CLOSE)/(HHV(HIGH,60)-LLV(LOW,60))+100;   
  117. VAR16:=(CLOSE-LLV(LOW,15))/(HHV(HIGH,15)-LLV(LOW,15))*100;   
  118. VAR17:=SMA((SMA(VAR16,4,1)-50)*2,3,1);   
  119. VAR18:=(INDEXC-LLV(INDEXL,14))/(HHV(INDEXH,14)-LLV(INDEXL,14))*100;   
  120. VAR19:=SMA(VAR18,4,1);   
  121. VAR1A:=SMA(VAR19,3,1);   
  122. VAR1B:=(HHV(HIGH,30)-CLOSE)/CLOSE*100;   
  123. VAR1C:=VAR14<=25 AND VAR15<-95 AND VAR1B>20 AND VAR17<-30 AND VAR1A<30 AND VARE-CLOSE>=-0.25 AND VAR12<22 AND VAR13<28;   
  124. VARA1:=AMOUNT/VOL;   
  125. VARA2:=EMA((WINNER(CLOSE*1.1)-WINNER(CLOSE*0.9))*80,5);   
  126. VARA111:="1A0001$VOL"*"1A0001$CLOSE";   
  127. VARA21:=EMA(VARA111,5)/EMA("1A0001$VOL",5);   
  128. CYS:=("1A0001$CLOSE"-VARA21)/VARA21*100;   
  129. A1:=VARA1/100;   
  130. A2:=MA(A1,5);   
  131. A3:=MA(A1,20);   
  132. A4:=MA(A1,30);   
  133. B1:=A4>A2*1.09 AND A3>A2*1.06;   
  134. B2:=A2>A1*1.03 AND A3>A1*1.13;   
  135. VARA32:=MA(CLOSE,27);   
  136. VARA33:=(CLOSE-VARA32)/VARA32*100;   
  137. VARA34:=MA(VARA33,3);   
  138. VARA10:=CYS<-2 AND B2;   
  139. 屠龙刀:=VARA2<6 AND VARA10 AND VARA34<-15;   
  140. 屠龙刀*0.18,STICK,LINETHICK6,colorFF;   
  141. DRAWTEXT(屠龙刀,0.18,'-★ 屠龙刀 '),colorFFAA00;   
  142. DIFF2:=EMA(CLOSE,2)-EMA(OPEN,5);   
  143. 操盘手:=DIFF2;   
  144. 0.13*(CROSS(操盘手,MACD) AND MACD<=-0.11),LINETHICK2,colorFFFFFF;   
  145. DRAWTEXT(CROSS(操盘手,MACD) AND MACD<=-0.11,0.13,'5%'),colorB7D16F;   
  146. 0.1*(CROSS(DIFF,DEA) AND DIFF>=-0.01 AND DEA<=0),LINETHICK3,colorFF;   
  147. DRAWTEXT(CROSS(DIFF,DEA) AND DIFF>=-0.01 AND DEA<=0,0.1,'2.5%');   
  148. V2:=(CLOSE-REF(CLOSE,1))/REF(CLOSE,1)*100;   
  149. V3:=MA(VOL,2)/MA(VOL,10);   
  150. V4:=VOL/CAPITAL;   
  151. A1:=0.0068*V2-0.0072*V3-0.5676*V4-0.0105;   
  152. A2:=0.0015*V2-0.0124*V3+1.7461*V4-0.0074;   
  153. A3:=-0.0003*V2+0.047*V3-0.5734*V4-0.0549;   
  154. 买:-12.2401*A1-1*A2+0.321<0,LINETHICK3,color1;   
  155. MA1:=MA(CLOSE,P1);   
  156. MA2:=MA(CLOSE,P2);   
  157. N15HIGH:=REF(HIGH,15);   
  158. N1LOW:=REF(LOW,1);   
  159. FF:=(N15HIGH-N1LOW)/N1LOW>0.15;   
  160. DRAWICON(CROSS(MA(CLOSE,P1),MA(CLOSE,P2))>0 AND (N15HIGH-N1LOW)/N1LOW<0.15 AND OPEN>=MA(CLOSE,P1) AND CLOSE>=MA(CLOSE,P1) AND LOW<=MA(CLOSE,P1),0.42,1);   
  161. STICKLINE(CROSS(MA(CLOSE,P1),MA(CLOSE,P2)) AND (N15HIGH-N1LOW)/N1LOW<0.15 AND OPEN>=MA(CLOSE,P1) AND LOW<=MA(CLOSE,P1) AND CLOSE>=MA(CLOSE,P1),0,0.39,0,1),LINETHICK4,colorFF;   
  162. DRAWTEXT(CROSS(MA(CLOSE,P1),MA(CLOSE,P2))>0 AND (N15HIGH-N1LOW)/N1LOW<0.15 AND OPEN>=MA(CLOSE,P1) AND CLOSE>=MA(CLOSE,P1) AND LOW<=MA(CLOSE,P1),0.42,'★^回头望月'),colorFF0000;   
  163. RANGE(OPEN>=MA(CLOSE,P1),LOW<=MA(CLOSE,P1),CLOSE>=MA(CLOSE,P1));   

 

资源下载链接   资源大小:4KB

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