通达信一目了然无未来函数

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

通达信一目了然无未来函数

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

  1. RSV:=(CLOSE-LLV(LOW,9))/(HHV(HIGH,9)-LLV(LOW,9))*100;   
  2. K:=SMA(RSV,3,1),COLORWHITE;   
  3. D:=SMA(K,3,1),COLORYELLOW;   
  4. J:=3*K-2*D,COLORFF00FF;   
  5. A:=250;   
  6. DIFF:=(EMA(CLOSE,12) - EMA(CLOSE,26));   
  7. DEA:=EMA(DIFF,9),COLORBLUE,LINETHICK0;   
  8. MACD:=2*(DIFF-DEA);   
  9. MM:=IF(MACD< 0,MACD,0);    
  10. JJ:=MM> REF(MM,1);    
  11. ZZ:=REF(JJ,1)=1;    
  12. 准备:=(JJ AND ZZ)*DEA;    
  13. STICKLINE(准备=DEA,1,-1,2,1),COLORFFFF00;   
  14. JH:=HHV(MAX(K,MAX(D,J)),A);   
  15. DH:=HHV(MAX(DIFF,DEA),A);   
  16. SH:=INTPART(JH/DH)/2;   
  17. DIFF50:=SH*DIFF+50,COLORFFFF00;   
  18. DEA50:=SH*DEA+50,COLORBLUE;   
  19. STICKLINE(DIFF50>DEA50,0,1.5*(DIFF50-DEA50),0,0),COLORRED;    
  20. STICKLINE(DIFF50<DEA50,0,1.5*(DIFF50-DEA50),0,0),COLORFFFF00;   
  21. 红柱:IF(1.5*(DIFF50-DEA50)>REF(1.5*(DIFF50-DEA50),1),1.5*(DIFF50-DEA50),0),   
  22. STICK,COLORLICYAN;   
  23. 绿柱:IF(1.5*(DIFF50-DEA50)<REF(1.5*(DIFF50-DEA50),1),   
  24. 1.5*(DIFF50-DEA50),0),STICK,COLORGREEN;   
  25. 缩头:=IF(1.5*(DIFF50-DEA50)>0 AND REF(1.5*(DIFF50-DEA50),1)>REF(1.5*(DIFF50-DEA50),2) AND 1.5*(DIFF50-DEA50)< REF(1.5*(DIFF50-DEA50),1),1,0);   
  26. 缩脚:=IF(1.5*(DIFF50-DEA50)<0 AND REF(1.5*(DIFF50-DEA50),1)< REF(1.5*(DIFF50-DEA50),2) AND 1.5*(DIFF50-DEA50)>REF(1.5*(DIFF50-DEA50),1),1,0);   
  27. 杀多:=IF(1.5*(DIFF50-DEA50)<0 AND REF(1.5*(DIFF50-DEA50),1)> REF(1.5*(DIFF50-DEA50),2) AND 1.5*(DIFF50-DEA50)<REF(1.5*(DIFF50-DEA50),1),1,0);   
  28. 诱空:=IF(1.5*(DIFF50-DEA50)>0 AND REF(1.5*(DIFF50-DEA50),1)< REF(1.5*(DIFF50-DEA50),2) AND 1.5*(DIFF50-DEA50)>REF(1.5*(DIFF50-DEA50),1),1,0);   
  29. 阻力:=IF(CROSS(C,MA(C,20)) OR CROSS(C,MA(C,60)),1,0);   
  30. DRAWTEXT(FILTER(杀多,3) AND 杀多,1.5*(DIFF50-DEA50),'杀多'),COLORFF00FF;   
  31. DRAWTEXT(FILTER(缩头,3) AND 缩头,1.5*(DIFF50-DEA50)+0.2,'卖'),COLORFF00FF;   
  32. DRAWTEXT(FILTER(诱空,3) AND 诱空,1.5*(DIFF50-DEA50),'洗盘'),COLOR00FF00;   
  33. DRAWTEXT(FILTER(缩脚,3) AND 缩脚,1.5*(DIFF50-DEA50)-0.2,'买'),COLOR00FF00;   
  34. DRAWTEXT(FILTER(阻力,16) AND 1.5*(DIFF50-DEA50)>=0,1.5*(DIFF50-DEA50)+0.01,'¤阻力'),COLOR00FFFF;   
  35. VRA:=REF(CLOSE,1);    
  36. VRB:=SMA(MAX(CLOSE-VRA,0),6,1)/SMA(ABS(CLOSE-VRA),6,1)*100;    
  37. VRC:=(2*CLOSE+HIGH+LOW)/4;    
  38. VR0:=LLV(LOW,34);    
  39. VR1:=HHV(HIGH,34);    
  40. VR2:=EMA((VRC-VR0)/(VR1-VR0)*100,6);    
  41. VR3:=EMA(0.667*REF(VR2,1)+0.333*VR2,4);     
  42. VA1:=(REF(HIGH,1)+REF(LOW,1))/2;    
  43. VA2:=MA(CLOSE,20)+2*STD(CLOSE,20);    
  44. VA3:=REF(CLOSE,1);    
  45. VA4:=SMA(MAX(CLOSE-VA3,0),7,1)/SMA(ABS(CLOSE-VA3),7,1)*100;    
  46. VA5:=CROSS(79,VA4);    
  47. VA6:=FILTER(VA5,4);    
  48. VVD:=MA(CLOSE,80)-MA(CLOSE,10)/3;    
  49. VA7:=3*SMA((CLOSE-LLV(LOW,27))/(HHV(HIGH,27)-LLV(LOW,27))*100,5,1)-2*SMA(SMA((CLOSE-LLV(LOW,27))/(HHV(HIGH,27)-LLV(LOW,27))*100,5,1),3,1);    
  50. X1:=CROSS(VA1,VA2) OR VA6;    
  51. X2:=CROSS(84,VRB);    
  52. STICKLINE(X1 OR X2,1.5*(DIFF50-DEA50)*1.05,1.5*(DIFF50-DEA50)*1.08,3,0);    
  53. Y1:=IF(COUNT(CLOSE<REF(CLOSE,1),8)/8>0.3 AND COUNT(VA2>VA3,3) AND REF(LOW,1)=LLV(LOW,120) AND CLOSE>OPEN,1,0);    
  54. Y2:=IF(CLOSE<VVD AND VOL/240>MA(VOL,5)/240 AND CLOSE>REF(CLOSE,1)*1.08 AND CLOSE<MA(CLOSE,13)*1.3,1,0);    
  55. Y3:=CROSS(VA7,10);    
  56. Y4:=IF(COUNT(CLOSE<REF(CLOSE,1),8)/8>0.3 AND COUNT(VR2>VR3,3) AND REF(LOW,1)=LLV(LOW,120) AND CLOSE>OPEN,1,0);    
  57. STICKLINE(Y1 OR Y2 OR Y3 OR Y4,1.5*(DIFF50-DEA50)*0.90,1.5*(DIFF50-DEA50)*0.99,3,0);   
  58. DD:=C=HHV(C,180);    
  59. EE:=DEA< REF(DEA,1) AND REF(DEA< REF(DEA,1),1)=1;    
  60. CC:=C> REF(C,1) AND REF(C> REF(C,1),1)=1;    
  61. 上升背离:(CC AND EE)*1.5*(DIFF50-DEA50),LINETHICK2,COLORWHITE;    
  62. 顶背离:(DD AND EE AND DEA< HHV(DEA,180))*3*ABS(DIFF50-DEA50),STICK,LINETHICK3,COLORGREEN;    
  63. FF:=C=LLV(C,180);    
  64. GG:= DEA> REF(DEA,1) AND REF(DEA> REF(DEA,1),1)=1;    
  65. LL:=C< REF(C,1) AND REF(C< REF(C,1),1)=1;    
  66. 下降背离:(LL AND GG)*1.5*(DIFF50-DEA50),LINETHICK2,COLORYELLOW;    
  67. 底背离:(FF AND GG AND DEA> LLV(DEA,180))*3*(DIFF50-DEA50),STICK,LINETHICK3,COLORRED;  

 

821577485.gif

821577485.gif

回复

使用道具 举报

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

本版积分规则