找回密码
 立即注册

QQ登录

只需一步,快速开始

广告载入中...
楼主: ctxiong

最新修改后的通达信“黄金柱解盘”指标送给喜欢的战友

   火... [复制链接]
发表于 2010-10-24 11:12 | 显示全部楼层
回复 1# ctxiong


    不错,谢谢老师了
回复

使用道具 举报

发表于 2010-10-24 11:16 | 显示全部楼层
多谢楼主分享
回复

使用道具 举报

发表于 2010-10-24 11:20 | 显示全部楼层

解决“K线上的字有些会重叠”问题

  1. AAA:=CONST(HHV(H,190));
  2. TS1:=0+0.03;
  3. TS2:=TS1+0.03;
  4. TS3:=TS2+0.03;
  5. DRAWTEXT(CURRBARSCOUNT=60,AAA-(AAA*TS1),'<一>.量柱的阶段性拐点标志--空间转化原则:'),COLOR880088 ;
  6. DRAWTEXT(CURRBARSCOUNT=60,AAA-(AAA*TS2),'   1.平台起柱:在K线整理平台上突然起柱;'),COLOR880088 ;
  7. DRAWTEXT(CURRBARSCOUNT=60,AAA-(AAA*TS3),'   2.凹口起柱:在K线逐步回调形成凹口时起柱.常见凹口倍量;'),COLOR880088 ;
  8. TS4:=TS3+0.03;
  9. TS5:=TS4+0.03;
  10. TS6:=TS5+0.03;
  11. DRAWTEXT(CURRBARSCOUNT=60,AAA-(AAA*TS4),'   3.过顶起柱:过左峰起柱.常见过顶倍量;'),COLOR880088 ;
  12. DRAWTEXT(CURRBARSCOUNT=60,AAA-(AAA*TS5),'   4.触底起柱:触前期谷底起柱.常见触底倍量.'),COLOR880088 ;
  13. DRAWTEXT(CURRBARSCOUNT=60,AAA-(AAA*TS6),'<二>.量柱的集合定性--组合量柱:'),COLOR880088 ;
  14. TS7:=TS6+0.03;
  15. TS8:=TS7+0.03;
  16. TS9:=TS8+0.03;
  17. DRAWTEXT(CURRBARSCOUNT=60,AAA-(AAA*TS7),'   1.低量柱+倍量柱:后市必大涨!'),COLOR880088 ;
  18. DRAWTEXT(CURRBARSCOUNT=60,AAA-(AAA*TS8),'   2.倍量柱+倍量柱:主庄控盘良好,急于拉升!'),COLOR880088 ;
  19. DRAWTEXT(CURRBARSCOUNT=60,AAA-(AAA*TS9),'   3.缩倍柱+倍量柱:机会就在眼前!'),COLOR880088 ;
  20. {============================}
  21. BBB:=CONST(HHV(H,190));
  22. TT1:=0+0.03;
  23. TT2:=TT1+0.03;
  24. TT3:=TT2+0.03;
  25. DRAWTEXT(CURRBARSCOUNT=100,BBB-(BBB*TT1),'<三>.量柱的三日定性--时间转化原则:'),COLOR880088 ;
  26. DRAWTEXT(CURRBARSCOUNT=100,BBB-(BBB*TT2),'   1.后三日价升量缩:转化为黄金柱;'),COLOR880088 ;
  27. DRAWTEXT(CURRBARSCOUNT=100,BBB-(BBB*TT3),'   2.后三日量柱先阴后阳:该量柱官升一级;'),COLOR880088 ;
  28. TT4:=TT3+0.03;
  29. TT5:=TT4+0.03;
  30. DRAWTEXT(CURRBARSCOUNT=100,BBB-(BBB*TT4),'   3.后三日量柱阴阳相间:量柱退化,走势面临调整;'),COLOR880088 ;
  31. DRAWTEXT(CURRBARSCOUNT=100,BBB-(BBB*TT5),'   4.后三日量柱实体逐步缩小:力量将衰退,面临调整.'),COLOR880088 ;
  32. {重绘K线}
  33. DRAWKLINE(H,O,L,C);
  34. {=================================}
  35. 黄金柱:=V/REF(V,1)>=2.0;
  36. K1:=SUMBARS(黄金柱,1) ;
  37. K2:=SUMBARS(黄金柱,2);
  38. K3:=SUMBARS(黄金柱,3);
  39. K4:=SUMBARS(黄金柱,4);
  40. K5:=SUMBARS(黄金柱,5);
  41. K6:=SUMBARS(黄金柱,6);
  42. K7:=SUMBARS(黄金柱,7);
  43. K8:=SUMBARS(黄金柱,8);
  44. K9:=SUMBARS(黄金柱,9);
  45. K10:=SUMBARS(黄金柱,10);
  46. AA:STICKLINE(K1,REF(L,K1-1)*1.002,REF(L,K1-1),2,0),COLORYELLOW;
  47. T60:=V=HHV(V,60);
  48. T100:=V=HHV(V,100);
  49. T2:=V/REF(VOL,1)>=3;
  50. T3:=REF(C,1)/REF( O,1)<3;
  51. 五星上将:=(T60 AND T2 AND T3) OR (T100 AND T2 AND T3);
  52. DRAWICON(五星上将,H,23);
  53. {量柱图}
  54. C2:=REF(C,1);
  55. 涨停:=IF((C-C2)*100/C2>=(10-0.01*100/C2),1,0);
  56. STICKLINE(涨停,OPEN,CLOSE,-1,0),COLORWHITE;
  57. STICKLINE(涨停,H,L,0,0),COLORWHITE;
  58. {DRAWICON(涨停,L-0.2,11);}
  59. DRAWTEXT(涨停,L-0.2,'←涨停');
  60. 跌停:=IF((C2-C)*100/C2>=(10-0.01*100/C2),1,0);
  61. STICKLINE(跌停,OPEN,CLOSE,-1,0),COLORBLUE;
  62. STICKLINE(跌停,H,L,0,1),COLORBLUE;
  63. {DRAWICON(跌停,H+0.2,2);}
  64. DRAWTEXT(跌停,H+0.2,'←跌停');
  65. TY:=C;
  66. AA1:=REF(TY,10)=HHV(TY,2*10+1);
  67. BB1:=FILTER(AA1,10);
  68. C1:=BACKSET(BB1,10+1);
  69. HD:=FILTER(C1,10);
  70. AA2:=REF(TY,10)=LLV(TY,2*10+1);
  71. B2:=FILTER(AA2,10);
  72. CC2:=BACKSET(B2,10+1);
  73. LD:=FILTER(CC2,10);
  74. 前期高位:REF(H,BARSLAST(HD)),COLOR00FF00,POINTDOT,LINETHICK1;
  75. 前期低位:REF(L,BARSLAST(LD)),COLORFF00FF,POINTDOT,LINETHICK1;
  76. {求位置坐标}
  77. PHD:=IF(LLV(L,3)>=REF(H,3),REF(H,3),
  78.        IF((LLV(L,3)>=REF(C,3) AND REF(C,3)>REF(O,3)),REF(C,3),
  79.           IF(LLV(L,3)>=REF(O,3) AND REF(C,3)>REF(O,3),REF(O,3),REF(L,3))));
  80. {在K线图上标示量柱类型}
  81. 倍量:=DRAWICON((VOL>REF(V,1)*2.0 OR VOL=REF(V,1)*2.0) AND C>REF(C,1),H+0.2,26);
  82. 低量:=DRAWICON(VOL<REF(LLV(VOL,13),1),H+0.1,2);
  83. 地量:=DRAWICON(VOL<REF(LLV(VOL,100),1),H+0.1,12);
  84. 平量:=DRAWICON(ABS(VOL-HHV(REF(VOL,1),5))/HHV(REF(VOL,1),5)<=0.03 OR ABS(VOL-REF(VOL,1))/REF(VOL,1)<=0.03,H+0.1,16);
  85. 倍缩:=DRAWICON(VOL<=REF(V,1)*0.5,H+0.1,27);
  86. {画量柱标识:}
  87. {1.画倍量黄金柱标识--红箭头图标}
  88. 倍量黄金柱:=DRAWICON((LLV(L,3)>REF(L,3) OR LLV(L,3)=REF(L,3)) AND HHV(V,3)<REF(V,3) AND
  89. REF(C,3)>REF(O,3) AND REF(V,3)>=2*REF(V,4),H+0.2,1);
  90. {2.画梯量黄金柱标识--橘子图标}
  91. 梯量黄金柱:=DRAWICON(LLV(L,3)>REF(L,3) AND HHV(V,3)<REF(V,3) AND
  92. REF(V,5)>REF(V,6) AND REF(V,4)>REF(V,5) AND REF(V,3)>REF(V,4),H,17);
  93. {3.画平量黄金柱标识--苹果图标}
  94. 平量黄金柱:=DRAWICON(LLV(L,3)>REF(L,3) AND HHV(V,3)<REF(V,3) AND
  95. REF(C,3)>REF(O,3) AND ABS(REF(V,3)-REF(V,4))/REF(V,4)<=0.03,H,19);
  96. {4.画立桩量标识--顶部红箭头图标}
  97. N:=25;
  98. 立桩量:=REF(V,3)/REF(MA(V,5),4)>(N/10) AND
  99. REF(V,3)/REF(HHV(V,60),4)>1.5 AND LLV(L,3)>REF(L,3);
  100. STICKLINE(倍量,OPEN,CLOSE,-1,0),COLORYELLOW;
  101. 倍量黄金线:STICKLINE(倍量黄金柱,PHD,PHD,30,0),COLORWHITE;
  102. DRAWICON(倍量黄金柱,PHD*1.008,12);
  103. DRAWTEXT(倍量黄金柱,PHD*1.010,' 标准黄金线'),COLORFF00FF;
  104. DRAWTEXT(倍量黄金柱,PHD,'================='),COLORWHITE;
  105. 立桩量标识RAWICON(立桩量,H*1.002,1);
  106. DRAWTEXT(立桩量,H*1.06,'立'),COLORRED;
  107. DRAWTEXT(立桩量,H*1.04,'桩'),COLORRED;
  108. DRAWTEXT(立桩量,H*1.02,'量'),COLORRED;
  109. {底部趋势拐点}
  110. VVOL:=IF(CURRBARSCOUNT=1 AND PERIOD=5,VOL*240/FROMOPEN,DRAWNULL);
  111. VOLUME:=VOL;
  112. AAG:=VOL>=REF(V,1)*1.91 AND C>REF(C,1);
  113. AA1G:=VOL<REF(LLV(VOL,21),1);
  114. AA2G:=VOL<REF(LLV(VOL,55),1);
  115. AA3G:=ABS(VOL-REF(VOL,1))/REF(VOL,1)<=0.05;
  116. MAVOL5:=MA(VOLUME,5);
  117. MAVOL35:=MA(VOLUME,35);
  118. MAVOL135:=MA(VOLUME,135);
  119. VOLUME5:=MA(VOLUME,5);
  120. VOLUME35:=MA(VOLUME,35);
  121. VOLUME135:=MA(VOLUME,135);
  122. 买入:=CROSS(VOLUME5,VOLUME135);
  123. DRAWICON(买入,L,9);
  124. 买入1:=CROSS(VOLUME35,VOLUME135);
  125. DRAWICON(买入1,L,5);
  126. 买入2:=CROSS(VOLUME5,VOLUME35);
  127. DRAWICON(买入2,L,1);
  128. {非常棒}
  129. EMA13:=EMA(C,13),COLORWHITE;
  130. EMA21:=EMA(C,21),COLORYELLOW;
  131. EMA34:=EMA(C,34),COLORFF00FF;
  132. EMA60:=MA(C,60),COLORFFCC66;
  133. VAR2:=(2*CLOSE+HIGH+LOW)/4;
  134. VAR3:=IF(YEAR>=2099 AND MONTH>2,0,1);
  135. VAR4:=LLV(LOW,5); VAR5:=HHV(HIGH,4);
  136. 散户:=EMA((VAR2-VAR4)/(VAR5-VAR4)*100,4)*VAR3;
  137. 庄家:=EMA(0.667*REF(散户,1)+0.333*散户,2)*VAR3;
  138. DRAWTEXT(CROSS(散户,庄家) AND 散户<30,L-0.05,'←低吸'),COLORLIRED;
  139. DRAWTEXT(CROSS(庄家,散户) AND 散户>70,H+0.05,'←高抛'),COLORGREEN;
  140. {DRAWICON(CROSS(散户,庄家) AND 散户<30,L-0.05,1);
  141. DRAWICON(CROSS(庄家,散户) AND 散户>70,H+0.05,2); }
  142. VAR9:=CLOSE-REF(CLOSE,5);
  143. VARA:=EMA(EMA(VAR9,5),5)/EMA(EMA(ABS(VAR9),5),5);
  144. VARC:=EMA(EMA(VAR9,20),20)/EMA(EMA(ABS(VAR9),20),20);
  145. 卖出:=IF(VARA>0 AND CROSS(VARC,VARA),90,100);
  146. DRAWICON(卖出<0,H+0.05,2);
  147. 买线:=EMA(CLOSE,2);
  148. 卖线:=EMA(SLOPE(CLOSE,21)*20+CLOSE,42);
  149. B1:IF(CROSS(买线,卖线),L-0.02,DRAWNULL),CROSSDOT,LINETHICK3,COLORMAGENTA;
  150. S1:IF(CROSS(80,RSI)*30,H+0.02,DRAWNULL),CROSSDOT,LINETHICK3,COLORYELLOW;
  151. VC:=((CLOSE-MA(CLOSE,6))/MA(CLOSE,6)*100+(CLOSE-MA(CLOSE,24))/MA(CLOSE,24)*100+(CLOSE-MA (CLOSE,32))/MA(CLOSE,32)*100)/3;
  152. S2:=IF(VC>20 AND FILTER(VC< REF(VC,1),5),H+0.02,DRAWNULL),CIRCLEDOT,LINETHICK3,COLORGREEN;
  153. A0:=(L+H+C*2)/4;
  154. A1B:EMA(A0,14),COLORBLUE,LINETHICK2;
  155. A2B:=EMA(A0,25),COLORLIBLUE,LINETHICK2;
  156. A1X:=(A1B-REF(A1B,1))/REF(A1B,1)*100,NODRAW;
  157. A2X:=(A2B-REF(A2B,1))/REF(A2B,1)*100,NODRAW;
  158. 看多:IF(A1X>=0 AND BARSLAST(CROSS(A1X,0))>0,REF((C+O)/2,BARSLAST(CROSS(A1X,0))),DRAWNULL),COLORMAGENTA,LINETHICK2;
  159. 逃顶:IF(A1X<0 AND BARSLAST(CROSS(0,A1X))>0,REF((C+O)/2,BARSLAST(CROSS(0,A1X))),DRAWNULL),COLORCYAN,{LINETHICK2};
  160. 买入持股:IF(A1X>=0,A1B,DRAWNULL)COLORRED,LINETHICK2;
  161. 卖出空仓:IF(A1X<0 AND A2X<0,A1B,DRAWNULL)COLORGREEN,LINETHICK2;
