通达信稳赢公式源码

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

 通达信稳赢公式源码

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

复制内容到剪贴板
  1. {稳赢: N(1,100,12)M(1,100,20)}   
  2. RSV:=(CLOSE-LLV(LOW,9))/(HHV(HIGH,9)-LLV(LOW,9))*100;   
  3. K:=SMA(RSV,3,1);   
  4. D:=SMA(K,3,1);   
  5. J:=3*K-2*D;   
  6. STICKLINE(REF(J,7)<0 AND J>1,10,0,10,0),COLOR00FF00;   
  7. VAR1:=(CLOSE-LLV(LOW,45))/(HHV(HIGH,45)-LLV(LOW,45))*100;   
  8. VAR2:=SMA(VAR1,3,1);   
  9. VAR3:=SMA(VAR2,3,1);   
  10. 贵:=N,COLOR00FF00;   
  11. VAR4:=3*SMA((CLOSE-LLV(LOW,27))/(HHV(HIGH,27)-LLV(LOW,27))*100,5,1)-2*SMA(SMA((CLOSE-   
  12. LLV(LOW,27))/(HHV(HIGH,27)-LLV(LOW,27))*100,5,1),3,1);   
  13. VAR5:=CROSS(VAR4,10) AND VAR3<N;   
  14. 抄底:IF(VAR5,90,1),COLORRED;   
  15. DRAWICON(VAR5,65,1);   
  16. DRAWTEXT(VAR5,30,'抄底'),COLORYELLOW;   
  17. 备钱:IF(CROSS(10,VAR4),40,1),COLORFF00FF;   
  18. DRAWICON(CROSS(10,VAR4),45,1);   
  19. DRAWTEXT(IF(CROSS(10,VAR4),1,0),20,'$备钱'),COLORWHITE;   
  20. 危机线: 80,COLORRED,POINTDOT,LINETHICK2;   
  21. 中间线: 50,COLORFFCCCC,POINTDOT,LINETHICK2;   
  22. 安全线: 10,COLORFF00FF,POINTDOT,LINETHICK2;   
  23. VAR6:=(2*CLOSE+HIGH+LOW)/4;   
  24. VAR7:=LLV(LOW,M);   
  25. VAR8:=HHV(HIGH,M);   
  26. VAR9:=EMA((VAR6-VAR7)/(VAR8-VAR7)*100,13);   
  27. VARA:=EMA(0.667*REF(VAR9,1)+0.333*VAR9,2);   
  28. 战术线: VAR9,COLORYELLOW,LINETHICK2;   
  29. 战略线: EMA(0.382*REF(VAR9,2)+0.618*VAR9,12),COLORBLUE;   
  30. STICKLINE(VAR9>VARA,VAR9,VARA,6,0),COLORRED;   
  31. STICKLINE(VAR9<=VARA,VAR9,VARA,6,0),COLOR00FF00;   
  32. VARB:=SUM(IF(CLOSE>REF(CLOSE,7),VOL,IF(CLOSE<REF(CLOSE,7),0-VOL,0)),0);   
  33. VARC:=SUMBARS(VOL,CAPITAL);   
  34. VARD:=IF(CLOSE>LLV(CLOSE,VARC),1,-1);   
  35. VARE:=IF(VARB>LLV(VARB,VARC),1,-1);   
  36. VARF:=VARD*VARE;   
  37. VAR10:=IF(VARF=-1,1,0);   
  38. 关注:IF(VAR10 AND CLOSE=LLV(CLOSE,20) AND VAR3<N,70,1),COLORFFCC66;   
  39. A1:=EMA(CLOSE,5);   
  40. A2:=EMA(CLOSE,10);   
  41. A3:=EMA(CLOSE,20);   
  42. A4:=EMA(CLOSE,40);   
  43. A5:=EMA(CLOSE,60);   
  44. {上穿月线:IF({CROSS(A1,A2) AND }{CROSS(C,A3),50,0),COLORYELLOW,LINETHICK2;}   
  45. {上穿季线:IF({CROSS(A3,A4) AND }{CROSS(C,A5),50,0),COLORRED,LINETHICK2;}   
  46. I:=MA(BARSLAST(HIGH=HHV(HIGH,16))*IF(CLOSE<OPEN,VOL,1),3);   
  47. R:=MA(BARSLAST(LOW=LLV(LOW,18))*IF(CLOSE>OPEN,VOL,1),4);    
  48. 短线逃顶:=IF(I,0,1),COLORGREEN;    
  49. DRAWICON(短线逃顶,90,2);  

补个图:

F97516583.png

F97516583.png

回复

使用道具 举报

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

本版积分规则