通达信极品DMIA副图 源码

[复制链接]
查看88 | 回复0 | 2022-7-24 08:55:49 | 显示全部楼层 |阅读模式

 通达信极品DMIA副图 源码

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

复制内容到剪贴板
  1. {DMIA}   
  2. ATRA := SMA(MAX(MAX(HIGH-LOW,ABS(HIGH-REF(CLOSE,1))),ABS(LOW-REF(CLOSE,1))),6,1);   
  3. HD := HIGH-REF(HIGH,1);   
  4. LD := REF(LOW,1)-LOW;   
  5. DMP:= SMA(IF(HD>0 AND HD>LD,HD,0),6,1);   
  6. DMM:= SMA(IF(LD>0 AND LD>HD,LD,0),6,1);   
  7. PDI:= DMP*100/ATRA;   
  8. MDI:= DMM*100/ATRA;   
  9. ADX: SMA(ABS(MDI-PDI)/(MDI+PDI)*100,6,1),LINETHICK2;   
  10. 涨趋势:IF((MDI-PDI)/(MDI+PDI)<0,10,DRAWNULL),COLOR8899DD,NODRAW;   
  11. 跌趋势:IF((MDI-PDI)/(MDI+PDI)>=0,10,ADX),COLORDD9988,NODRAW;   
  12.   
  13. DRAWBAND(ADX,RGB(100,80,110),10,0);   
  14. DRAWBAND(跌趋势,RGB(200,120,230),涨趋势,RGB(180,124,204));   
  15. 对比线:=(ADX+REF(ADX,6))/2;   
  16. STICKLINE(CROSS(ADX,30),ADX,30,3,0),COLOR00FFFF,LINETHICK5;   
  17. STICKLINE(C>0,80,80,1.5,0),COLORFFFFFF;   
  18. STICKLINE(C>0,50,50,1.5,0),COLOR00FFFF;   
  19. STICKLINE(C>0,20,20,1.5,0),COLORFF00FF;   
  20. WW1:=SMA(((CLOSE-LLV(CLOSE,10))/(HHV(HIGH,10)-LLV(LOW,10))),3,1);   
  21. WW2:=SMA(((WW1-LLV(WW1,3))/(HHV(WW1,3)-LLV(WW1,3))),3,1)*100;   
  22. ZZ:=SMA(((VOL-LLV(VOL,10))/(HHV(VOL,10)-LLV(VOL,10))),3,1);   
  23. ZZ1:=SMA(((ZZ-LLV(ZZ,3))/(HHV(ZZ,3)-LLV(ZZ,3))),3,1)*100;   
  24. 快线:=EMA(WW2,1),COLORBLUE,LINETHICK2;   
  25. 慢线:=EMA(快线,2),COLORGREEN,LINETHICK2;   
  26. 量快:=EMA(ZZ1,1)COLORWHITE,LINETHICK2;   
  27. 量慢:=EMA(量快,2),COLORWHITE,LINETHICK2;   
  28. AA1:=SMA(((CLOSE-LLV(CLOSE,13))/(HHV(HIGH,13)-LLV(LOW,13))),3,1);   
  29. 价线:=SMA(((AA1-LLV(AA1,4))/(HHV(AA1,4)-LLV(AA1,4))),3,1)*100;   
  30. 周线:MA(价线,5),COLORMAGENTA,LINETHICK1;   
  31. BB1:=SMA(((VOL-LLV(VOL,13))/(HHV(VOL,13)-LLV(VOL,13))),3,1);   
  32. 量线:SMA(((BB1-LLV(BB1,4))/(HHV(BB1,4)-LLV(BB1,4))),3,1)*100,NODRAW;   
  33. 周量:MA(量线,5),COLORYELLOW,LINETHICK1;   
  34. 月线:=MA(价线,22),COLORRED,LINETHICK0;   
  35. 月量:=MA(量线,22),COLORYELLOW,LINETHICK0;   
  36.   
  37. 快线2:=EMA(周线,1),COLORBLUE,LINETHICK2;   
  38. 慢线2:=EMA(快线2,2),COLORGREEN,LINETHICK2;   
  39. 量快2:=EMA(周量,1);   
  40. 量慢2:=EMA(量快2,2),COLORWHITE,LINETHICK2;   
  41. DRAWTEXT(FILTER(快线>=95 AND 慢线>=95 AND  周线>=90  OR 周量>=90,5),85,'减');   
  42. 看色块→:30,COLORRED;   
  43. IF(周线>=REF(周线,1),周线,DRAWNULL),COLORMAGENTA,LINETHICK2;   
  44. IF(周线>=REF(周线,1) AND 月线>=REF(月线,1),周线,DRAWNULL),COLORRED,LINETHICK2;   
  45. IF(周线<REF(周线,1),周线,DRAWNULL),COLORGREEN,LINETHICK1;   
  46. IF(周量>=REF(周量,1),周量,DRAWNULL),COLORYELLOW,LINETHICK2;   
  47. IF(周量<REF(周量,1),周量,DRAWNULL),COLORGREEN,LINETHICK1;   
  48.   
  49. IF(CROSS(快线2,慢线2),慢线2,DRAWNULL),COLORRED,LINETHICK3,CIRCLEDOT;   
  50. IF(CROSS(慢线2,快线2),快线2,DRAWNULL),COLORGREEN,LINETHICK3,CIRCLEDOT;   
  51. IF(CROSS(量快2,量慢2),量慢2,DRAWNULL),COLORRED,LINETHICK2,CIRCLEDOT;   
  52. IF(CROSS(量慢2,量快2),量快2,DRAWNULL),COLORLIGREEN,LINETHICK3,CIRCLEDOT;  

997496795.gif

997496795.gif

回复

使用道具 举报

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

本版积分规则