最新公告
  • 欢迎您光临九毛八公式指标网www.9m8.cn,本站全新改版试运行,期间内容全部免费,欢迎下载!欢迎加入本站VIP
  • 通达信最优版RSI指标公式

    正文概述    2024-04-13 16:21:37  

    N:=14;N1:=3;N2:=34;K:=3;
    LC:=REF(C,1);
    rsiI:=SMA(MAX(C-LC,0),14,1)/SMA(Abs(C-LC),14,1)*100,COLORRED,LINETHICK2;
    压力:HHV(MA(RSII,3),13),COLORGREEN;
    支撑:LLV(MA(RSII,3),13),COLORYELLOW;
    VAR2:MA(RSII,8),COLOR888888;
    VAR3:REF(VAR2,3),COLOR888888;
    DRAWBAND(VAR2,RGB(0,124,24),RSII,RGB(255,0,0));
    STICKLINE(VAR2>=VAR3,VAR3,VAR2,2,0),COLOR00FFFF;{DRAWNULL}
    STICKLINE(VAR3>VAR2,VAR2,VAR3,2,0),COLORFFBB00};
    RSI:RSII,COLORFFFFFF,LINETHICK2;
    VAR4:IF(RSI AA:=REF(RSI,N1)=HHV(RSI,2*N1+1);
    BB:=BacKSET(AA,N1+1);
    CC:=FILTER(BB,N1) AND RSI=HHV(RSI,N1+1);
    A1:=BArslAST(REF(CC,1));
    顶背离:=REF(CLOSE,A1+1)RSI AND CC;
    DRAWTEXT(顶背离,压力+1.5,'DBL'),COLORMAGENTA;
    DRAWLINE(CC,RSI,FILTER(顶背离>0,5),RSI,0),COLORWHITE;
    AA2:=REF(RSI,N1)=LLV(RSI,2*N1+1);
    BB2:=BACKSET(AA2,N1+1);
    CC2:=FILTER(BB2,N1) AND RSI=LLV(RSI,N1+1);
    A2:=BARSLAST(REF(CC2,1));
    { -通达信公式}
    底背离:=REF(C,A2+1)>CLOSE AND REF(RSI,A2+1) DRAWTEXT(底背离,支撑-1.5,'DBL'),COLORMAGENTA;
    DRAWLINE(CC2,RSI,FILTER(底背离>0,5),RSI,0),COLORWHITE;


    九毛八公式指标,一个优质的公式指标平台!
    九毛八公式指标 » 通达信最优版RSI指标公式 加入收藏