通达信山水画副图指标原码

[复制链接]
查看37 | 回复0 | 2022-7-8 13:49:29 | 显示全部楼层 |阅读模式

 通达信山水画副图指标原码

C/C++ www.gszb.com 股票公式指标网提供 Code复制以下内容到公式管理器
  1. STICKLINE(1=1,0,-MACD,4,0),COLOR333300;   
  2. DI:=EMA(C,3)-EMA(C,13);   
  3. DE:=EMA(DI,9);   
  4. MACD:=2*(DI-DE)*10;   
  5. DI2:=EMA(C,5)-EMA(C,26);   
  6. DEA2:=EMA(DI2,9);   
  7. MACD2:=2*(DI2-DEA2)*10;   
  8. DIFF3:=EMA(C,7)-EMA(C,89);   
  9. DEA3:=EMA(DIFF3,21);   
  10. MACD3:=2*(DIFF3-DEA3)*10;   
  11. MMACD5:=MA(MACD3,3);   
  12. STICKLINE(1=1,0,REFDATE(LLV(-MACD3,1000),DATE),4,0),COLOR333300;   
  13. IF(MACD3<0,-MACD3,DRAWNULL)LINETHICK4,COLOR646400;   
  14. STICKLINE(MACD3<0,0,-MACD3,4,0),LINETHICK4,COLOR646400;   
  15. IF(MACD2<0,-MACD2,DRAWNULL)LINETHICK4,COLOR333333;   
  16. STICKLINE(MACD2<0,0,-MACD2,4,0),COLOR333333;   
  17. IF(MACD<0,-MACD,DRAWNULL)LINETHICK4,COLOR004444;   
  18. STICKLINE(MACD<0,0,-MACD,4,0),COLOR004444;   
  19.   
  20. IF(MACD3>=0,MACD3,DRAWNULL)LINETHICK4,COLOR00CC00;   
  21. STICKLINE(MACD3>=0,0,MACD3,4,0),COLOR00CC00;   
  22. IF(MACD2>=0,MACD2,DRAWNULL)LINETHICK4,COLOR009900;   
  23. STICKLINE(MACD2>=0,0,MACD2,4,0),COLOR009900;   
  24. STICKLINE(MACD>=0,0,MACD,4,0),COLOR006600;   
  25.   
  26. STICKLINE(MACD3>=0,0,-MACD3*0.8,4,0),COLOR666600;   
  27. STICKLINE(MACD2>=0,0,-MACD2*0.8,4,0),COLOR663300;   
  28. STICKLINE(MACD>=0,0,-MACD*0.8,4,0),COLOR333300;   
  29.   
  30. 小花:IF(MACD>=0 AND REF(MACD,1)<0,1,DRAWNULL),CROSSDOT,LINETHICK6,COLORFF33FF;   
  31. IF(MACD>=0 AND REF(MACD,1)<0,1,DRAWNULL),POINTDOT,LINETHICK4,COLOR00CCFF;    
  32. 春雪:IF(CROSS(MMACD5,MACD3),MACD3*1.2,DRAWNULL),CROSSDOT,   
  33.         LINETHICK2,COLORFFFFFF;    
  34. 红帆:STICKLINE(CROSS(MACD3,MMACD5) AND MACD3<0,MACD3*1.1,MACD3*1.1-0.5,16,1),COLORFFFFFF;    
  35. STICKLINE(CROSS(MACD3,MMACD5) AND MACD3<0,MACD3*1.1+3,MACD3*1.1+0.3,8,0),   
  36.        COLOR0000FF;    
  37. STICKLINE(CROSS(MACD3,MMACD5) AND MACD3<0,MACD3*1.1,MACD3*1.1+3.5,0.001,1),   
  38.        COLORFFFFFF;   
  39. IF(MACD>=0,-9,DRAWNULL),COLORFFFF00,POINTDOT;   
  40. IF(MACD2>=0,-8,DRAWNULL),COLORFFFF00,POINTDOT;   
  41. IF(C>0,-7,-7),COLORFFFF00,POINTDOT;   
  42. IF(MACD3>0,-6,DRAWNULL),COLORFFFF00,POINTDOT;   
  43. IF(MACD3>0,-5,-5),COLORFFFF00,POINTDOT;   
  44. IF(C>0,-4,-4),COLORFFFF00,POINTDOT;   
  45. IF(MACD3>0,-3,DRAWNULL),COLORFFFF00,POINTDOT;   
  46. IF(MACD3>0,-2,DRAWNULL),COLORFFFF00,POINTDOT;   
  47. IF(C>0,-1,-1),COLORFFFF00,POINTDOT;    

 

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

4A85818296.jpg

4A85818296.jpg

回复

使用道具 举报

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

本版积分规则