通达信峰值指标公式

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

 通达信峰值指标公式

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

复制内容到剪贴板
  1. LC := REF(CLOSE,1);   
  2. RSI1:=SMA(MAX(CLOSE-LC,0),6,1)/SMA(ABS(CLOSE-LC),6,1)*100;   
  3. RSI:(RSI1-50)*3,LINETHICK1,COLORFFFF00;   
  4. DRAWBAND(RSI,RGB(120,50,100),0,RGB(100,150,72));   
  5.   
  6.   
  7. DIF:(EMA(CLOSE,5)-EMA(CLOSE,26))*100,COLORGREEN,LINETHICK1;   
  8.      
  9.        IF(DIF>=REF(DIF,1),DIF,DRAWNULL),COLORRED,LINETHICK2;   
  10.        IF(DIF,5,DRAWNULL),COLORYELLOW,LINETHICK1;   
  11.        IF(DIF>=REF(DIF,1),5,DRAWNULL),COLORRED,LINETHICK1;   
  12.        IF(DIF<=REF(DIF,1),5,DRAWNULL),COLORGREEN,LINETHICK1;   
  13.        RSV:=(CLOSE-LLV(LOW,9))/(HHV(HIGH,9)-LLV(LOW,9))*100;   
  14.        K:=SMA(RSV,9,1);   
  15.        D:=SMA(K,9,1);   
  16.        J:3*K-2*D,COLORLIBLUE,LINETHICK1;   
  17.        IF(J>=REF(J,1),J,DRAWNULL),COLORMAGENTA,LINETHICK2;   
  18.        IF(J,10,DRAWNULL),COLORYELLOW,LINETHICK1;   
  19.        IF(J>=REF(J,1),10,DRAWNULL),COLORRED,LINETHICK1;   
  20.        IF(J<=REF(J,1),10,DRAWNULL),COLORGREEN,LINETHICK1;   
  21.        MA5:=MA(C,5),COLORLIBLUE,LINETHICK1;   
  22.        IF(MA5,15,DRAWNULL),COLORYELLOW,LINETHICK1;   
  23.        IF(MA(C,5)>=REF(MA(C,5),1),15,DRAWNULL),COLORRED,LINETHICK1;   
  24.        IF(MA(C,5)<REF(MA(C,5),1),15,DRAWNULL),COLORGREEN,LINETHICK1;  

A175219179.png

A175219179.png

回复

使用道具 举报

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

本版积分规则