查看: 4280|回复: 1

通达信波浪理论画线主图

[复制链接]

687

主题

688

帖子

2101

积分

金牌会员

Rank: 6Rank: 6

积分
2101
发表于 2015-1-15 21:18:55 | 显示全部楼层 |阅读模式
  1. 重心:(2*C+H+L)/4,COLOR00FFFF,LINETHICK0;
  2. SJ:=WMA((重心-LLV(L,5))/(HHV(H,5)-LLV(L,5))*100,2);
  3. ZJ:=WMA(0.618*REF(SJ,1)+0.382*SJ,2);
  4. A1:=EMA(C,14)COLORWHITE,LINETHICK1;
  5. A1X:=(A1-REF(A1,1))/REF(A1,1)*100,NODRAW;
  6. 突破:REF(EMA(C,14),1),NODRAW;
  7. 距离:(C-突破)/突破*100,NODRAW;
  8. 出击:IF(A1X>=0,REF(EMA(C,14),BARSLAST(CROSS(A1X,0))+1),DRAWNULL)COLORRED,LINETHICK1;
  9. 休假:IF(A1X<0,REF(EMA(C,14),BARSLAST(CROSS(0,A1X))+1),DRAWNULL)COLORGREEN,LINETHICK1;
  10. 涨幅:IF(A1X>=0,(C-出击)/出击*100,DRAWNULL)NODRAW;
  11. 跌幅:IF(A1X<0,(C-休假)/休假*100,DRAWNULL)NODRAW;
  12. ♂10%:=IF(H>=出击*1.1,出击*1.1,DRAWNULL),COLORRED,POINTDOT,LINETHICK4;
  13. ♂20%:=IF(H>=出击*1.2,出击*1.2,DRAWNULL),COLORRED,POINTDOT,LINETHICK4;
  14. ♂30%:=IF(H>=出击*1.3,出击*1.3,DRAWNULL),COLORRED,POINTDOT,LINETHICK4;
  15. ♀Ⅰ:=IF(L<休假*0.9,休假*0.9,DRAWNULL),COLORGREEN,POINTDOT,LINETHICK4;
  16. ♀Ⅱ:=IF(L<休假*0.8,休假*0.8,DRAWNULL),COLORGREEN,POINTDOT,LINETHICK4;
  17. ♀Ⅲ:=IF(L<休假*0.7,休假*0.7,DRAWNULL),COLORGREEN,POINTDOT,LINETHICK4;
  18. A11:DRAWLINE(HIGH>=HHV(HIGH,5),HIGH,LOW<=LLV(LOW,5),LOW,0);
  19. B1:DRAWLINE(LOW<=LLV(LOW,5),LOW,HIGH>=HHV(HIGH,5),HIGH,0);
  20. A2:DRAWLINE(HIGH>=HHV(HIGH,13),HIGH,LOW<=LLV(LOW,13),LOW,0),COLORCYAN;
  21. B2:DRAWLINE(LOW<=LLV(LOW,13),LOW,HIGH>=HHV(HIGH,13),HIGH,0);
  22. A3:DRAWLINE(HIGH>=HHV(HIGH,34),HIGH,LOW<=LLV(LOW,34),LOW,0);
  23. B3:DRAWLINE(LOW<=LLV(LOW,34),LOW,HIGH>=HHV(HIGH,34),HIGH,0);
  24. A4:DRAWLINE(HIGH>=HHV(HIGH,55),HIGH,LOW<=LLV(LOW,55),LOW,0);
  25. B4:DRAWLINE(LOW<=LLV(LOW,55),LOW,HIGH>=HHV(HIGH,55),HIGH,0);
复制代码

由于是画线,只能画到当前所用日期,所以当后面的走势图出来的时候,前面的部分画线需要重画,这样的话就要用到未来函数,这个主图供大家参考。
1-58.png

回复

使用道具 举报

687

主题

688

帖子

2101

积分

金牌会员

Rank: 6Rank: 6

