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

    正文概述    2024-04-14 17:54:53  

    N:=14;
    MM:=6;
    RSV:=(CLOSE-LLV(LOW,10))/(HHV(HIGH,10)-LLV(LOW,10))*100;
    K:=SMA(RSV,3,1);
    D:=SMA(K,3,1);
    J:=3*K-2*D;
    DIFF:=EMA(CLOSE,12) - EMA(CLOSE,26);
    DEA:=EMA(DIFF,9);
    macd:=2*(DIFF-DEA), COLORSTICK;
    LC:=REF(CLOSE,1);
    rsi1:=SMA(MAX(CLOSE-LC,0),6,1)/SMA(Abs(CLOSE-LC),6,1)*100;
    RSI2:=SMA(MAX(CLOSE-LC,0),12,1)/SMA(ABS(CLOSE-LC),12,1)*100;
    RSI3:=SMA(MAX(CLOSE-LC,0),24,1)/SMA(ABS(CLOSE-LC),24,1)*100;
    A1:=BArslAST(REF(crOSS(DIFF,DEA),1));
    B1:=REF(CLOSE,A1+1)>CLOSE AND REF(DIFF,A1+1) MacD底背离:FILTER(B1>0,5);
    STICKLINE(FILTER(B1>0,5),0,10,1,0),COLOR00FF00;
    DRAWTEXT(FILTER(B1>0,5),10,'MACD底背'),COLOR00FF00;
    A3:=BARSLAST(REF(CROSS(RSI1,RSI2),1));
    B3:=REF(CLOSE,A3+1)>CLOSE AND REF(RSI1,A3+1) RSI底背离:FILTER(B3>0,5),LINETHICK0;
    STICKLINE(FILTER(B3>0,5),0,30,1,0),COLORFFFF00;
    DRAWTEXT(FILTER(B3>0,5),30,'RSI底背'),COLORFFFF00;


    九毛八公式指标,一个优质的公式指标平台!
    九毛八公式指标 » 同花顺RSI底背离指标公式 加入收藏