通达信逃跌KD副图公式

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

 

C/C++ Code复制内容到剪贴板
  1. VN1:=7;N2:=27;   
  2. RSV:=(CLOSE-LLV(LOW,N1))/(HHV(HIGH,N1)-LLV(LOW,N1))*100;   
  3. 短K:SMA(RSV,3,1),COLOR8060FF,LINETHICK0;   
  4. 短D:SMA(短K,3,1),COLORCCDD33,LINETHICK0;   
  5. RSV1:=(CLOSE-LLV(LOW,N2))/(HHV(HIGH,N2)-LLV(LOW,N2))*100;   
  6. 中K:=SMA(RSV1,5,1),COLOR0000EF,LINETHICK0;   
  7. 中D:=SMA(中K,10,1),COLOR008000,LINETHICK0;   
  8.   
  9. STICKLINE(中K>中D,中K,中D,2,0),COLOR0000EF;   
  10. STICKLINE(中K<=中D,中K,中D,2,0),COLOR00FF00;   
  11. STICKLINE((中K>中D AND (中K<=REF(中K,1))),中K,中D,1.5,0),COLORFF3000;   
  12. STICKLINE((中K<=中D AND (中K>=REF(中K,1))),中K,中D,1.5,0),COLOR00FFFF;   
  13. STICKLINE(短K>短D,短K,短D,3.5,1),COLOR8080FF;   
  14. STICKLINE(短K<=短D,短K,短D,3.5,1),COLORCCDD33;   
  15. STICKLINE((短K<=短D AND (短K>=REF(短K,1))),短K,短D,2.1,0),COLORFFFFFF;   
  16. STICKLINE((短K>短D AND (短K<=REF(短K,1))),短K,短D,2,0),COLORFFA2AF;   
  17. {五指山万泉河}   
  18. M1:= (7*SMA((CLOSE-LLV(LOW,27))/(HHV(HIGH,27)-LLV(LOW,27))*30,4,1)-3*   
  19.      SMA(SMA((CLOSE-LLV(LOW,27))/(HHV(HIGH,27)-LLV(LOW,27))*30,4,1),3,1)-   
  20.     SMA(SMA(SMA((CLOSE-LLV(LOW,27))/(HHV(HIGH,27)-LLV(LOW,27))*30,4,1),3,1),   
  21.     2,1)),COLORWHITE;   
  22. 山:EMA((CLOSE-LLV(CLOSE,55))/(HHV(CLOSE,55)-LLV(LOW,55))*100,5),   
  23.       COLORFF00FF,LINETHICK3;{五指山}   
  24. 山1:IF(山>REF(山,1),山,DRAWNULL),COLORFFFFFF,LINETHICK3;   
  25. 河: EMA(MA(M1,5),3),LINETHICK3,COLOR00BFFF;{万泉河}   
  26. 河1:IF(河>REF(河,1),河,DRAWNULL),COLORFFFF00,LINETHICK3;   
  27. {逃过最近史上三次大跌的指标};   
  28. 清仓:95,COLORGREEN;   
  29. 减仓:90,COLORCYAN;   
  30. 警觉:80,COLORFF90FF;   
  31. EE:10,COLORRED;   
  32. DRAWTEXT(ISLASTBAR,清仓-2,'清仓   .');   
  33. DRAWTEXT(ISLASTBAR,减仓-2,'减仓   .');   
  34. DRAWTEXT(ISLASTBAR,警觉-2,'警觉   .');   
  35. RFF4060;   

720499179.jpg

720499179.jpg

回复

使用道具 举报

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

本版积分规则