复制代码
回复

使用道具 举报

发表于 2010-10-24 11:20 | 显示全部楼层
楼主乃高高手!谢谢!
回复

使用道具 举报

发表于 2010-10-24 11:23 | 显示全部楼层
不错,谢谢老师了,
回复

使用道具 举报

发表于 2010-10-24 11:26 | 显示全部楼层
楼主辛苦了,大力支持
回复

使用道具 举报

发表于 2010-10-24 11:27 | 显示全部楼层
谢谢分享!!
回复

使用道具 举报

发表于 2010-10-24 11:28 | 显示全部楼层
回复 1# ctxiong


   
回复

使用道具 举报

发表于 2010-10-24 11:29 | 显示全部楼层
学习!!!!!!!!!!!!!!
回复

使用道具 举报

发表于 2010-10-24 11:33 | 显示全部楼层
楼主辛苦了,大力支持
回复

使用道具 举报

发表于 2010-10-24 11:37 | 显示全部楼层
楼主辛苦了,大力支持
回复

使用道具 举报

发表于 2010-10-24 11:43 | 显示全部楼层
回复

使用道具 举报

发表于 2010-10-24 11:47 | 显示全部楼层
回复

使用道具 举报

发表于 2010-10-24 11:55 | 显示全部楼层
了解学习提高
回复

使用道具 举报

发表于 2010-10-24 11:56 | 显示全部楼层
那些说明文字很容易挡住K线
回复

使用道具 举报

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

本版积分规则

Archiver|手机版|小黑屋|股海明灯官网 ( 京ICP备18020431号 )

GMT+8, 2024-11-22 15:22 , Processed in 0.093788 second(s), Total 9, Slave 8 queries , Gzip On, MemCached On.

Powered by Discuz! X3.5

Copyright © 2001-2024 Tencent Cloud.

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