积分
2101
 楼主| 发表于 2015-1-15 21:24:05 | 显示全部楼层
  1. GET:ZIG(3,5),COLORAAAAAA;
  2. PL5:=ZIG(3,5);
  3. EN1:=ZIG(3,5)>REF(ZIG(3,5),1) AND REF(ZIG(3,5),1)<=REF(ZIG(3,5),2) AND REF(ZIG(3,5),2)<=REF(ZIG(3,5),3);
  4. EX1:=ZIG(3,5)<REF(ZIG(3,5),1) AND REF(ZIG(3,5),1)>=REF(ZIG(3,5),2) AND REF(ZIG(3,5),2)>=REF(ZIG(3,5),3);
  5. PL10:=ZIG(3,13);
  6. EN2:=ZIG(3,10)>REF(ZIG(3,10),1) AND REF(ZIG(3,10),1)<=REF(ZIG(3,10),2) AND REF(ZIG(3,10),2)<=REF(ZIG(3,10),3);
  7. EX2:=ZIG(3,10)<REF(ZIG(3,10),1) AND REF(ZIG(3,10),1)>=REF(ZIG(3,10),2) AND REF(ZIG(3,10),2)>=REF(ZIG(3,10),3);
  8. PL20:=ZIG(3,26);
  9. EN3:=ZIG(3,20)>REF(ZIG(3,20),1) AND REF(ZIG(3,20),1)<=REF(ZIG(3,20),2) AND REF(ZIG(3,20),2)<=REF(ZIG(3,20),3);
  10. EX3:=ZIG(3,20)<REF(ZIG(3,20),1) AND REF(ZIG(3,20),1)>=REF(ZIG(3,20),2) AND REF(ZIG(3,20),2)>=REF(ZIG(3,20),3);
  11. PL40:=ZIG(3,55);
  12. 走强一:=BARSLAST(PL5<REF(PL5,1));
  13. 走弱一:=BARSLAST(PL5>REF(PL5,1));
  14. 走强二 :=BARSLAST(PL10<REF(PL10,1));
  15. 走弱二:=BARSLAST(PL10>REF(PL10,1));
  16. 走强三:=BARSLAST(PL20<REF(PL20,1));
  17. 走弱三:=BARSLAST(PL20>REF(PL20,1));
  18. ZTJZ5:=IF(PL10>REF(PL10,1),COUNT(EN1,走强二 ),0);
  19. ZTJD5:=IF(PL10>REF(PL10,1),COUNT(EX1,走强二 ),0);
  20. DTJZ5:=IF(PL10<REF(PL10,1),COUNT(EN1,走弱二),0);
  21. DTJD5:=IF(PL10<REF(PL10,1),COUNT(EX1,走弱二),0);
  22. ZTJZ10:=IF(PL20>REF(PL20,1),COUNT(EN2,走强三),0);
  23. ZTJD10:=IF(PL20>REF(PL20,1),COUNT(EX2,走强三),0);
  24. DTJZ10:=IF(PL20<REF(PL20,1),COUNT(EN2,走弱三),0);
  25. DTJD10:=IF(PL20<REF(PL20,1),COUNT(EX2,走弱三),0);
  26. DRAWTEXT(EN1 AND DTJZ5=1,LOW*0.97,'(Ⅰ)'),COLORFFFF00;
  27. DRAWTEXT(EX1 AND DTJD5=2,HIGH*1.03,'(Ⅱ)'),COLORFFFF00;
  28. DRAWTEXT(EN2 AND ZTJZ5=1,LOW*0.97,'(Ⅲ)'),COLORFFFF00;
  29. DRAWTEXT(EX1 AND PL10>REF(PL10,1) AND ZTJD5=1,HIGH*1.02,'⑴'),COLOR0000FF;
  30. DRAWTEXT(EN1 AND PL10>REF(PL10,1) AND ZTJZ5=2,LOW*0.98,'⑵'),COLOR0000FF;
  31. DRAWTEXT(EX1 AND PL10>REF(PL10,1) AND ZTJZ5=2,HIGH*1.02,'⑶'),COLOR0000FF;
  32. DRAWTEXT(EN1 AND PL10>REF(PL10,1) AND ZTJZ5=3,LOW*0.98,'⑷'),COLOR0000FF;
  33. DRAWTEXT(EX2 AND PL20>REF(PL20,1) AND ZTJD10=1,HIGH*1.02,'⑸'),COLOR0000FF;
  34. DRAWTEXT(EN2 AND DTJZ10=1,LOW*0.94,'【A】'),COLOR00FF00;
  35. DRAWTEXT(EX2 AND DTJD10=2,HIGH*1.05,'【B】'),COLOR00FF00;
  36. DRAWTEXT(EN3 AND ZTJZ10=1,LOW*0.94,'【C】'),COLOR00FF00;
  37. DRAWTEXT(EX2 AND PL20>REF(PL20,1) AND ZTJD10=1,HIGH*1.04,'①'),COLOR00FFFF;
  38. DRAWTEXT(EN2 AND PL20>REF(PL20,1) AND ZTJZ10=2,LOW*0.96,'②'),COLOR00FFFF;
  39. DRAWTEXT(EX2 AND PL20>REF(PL20,1) AND ZTJD10=2 OR (ZTJD10=0 OR ZTJD10=2) AND EX2,HIGH*1.04,'③'),COLOR00FFFF;
  40. DRAWTEXT(EN2 AND PL20>REF(PL20,1) AND ZTJZ10=3,LOW*0.96,'④'),COLOR00FFFF;
复制代码


同样是主图,带未来函数
1-59.png

回复 支持 反对

使用道具 举报

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

本版积分规则

手机版| 感谢您的支持,本条链接自定义

Powered by Discuz! X3.1 © 2001-2015 Comsenz Inc. GMT+8, 2019-8-18 09:07 , Processed in 0.030650 second(s), 9 queries , Eaccelerator On.

135股票论坛 ( 京ICP备14020393号-1 ) QQ
快速回复 返回顶部 返回列表