通达信主力散户走势副图 源码

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

通达信主力散户走势副图 源码

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

复制内容到剪贴板
  1. {主力散户走势}   
  2. STICKLINE(C,90,90,0.9,0.9),COLOR883333;   
  3. STICKLINE(C,10,10,0.9,0.9),COLOR883333;   
  4. 散户:= 100*(HHV(HIGH,60)-CLOSE)/(HHV(HIGH,60)-LLV(LOW,60));   
  5. RSV:=(CLOSE-LLV(LOW,30))/(HHV(HIGH,30)-LLV(LOW,30))*100;   
  6. RSV1:=(C-MA(C,4))/MA(C,4)*100;   
  7. VAR2:=REF(LOW,1);   
  8. VAR3:=SMA(ABS(LOW-VAR2),3,1)/SMA(MAX(LOW-VAR2,0),3,1)*100;   
  9. VAR4:=EMA(IF(CLOSE*1.3,VAR3*10,VAR3/10),3);   
  10. VAR5:=LLV(LOW,30);   
  11. VAR6:=HHV(VAR4,30);   
  12. VAR7:=IF(MA(CLOSE,58),1,0);   
  13. VAR8:=EMA(IF(LOW<=VAR5,(VAR4+VAR6*2)/2,0),3)/618*VAR7;   
  14. VAR9:=IF(VAR8>100,100,VAR8);   
  15. K:=SMA(RSV,5,1);   
  16. D:=SMA(K,3,1);   
  17. J:=3*K-2*D;   
  18. 主力:=EMA(J,6),COLORYELLOW;   
  19. AA3:=(HHV(HIGH,21)-CLOSE)/(HHV(HIGH,21)-LLV(LOW,21))*100-10;   
  20. AA4:=(CLOSE-LLV(LOW,21))/(HHV(HIGH,21)-LLV(LOW,21))*100;   
  21. AA5:=SMA(AA4,13,8);   
  22. 走势:=CEILING(SMA(AA5,13,8)),COLORRED,LINETHICK2;   
  23. AA6:=SMA(AA3,21,8);   
  24. 买观注: STICKLINE(走势-AA6<-65,0,7,15,1);   
  25. DRAWICON(FILTER(J>REF(J,1)AND 走势>=REF(走势,1)AND 走势<25 ,5),走势,1);   
  26. 卖观注: STICKLINE(走势-AA6>85,98,90,15,1),COLORFFFF00;   
  27. DRAWICON(FILTER(J<REF(J,1)AND 走势<=REF(走势,1)AND J>85 ,5),J,2);   
  28. 吸筹:STICKLINE(VAR9>-120,50,50+(VAR9/2),8,1),COLORRED;   
  29. CDMA:EMA(EMA(RSV1,7),7)*8,NODRAW,COLORWHITE;   
  30. STICKLINE(CDMA>=0 AND CDMA>=REF(CDMA,1),50,50+CDMA,2.5,0),COLORDD55CC;   
  31. STICKLINE(CDMA>=0 AND CDMA<=REF(CDMA,1),50,50+CDMA,2.5,1),COLORDD55CC;   
  32. STICKLINE(CDMA<=0 AND CDMA>=REF(CDMA,1),50,50+CDMA,2.5,1),COLOR00D080;   
  33. STICKLINE(CDMA<=0 AND CDMA<=REF(CDMA,1),50,50+CDMA,2.5,0),COLOR00D080;   
  34. 快线:(CLOSE-LLV(LOW,9))/(HHV(HIGH,9)-LLV(LOW,9))*100,LINETHICK2,COLOR333333;   
  35. 散户线:散户,COLORFFFFFF,LINETHICK1;   
  36. 主力线:主力,COLORYELLOW;   
  37. 走势线:走势,COLORRED,LINETHICK3;   
  38. DRAWTEXT(ISLASTBAR,散户线,' ←散户线'),COLORFFFFFF;   
  39. DRAWTEXT(ISLASTBAR,主力线,' ←主力线'),COLORYELLOW;   
  40. DRAWTEXT(ISLASTBAR,走势线,' ←走势线'),COLORRED;   
  41. 关注低买:IF(90>散户 AND CROSS(90,散户) ,98,0),COLORMAGENTA,STICK,NODRAW;   
  42. {高抛低吸:IF(散户<10 AND CROSS(10,散户) ,20,0),COLORGREEN,STICK,NODRAW;}    
  43. 风险:COUNT("RSI.RSI1"(6,12,24)>80,3)=3 AND  CROSS("RSI.RSI2"(6,12,24),79.5),NODRAW;   
  44. 观注顶:(散户<8 AND 主力>90 AND 走势>90 AND CDMA<=REF(CDMA,1)AND 散户线),COLORGREEN,NODRAW;   
  45. DRAWTEXT(观注顶,-1,'◆'),COLORGREEN;   
  46. DRAWTEXT(风险,95,'←风险'),COLOR00FFFF;   
  47. STICKLINE(关注低买,0,100,0,-1),COLORMAGENTA;   
  48. {STICKLINE(高抛低吸,0,100,0,-1),COLORGREEN;};   
  49.   

截图: 

5471132423.png

5471132423.png

回复

使用道具 举报

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

本版积分规则