通达信春江花月夜副图 源码

[复制链接]
查看191 | 回复0 | 2022-7-24 09:01:12 | 显示全部楼层 |阅读模式

 通达信春江花月夜副图 源码

{牛牛指标网提供:www.tdx001.com}

复制内容到剪贴板
  1. 用法:春江花月夜   小花买入,红帆买入,春雪卖出。   
  2. STICKLINE(1=1,0,-MACD,4,0),COLOR333300;   
  3. DI:=EMA(C,3)-EMA(C,13);   
  4. DE:=EMA(DI,9);   
  5. MACD:=2*(DI-DE)*10;   
  6. DI2:=EMA(C,5)-EMA(C,26);   
  7. DEA2:=EMA(DI2,9);   
  8. MACD2:=2*(DI2-DEA2)*10;   
  9. DIFF3:=EMA(C,7)-EMA(C,89);   
  10. DEA3:=EMA(DIFF3,21);   
  11. MACD3:=2*(DIFF3-DEA3)*10;   
  12. MMACD5:=MA(MACD3,3);   
  13. STICKLINE(1=1,0,REFDATE(LLV(-MACD3,1000),DATE),4,0),COLOR333300;   
  14. IF(MACD3<0,-MACD3,DRAWNULL)LINETHICK4,COLOR646400;   
  15. STICKLINE(MACD3<0,0,-MACD3,4,0),LINETHICK4,COLOR646400;   
  16. IF(MACD2<0,-MACD2,DRAWNULL)LINETHICK4,COLOR333333;   
  17. STICKLINE(MACD2<0,0,-MACD2,4,0),COLOR333333;   
  18. IF(MACD<0,-MACD,DRAWNULL)LINETHICK4,COLOR004444;   
  19. STICKLINE(MACD<0,0,-MACD,4,0),COLOR004444;   
  20.   
  21. IF(MACD3>=0,MACD3,DRAWNULL)LINETHICK4,COLOR00CC00;   
  22. STICKLINE(MACD3>=0,0,MACD3,4,0),COLOR00CC00;   
  23. IF(MACD2>=0,MACD2,DRAWNULL)LINETHICK4,COLOR009900;   
  24. STICKLINE(MACD2>=0,0,MACD2,4,0),COLOR009900;   
  25. STICKLINE(MACD>=0,0,MACD,4,0),COLOR006600;   
  26.   
  27. STICKLINE(MACD3>=0,0,-MACD3*0.8,4,0),COLOR666600;   
  28. STICKLINE(MACD2>=0,0,-MACD2*0.8,4,0),COLOR663300;   
  29. STICKLINE(MACD>=0,0,-MACD*0.8,4,0),COLOR333300;   
  30.   
  31. 小花:IF(MACD>=0 AND REF(MACD,1)<0,1,DRAWNULL),CROSSDOT,LINETHICK6,COLORFF33FF;   
  32. IF(MACD>=0 AND REF(MACD,1)<0,1,DRAWNULL),POINTDOT,LINETHICK4,COLOR00CCFF;    
  33. 春雪:IF(CROSS(MMACD5,MACD3),MACD3*1.2,DRAWNULL),CROSSDOT,   
  34.         LINETHICK2,COLORFFFFFF;    
  35. 红帆:STICKLINE(CROSS(MACD3,MMACD5) AND MACD3<0,MACD3*1.1,MACD3*1.1-0.5,16,1),COLORFFFFFF;    
  36. STICKLINE(CROSS(MACD3,MMACD5) AND MACD3<0,MACD3*1.1+3,MACD3*1.1+0.3,8,0),   
  37.        COLOR0000FF;    
  38. STICKLINE(CROSS(MACD3,MMACD5) AND MACD3<0,MACD3*1.1,MACD3*1.1+3.5,0.001,1),   
  39.        COLORFFFFFF;   
  40. IF(MACD>=0,-9,DRAWNULL),COLORFFFF00,POINTDOT;   
  41. IF(MACD2>=0,-8,DRAWNULL),COLORFFFF00,POINTDOT;   
  42. IF(C>0,-7,-7),COLORFFFF00,POINTDOT;   
  43. IF(MACD3>0,-6,DRAWNULL),COLORFFFF00,POINTDOT;   
  44. IF(MACD3>0,-5,-5),COLORFFFF00,POINTDOT;   
  45. IF(C>0,-4,-4),COLORFFFF00,POINTDOT;   
  46. IF(MACD3>0,-3,DRAWNULL),COLORFFFF00,POINTDOT;   
  47. IF(MACD3>0,-2,DRAWNULL),COLORFFFF00,POINTDOT;   
  48. IF(C>0,-1,-1),COLORFFFF00,POINTDOT;   

731277247.png

731277247.png

回复

使用道具 举报

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

本版积分规则