找回密码
 立即注册

QQ登录

只需一步,快速开始

广告载入中...
楼主: 王新银

编写了基于倍量、梯量,平量的一个指标不完善大家看下

    [复制链接]
发表于 2010-8-22 11:22 | 显示全部楼层
加油支持  加油支持
回复

使用道具 举报

发表于 2010-8-22 12:00 | 显示全部楼层
谢谢分享,辛苦了
回复

使用道具 举报

 楼主| 发表于 2010-8-22 16:59 | 显示全部楼层

  1. 黄金柱黄金线
  2. N1(1,100,3);
  3. N2(1,100,6);
  4. N3(1,100,12);
  5. N4(1,100,24);

  6. 多空指数:(MA(CLOSE,N1)+MA(CLOSE,N2)+MA(CLOSE,N3)+MA(CLOSE,N4))/4;
  7. X:=IF(VOL==REF(VOL,1) OR (VOL>REF(VOL,1) AND (VOL-REF(VOL,1))<=(VOL*0.05)) OR (VOL<REF(VOL,1) AND (REF(VOL,1)-VOL)<=(REF(VOL,1)*0.05)),1,0);
  8. X1:=IF(X==0 AND VOL>REF(VOL,1) AND (VOL==REF(VOL,2) OR (VOL>REF(VOL,2) AND (VOL-REF(VOL,2))<=(VOL*0.05)) OR (VOL<REF(VOL,2) AND (REF(VOL,2)-VOL)<=(REF(VOL,2)*0.05))),2,0);
  9. X2:=IF(X==0 AND X1==0 AND VOL>REF(VOL,1) AND VOL>REF(VOL,2) AND (VOL==REF(VOL,3) OR (VOL>REF(VOL,3) AND (VOL-REF(VOL,3))<=(VOL*0.05)) OR (VOL<REF(VOL,3) AND (REF(VOL,3)-VOL)<=(REF(VOL,3)*0.05))),3,0);
  10. X3:=IF(X==0 AND X1==0 AND X2==0 AND VOL>REF(VOL,1) AND VOL>REF(VOL,2) AND VOL>REF(VOL,3) AND (VOL==REF(VOL,4) OR (VOL>REF(VOL,4) AND (VOL-REF(VOL,4))<=(VOL*0.05)) OR
  11. (VOL<REF(VOL,4) AND (REF(VOL,4)-VOL)<=(REF(VOL,4)*0.05))),4,0);
  12. X4:=IF(X==0 AND X1==0 AND X2==0 AND X3==0 AND VOL>REF(VOL,1) AND VOL>REF(VOL,2) AND VOL>REF(VOL,3) AND VOL>REF(VOL,4) AND
  13.       (VOL==REF(VOL,5) OR (VOL>REF(VOL,5) AND (VOL-REF(VOL,5))<=(VOL*0.05)) OR (VOL<REF(VOL,5) AND (REF(VOL,5)-VOL)<=(REF(VOL,5)*0.05))),5,0);
  14. X5:=IF(X==0 AND X1==0 AND X2==0 AND X3==0 AND X4==0 AND VOL>REF(VOL,1) AND VOL>REF(VOL,2) AND VOL>REF(VOL,3) AND VOL>REF(VOL,4) AND VOL>REF(VOL,5) AND
  15.       (VOL==REF(VOL,6) OR (VOL>REF(VOL,6) AND (VOL-REF(VOL,6))<=(VOL*0.05)) OR (VOL<REF(VOL,6) AND (REF(VOL,6)-VOL)<=(REF(VOL,6)*0.05))),6,0);
  16. X6:=IF(X==0 AND X1==0 AND X2==0 AND X3==0 AND X4==0 AND X5==0 AND VOL>REF(VOL,1) AND VOL>REF(VOL,2) AND VOL>REF(VOL,3) AND VOL>REF(VOL,4) AND VOL>REF(VOL,5) AND
  17.        VOL>REF(VOL,6) AND (VOL==REF(VOL,7) OR (VOL>REF(VOL,7) AND (VOL-REF(VOL,7))<=(VOL*0.05)) OR (VOL<REF(VOL,7) AND (REF(VOL,7)-VOL)<=(REF(VOL,7)*0.05))),7,0);
  18. X7:=IF(X==0 AND X1==0 AND X2==0 AND X3==0 AND X4==0 AND X5==0 AND X6==0 AND VOL>REF(VOL,1) AND VOL>REF(VOL,2) AND VOL>REF(VOL,3) AND VOL>REF(VOL,4) AND VOL>REF(VOL,5) AND
  19.        VOL>REF(VOL,6) AND VOL>REF(VOL,7) AND (VOL==REF(VOL,8) OR (VOL>REF(VOL,8) AND (VOL-REF(VOL,8))<=(VOL*0.05)) OR (VOL<REF(VOL,8) AND (REF(VOL,8)-VOL)<=(REF(VOL,8)*0.05))),8,0);
  20. X8:=IF(X==0 AND X1==0 AND X2==0 AND X3==0 AND X4==0 AND X5==0 AND X6==0 AND X7==0 AND VOL>REF(VOL,1) AND VOL>REF(VOL,2) AND VOL>REF(VOL,3) AND VOL>REF(VOL,4) AND VOL>REF(VOL,5) AND
  21.        VOL>REF(VOL,6) AND VOL>REF(VOL,7) AND VOL>REF(VOL,8) AND (VOL==REF(VOL,9) OR (VOL>REF(VOL,9) AND (VOL-REF(VOL,9))<=(VOL*0.05)) OR (VOL<REF(VOL,9) AND (REF(VOL,9)-VOL)<=(REF(VOL,9)*0.05))),9,0);
  22. X9:=IF(X==0 AND X1==0 AND X2==0 AND X3==0 AND X4==0 AND X5==0 AND X6==0 AND X7==0 AND X8==0 AND VOL>REF(VOL,1) AND VOL>REF(VOL,2) AND VOL>REF(VOL,3) AND VOL>REF(VOL,4) AND VOL>REF(VOL,5) AND
  23.        VOL>REF(VOL,6) AND VOL>REF(VOL,7) AND VOL>REF(VOL,8) AND VOL>REF(VOL,9) AND
  24.       (VOL==REF(VOL,10) OR (VOL>REF(VOL,10) AND (VOL-REF(VOL,10))<=(VOL*0.05)) OR (VOL<REF(VOL,10) AND (REF(VOL,10)-VOL)<=(REF(VOL,10)*0.05))),10,0);
  25. X10:=IF(X==0 AND X1==0 AND X2==0 AND X3==0 AND X4==0 AND X5==0 AND X6==0 AND X7==0 AND X8==0 AND X9==0 AND VOL>REF(VOL,1) AND VOL>REF(VOL,2) AND VOL>REF(VOL,3) AND VOL>REF(VOL,4) AND VOL>REF(VOL,5) AND
  26.        VOL>REF(VOL,6) AND VOL>REF(VOL,7) AND VOL>REF(VOL,8) AND VOL>REF(VOL,9) AND VOL>REF(VOL,10) AND
  27.       (VOL==REF(VOL,11) OR (VOL>REF(VOL,11) AND (VOL-REF(VOL,11))<=(VOL*0.05)) OR (VOL<REF(VOL,11) AND (REF(VOL,11)-VOL)<=(REF(VOL,11)*0.05))),11,0);
  28. X11:=IF(X==0 AND X1==0 AND X2==0 AND X3==0 AND X4==0 AND X5==0 AND X6==0 AND X7==0 AND X8==0 AND X9==0 AND X10==0 AND VOL>REF(VOL,1) AND VOL>REF(VOL,2) AND VOL>REF(VOL,3) AND VOL>REF(VOL,4) AND VOL>REF     (VOL,5) AND VOL>REF(VOL,6) AND VOL>REF(VOL,7) AND VOL>REF(VOL,8) AND VOL>REF(VOL,9) AND VOL>REF(VOL,10) AND VOL>REF(VOL,11) AND
  29.       (VOL==REF(VOL,12) OR (VOL>REF(VOL,12) AND (VOL-REF(VOL,12))<=(VOL*0.05)) OR (VOL<REF(VOL,12) AND (REF(VOL,12)-VOL)<=(REF(VOL,12)*0.05))),12,0);
  30. X12:=IF(X==0 AND X1==0 AND X2==0 AND X3==0 AND X4==0 AND X5==0 AND X6==0 AND X7==0 AND X8==0 AND X9==0 AND X10==0 AND X11==0 AND
  31.      VOL>REF(VOL,1) AND VOL>REF(VOL,2) AND VOL>REF(VOL,3) AND VOL>REF(VOL,4) AND VOL>REF(VOL,5) AND VOL>REF(VOL,6) AND VOL>REF(VOL,7) AND VOL>REF(VOL,8) AND VOL>REF(VOL,9) AND VOL>REF(VOL,10) AND
  32.      VOL>REF(VOL,11) AND VOL>REF(VOL,12)  AND
  33.     (VOL==REF(VOL,13) OR (VOL>REF(VOL,13) AND (VOL-REF(VOL,13))<=(VOL*0.05)) OR (VOL<REF(VOL,13) AND (REF(VOL,13)-VOL)<=(REF(VOL,13)*0.05))),13,0);
  34. 黄:=((((REF(VOL,3)-REF(VOL,4))>=REF(VOL,4)) OR
  35. (REF(VOL,3)-REF(VOL,4))>=(REF(VOL,3)*0.4))  OR
  36. (REF(VOL,4)<REF(VOL,3) AND REF(VOL,5)<REF(VOL,4) AND REF(VOL,6)<REF(VOL,5)) OR REF((X+X1+X2+X3+X4+X5+X6+X7+X8+X9+X10+X11+X12),3)>0)   
  37. AND
  38. ((VOL<REF(VOL,1) AND REF(VOL,1)<REF(VOL,2) AND REF(VOL,2)<REF(VOL,3)) OR
  39. (VOL<REF(VOL,3) AND REF(VOL,1)<REF(VOL,3) AND REF(VOL,2)<REF(VOL,3))) AND
  40. REF(C,1)>=REF(L,3) AND C>=REF(L,3) AND REF(C,2)>=REF(L,3),linethick0;

  41. KL:=IF(黄>0 and (VOL<REF(VOL,1) AND REF(VOL,1)<REF(VOL,2) AND REF(VOL,2)<REF(VOL,3)),1,0);
  42. HJ:=IF(C<=REF(C,1) AND C<=REF(C,2),0,IF(REF(C,1)<=C AND REF(C,1)<=REF(C,2),1,IF(REF(C,2)<=C AND REF(C,2)<=REF(C,1),2,-1))),linethick0;{3天内最低收盘价}
  43. SJ:=IF(L<=REF(L,1) AND L<=REF(L,2),0,IF(REF(L,1)<=L AND REF(L,1)<=REF(L,2),1,IF(REF(L,2)<=L AND REF(L,2)<=REF(L,1),2,-1)));{3天内最低价}
  44. {成交量逐步缩量,一个比一个低}
  45. ss:=SUMBARS(黄>0 AND KL>0 AND HJ>=0 AND SJ>=0,1);
  46. STICKLINE(ss,REF(REF(C,HJ),ss-1)*1.002,REF(REF(C,HJ),ss-1),2,0),COLORRED;{COLORYELLOW;}
  47. STICKLINE(ss,REF(REF(L,SJ),ss-1)*1.002,REF(REF(L,SJ),ss-1),10,0),COLORRED;
  48. BACKSET101:=BACKSET(黄>0 AND KL>0,4);
  49. FILTER101:=FILTER(BACKSET101,4);
  50. DRAWTEXT(FILTER101,L,'黄');
  51. STICKLINE(FILTER101,OPEN,CLOSE,0.5,0),COLORYELLOW,linethick6;
  52. {成交量比黄金柱低,不是逐步减低}
  53. KS:=IF(黄>0 and (VOL<REF(VOL,3) AND REF(VOL,1)<REF(VOL,3) AND REF(VOL,2)<REF(VOL,3)) AND KL==0,1,0);
  54. FF:=SUMBARS(黄>0 AND KS>0 AND HJ>=0 AND SJ>=0,1);
  55. STICKLINE(FF,REF(REF(C,HJ),FF-1)*1.002,REF(REF(C,HJ),FF-1),2,0),colorblue;{COLORMAGENTA;}
  56. STICKLINE(FF,REF(REF(L,SJ),FF-1)*1.002,REF(REF(L,SJ),FF-1),10,0),colorblue;
  57. BACKSET102:=BACKSET(黄>0 AND KS>0,4);
  58. FILTER102:=FILTER(BACKSET102,4);
  59. DRAWTEXT(FILTER102,L,'次');
  60. STICKLINE(FILTER102,OPEN,CLOSE,0.5,0),COLORMAGENTA,linethick6;

复制代码
回复

使用道具 举报

发表于 2011-11-19 22:56 | 显示全部楼层
谢谢分享学习了
回复

使用道具 举报

发表于 2016-3-10 12:26 | 显示全部楼层
谢谢分享,学习中
回复

使用道具 举报

发表于 2016-3-18 11:38 | 显示全部楼层
88888888888888888888
回复

使用道具 举报

发表于 2016-3-18 11:39 | 显示全部楼层
8888888888888888888888
回复

使用道具 举报

发表于 2016-3-18 11:40 | 显示全部楼层
8888888888888888888
回复

使用道具 举报

发表于 2016-3-18 11:41 | 显示全部楼层
努力地顶一下ok
回复

使用道具 举报

发表于 2016-10-12 11:09 | 显示全部楼层
好好学习天天向上
回复

使用道具 举报

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

本版积分规则

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

GMT+8, 2024-11-15 16:40 , Processed in 0.092018 second(s), Total 10, Slave 9 queries , Gzip On, MemCached On.

Powered by Discuz! X3.5

Copyright © 2001-2024 Tencent Cloud.

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