通达信小散看主图源码

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

通达信小散看主图源码

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

复制内容到剪贴板
  1. {N=1,100,3; M1=1,100,20; M2=1,100,20}   
  2.   
  3. MID:((1+M1/100)*MA(CLOSE,N)+(1-M2/100)*MA(CLOSE,N))/2,COLORFFFFFF;   
  4. RSV:=((HHV(HIGH,13)-CLOSE)/(HHV(HIGH,13)-LLV(LOW,13)))*(100);   
  5. LWR1:=SMA(RSV,3,1);   
  6. LWR2:=SMA(LWR1,5,1);   
  7. STICKLINE((LWR1>=LWR2),HIGH,LOW,0.05,0),COLORFFDDC0;   
  8. STICKLINE((LWR1>=LWR2),OPEN,CLOSE,2,0),COLORGREEN;   
  9. STICKLINE((LWR1<LWR2),HIGH,LOW,0.05,0),COLOR0000FF;   
  10. STICKLINE((LWR1<LWR2),OPEN,CLOSE,2,1),COLOR0000FF;   
  11. VAR1AA:=((2)*(CLOSE)+OPEN+HIGH+LOW)/(5);   
  12. VAR2AA:=VOL;   
  13. 上升:(SUM((VAR1AA)*(VAR2AA),8))/(SUM(VAR2AA,8)),COLORRED;   
  14. 下降:LLV(上升,8),COLOR00FF00;   
  15. VAR3AA:=IF((CLOSE>REF(CLOSE,1)),88,0);   
  16. VAR4AA:=IF(((CLOSE)/(REF(CLOSE,1))>1.05) AND ((HIGH)/(CLOSE)<1.01) AND (VAR3AA>0),91,0);   
  17. DRAWTEXT(FILTER((VAR4AA>90),45),(LOW)*(0.94999998),'大胆搏 '),COLOR00FFFF;   
  18. DRAWTEXT(FILTER((VAR4AA>90),35),(LOW)*(0.99000001),'★'),COLOR00FFFF;   
  19. A1AA:=9;   
  20. A2AA:=(REF(CLOSE,A1AA+1)<CLOSE);   
  21. DRAWTEXT(FILTER((A2AA>-0.5),84),(HIGH)*(1.05),'小心'),COLORFFFFFF;   
  22. VAR1:=REF(CLOSE,1);   
  23. VAR2:=MA(CLOSE,5);   
  24. VAR3:=SMA(MAX(CLOSE-VAR1,0),6,1)/SMA(ABS(CLOSE-VAR1),6,1)*100;   
  25. VAR4:=SMA(MAX(CLOSE-VAR1,0),12,1)/SMA(ABS(CLOSE-VAR1),12,1)*100;   
  26. VAR5:=SMA(MAX(CLOSE-VAR1,0),24,1)/SMA(ABS(CLOSE-VAR1),24,1)*100;   
  27. VAR6:=IF(CROSS(VAR3,VAR5),LOW,REF(LOW,BARSLAST(CROSS(VAR3,VAR5))));   
  28. VAR7:=IF(CROSS(VAR5,VAR3),HIGH,REF(HIGH,BARSLAST(CROSS(VAR5,VAR3))));   
  29. VAR8:=IF(CLOSE>=MA(CLOSE,20),80,50);   
  30. VAR9:=IF(CLOSE>=MA(CLOSE,20),50,20);   
  31. VARA:=IF(VAR3<VAR8 AND REF(VAR3,1)>=VAR8,HHV(REF(HIGH,1),BARSLAST(VAR3>=VAR8 AND REF(VAR3,1)<VAR8)-1),REF(HHV(REF(HIGH,1),BARSLAST(VAR3>=VAR8 AND REF(VAR3,1)<VAR8)-1),BARSLAST(VAR3<VAR8 AND REF(VAR3,1))));   
  32. VARB:=IF(HIGH>VARA,LOW,REF(LOW,BARSLAST(HIGH>VARA)));   
  33. VARC:=IF(HIGH>VARA,VAR3,REF(VAR3,BARSLAST(HIGH>VARA)));   
  34. VARD:=IF(HIGH>VARB AND VAR3<VARC AND VAR3<VAR5,HIGH,REF(HIGH,BARSLAST(HIGH>VARB AND VAR3<VARC AND VAR3<VAR5)));   
  35. VARE:=IF(VAR3>VAR9 AND REF(VAR3,1)<=VAR9,LLV(REF(LOW,1),BARSLAST(VAR3<=VAR9 AND REF(VAR3,1)>VAR9)-1),REF(LLV(REF(LOW,1),BARSLAST(VAR3<=VAR9 AND REF(VAR3,1)>VAR9)   
  36. -1),BARSLAST(VAR3>VAR9 AND REF(VAR3,1))));   
  37. VARF:=IF(LOW<VARE,HIGH,REF(HIGH,BARSLAST(LOW<VARE)));   
  38. VAR10:=IF(LOW<VARE,VAR3,REF(VAR3,BARSLAST(LOW<VARE)));   
  39. VAR11:=IF(LOW<VARF AND VAR3>VAR10 AND VAR3>VAR5,LOW,REF(LOW,BARSLAST(LOW<VARF AND VAR3>VAR10 AND VAR3>VAR5)));  

C47934500.png

C47934500.png

回复

使用道具 举报

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

本版积分规则