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

    正文概述    2024-04-13 15:04:15  

    DIF30:=EMA(CLOSE,12/4)-EMA(CLOSE,26/4);
    DEA30:=EMA(DIF30,9/4);
    DIF60:=EMA(CLOSE,12/2)-EMA(CLOSE,26/2);
    DEA60:=EMA(DIF60,9/2);
    DIF:=EMA(CLOSE,12)-EMA(CLOSE,26);
    DEA:=EMA(DIF,9);
    周MD:=macd.DIF#WEEK;
    周MA:=MacD.DEA#WEEK;
    月MD:=MACD.DIF#MONTH;
    月MA:=MACD.DEA#MONTH;
    RSV601:=(CLOSE-LLV(LOW,3))/(HHV(HIGH,3)-LLV(LOW,3));
    K30:=SMA(RSV601,3,1);
    D30:=SMA(K30,3,1);
    RSV60:=(CLOSE-LLV(LOW,6))/(HHV(HIGH,6)-LLV(LOW,6));
    K60:=SMA(RSV60,3,1);
    D60:=SMA(K60,3,1);
    RSV:=(CLOSE-LLV(LOW,9))/(HHV(HIGH,9)-LLV(LOW,9));
    K:=SMA(RSV,3,1);
    D:=SMA(K,3,1);
    J:=3*K-2*D;
    周K:="kdj.K#WEEK" ;
    周D:="kdJ.D#WEEK" ;
    月K:="KDJ.K#MONTH" ;
    月D:="KDJ.D#MONTH" ;
    LC:=REF(CLOSE,1);
    rsi9:SMA(MAX(CLOSE-LC,0),9,1)/SMA(Abs(CLOSE-LC),9,1)*100,COLORRED;
    bias60:=(CLOSE-MA(CLOSE,60))/MA(CLOSE,60)*100;
    BIAS20:=(CLOSE-MA(CLOSE,20))/MA(CLOSE,20)*100;
    K0:=DIF30>DEA30;
    K1:=DIF60>DEA60;
    K2:=DIF>DEA;
    K3:=周MD>周MA;
    K4:=月MD>月MA;
    K5:=K30>D30;
    K6:=K60>D60;
    K7:=K>D;
    K8:=周K>周D;
    K9:=月K>月D;
    K10:=RSI9>50;
    STICKLINE(SUM(K0+K1+K2+K3+K4+K5+K6+K7+K8+K9,1)>3 AND K10 AND V<=LLV(V,15) AND ((BIAS20>-1 AND BIAS20<2) OR (BIAS60>-1 AND BIAS60<2)),58,65,4,0),COLOR781816;
    STICKLINE(SUM(K0+K1+K2+K3+K4+K5+K6+K7+K8+K9,1)=4 AND K10,51,70,4,0),COLOR781816;
    STICKLINE(SUM(K0+K1+K2+K3+K4+K5+K6+K7+K8+K9,1)=5 AND K10,51,75,4,0),COLOR781816;
    STICKLINE(SUM(K0+K1+K2+K3+K4+K5+K6+K7+K8+K9,1)=6 AND K10,51,80,4,0),COLOR781816;
    STICKLINE(SUM(K0+K1+K2+K3+K4+K5+K6+K7+K8+K9,1)=7 AND K10,51,85,4,0),COLOR781816;
    STICKLINE(SUM(K0+K1+K2+K3+K4+K5+K6+K7+K8+K9,1)=8 AND K10,51,90,4,0),COLOR781816;
    STICKLINE(SUM(K0+K1+K2+K3+K4+K5+K6+K7+K8+K9,1)=9 AND K10,51,95,4,0),COLOR781816;
    STICKLINE(SUM(K0+K1+K2+K3+K4+K5+K6+K7+K8+K9,1)=10 AND K10,51,100,4,0),COLOR781816;
    STICKLINE(DIF30>=DEA30,45.5,49,5,0),COLORLIRED;
    STICKLINE(DIF60>=DEA60,40.5,44,5,0),COLOR00BBBB;
    STICKLINE(DIF>=DEA,35.5,39,5,0),COLOR0000BB;
    STICKLINE(周MD>=周MA,30.5,34,5,0),COLORBB00BB;
    STICKLINE(月MD>=月MA,25.5,29,5,0),COLORBBBB00;
    STICKLINE(K30>= D30,20.5,24,5,0),COLORLIRED;
    STICKLINE(K60>= D60,15.5,19,5,0),COLOR00FFFF;
    STICKLINE(K>=D,10.5,14,5,0),COLOR0000FF;
    STICKLINE(周K>=周D,5.5,9,5,0),COLORFF00FF;
    STICKLINE(月K>=月D,0.5,4,5,0),COLORBBBB00;
    DRAWTEXT(CURRBARSCOUNT=25,47.5,'M30'),COLORWHITE;
    DRAWTEXT(CURRBARSCOUNT=20,42.5,'M60'),COLORWHITE;
    DRAWTEXT(CURRBARSCOUNT=25,37.5,'M日'),COLORWHITE;
    DRAWTEXT(CURRBARSCOUNT=20,32.5,'M周'),COLORWHITE;
    DRAWTEXT(CURRBARSCOUNT=25,27.5,'M月'),COLORWHITE;
    DRAWTEXT(CURRBARSCOUNT=20,22.5,'K30 '),COLORWHITE;
    DRAWTEXT(CURRBARSCOUNT=25,17.5,'K60 '),COLORWHITE;
    DRAWTEXT(CURRBARSCOUNT=20,12.5,'K日'),COLORWHITE;
    DRAWTEXT(CURRBARSCOUNT=25,7.5,'K周'),COLORWHITE;
    DRAWTEXT(CURRBARSCOUNT=20,2.5,'K月'),COLORWHITE;
    RSI:SMA(MAX(CLOSE-LC,0),9,1)/SMA(ABS(CLOSE-LC),9,1)*100,COLORMAGENTA;
    超卖:20,DOTLINE,COLORYELLOW;
    强弱分界:50,COLORRED;
    超买:80,DOTLINE,COLORGREEN;
    满仓:100,DOTLINE,COLORRED;
    0;


    九毛八公式指标,一个优质的公式指标平台!
    九毛八公式指标 » 通达信三指标多周期共振指标公式 加入收藏