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

    正文概述    2024-04-14 17:10:17  

    日:=150;昨前:=3;
    高1:=REF(HHV(H,日),昨前);
    低1:=REF(LLV(L,日),昨前);
    H1:=高1-(高1-低1)*0.191;
    H2:=高1-(高1-低1)*0.382;
    H3:=高1-(高1-低1)*0.5;
    H4:=高1-(高1-低1)*0.618;
    H5:=高1-(高1-低1)*0.809;
    顶:REFDATE(高1,DATE),COLORGREEN,crOSSDOT,LINETHICK2;
    零点191:REFDATE(H1,DATE),COLORCYAN;
    零点382:REFDATE(H2,DATE),COLORYELLOW;
    零点5:REFDATE(H3,DATE),COLORRED;
    零点618:REFDATE(H4,DATE),COLORYELLOW;
    零点809:REFDATE(H5,DATE),COLORCYAN;
    低:REFDATE(低1,DATE),COLORRED,CROSSDOT,LINETHICK2;
    DIFF:=EMA(CLOSE,12) - EMA(CLOSE,26);
    DEA:=EMA(DIFF,8);
    A1:=BArslAST(REF(CROSS(DIFF,DEA),1));
    B1:=REF(C,A1+1)>C AND REF(DIFF,A1+1) DRAWTEXT(IF(B1>0,1,0),L-0.1,'macd底背'),COLORYELLOW;
    RSV:=(CLOSE-LLV(LOW,9))/(HHV(HIGH,9)-LLV(LOW,9))*100;
    K:=SMA(RSV,3,1);
    D:=SMA(K,3,1);
    A2:=BARSLAST(REF(CROSS(K,D),1));
    B2:=REF(C,A2+1)>C AND REF(K,A2+1) DRAWTEXT(IF(B2>0,1,0),L-0.25,'kdj底背'),COLORYELLOW;
    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;
    A3:=BARSLAST(REF(CROSS(RSI1,RSI2),1));
    B3:=REF(C,A3+1)>C AND REF(RSI1,A3+1) DRAWTEXT(IF(B3>0,1,0),L-0.4,'RSI底背'),COLORFF00FF;
    C1:=BARSLAST(REF(CROSS(DEA,DIFF),1));
    D1:=REF(C,C1+1)DIFF AND CROSS(DEA,DIFF);
    DRAWTEXT(IF(D1>0,1,0),H+0.1,'MacD顶背'),COLORYELLOW;
    C2:=BARSLAST(REF(CROSS(D,K),1));
    D2:=REF(C,C2+1)K AND CROSS(D,K);
    DRAWTEXT(IF(D2>0,1,0),H+0.25,'kdJ顶背'),COLORWHITE;
    C3:=BARSLAST(REF(CROSS(RSI2,RSI1),1));
    D3:=REF(C,C3+1)RSI1 AND CROSS(RSI2,RSI1);
    DRAWTEXT(IF(D3>0,1,0),H+0.4,'RSI顶背'),COLORFF00FF;
    JJ:=(H+L+3*C)/5;
    VAR21:=EMA(JJ,5);VAR22:=EMA(JJ,13);VAR23:=EMA(JJ,21);VAR24:=EMA(JJ,34);H1A:=(VAR21+VAR22+VAR23+VAR24)/4;
    RSI:=SMA(MAX(CLOSE-LC,0),6,1)/SMA(ABS(CLOSE-LC),6,1)*100;
    LL:=LLV(C,100);
    TJ:=IF((C-REF(C,1))/REF(C,1)>0.025,1,0);
    STICKLINE(C>REF(O,BARSLAST(TJ =1)),REF(O,BARSLAST(TJ =1)),REF(O,BARSLAST(TJ =1)),10,0),COLORGREEN;
    VAR4:=(LOW+HIGH+CLOSE)/3;


    九毛八公式指标,一个优质的公式指标平台!
    九毛八公式指标 » 通达信黄金背离主图指标公式 加入收藏