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

    正文概述    2024-04-14 13:35:32  

    N:=9;
    M1:=3;
    M2:=3;
    RSV:=(CLOSE-LLV(LOW,N))/(HHV(HIGH,N)-LLV(LOW,N))*100;
    K:SMA(RSV,M1,1),coloryellow,LINETHICK1;
    D:SMA(K,M2,1);
    J:3*K-2*D,colorbrown,LINETHICK1;
    D: EMA(0.667*REF(K,1)+0.333*K,2),colorgreen,LINETHICK1;
    升:IF(K>REF(K,1),K,DRAWNULL),COLORFF00FF,LINETHICK3;
    降:IF(KMA5:=MA(CLOSE,5);
    MA10:=MA(CLOSE,10);
    MA20:=MA(CLOSE,20);
    A1:=IF(C>=MA5,1,-1);
    A2:=IF(C>=MA10,1,-1);
    A3:=IF(C>=MA20,1,-1);
    A4:=IF(MA5>=REF(MA5,1),1,-1);
    A5:=IF(MA10>=REF(MA10,1),1,-1);
    A6:=IF(MA20>=REF(MA20,1),1,-1);
    RSV=(CLOSE-LLV(LOW,9))/(HHV(HIGH,9)-LLV(LOW,9))*100;
    a=SMA(RSV,3,1);
    b=SMA(a,3,1);
    E:3*a-2*b,colorwhite;
    S0:0,colorlicyan,DOTLINE;
    S1:E-REF(E,1),coloryellow;
    S2:REF(E,1)-E,colorcyan;
    //Z2:0,colorlicyan,DOTLINE;
    EMA1:=EMA(EMA(CLOSE,9),9);
    EMA2:=(EMA1-REF(EMA1,1))/REF(EMA1,1)*1000;
    kong:IF(EMA2<0,EMA2,0),colorwhite,NODRAW;
    kong0:IF(REF(kong,1)EMA11:=REF((LOW+OPEN+CLOSE+HIGH)/4,1);
    EMA12:=SMA(Abs(LOW-EMA11),13,1)/SMA(MAX(LOW-EMA11,0),10,1);
    EMA14:=EMA(IF(LOW<=LLV(LOW,33),EMA(EMA12,10),0),3);
    准备:IF(EMA14STICKLINE(REF(准备,1)<准备 AND REF(准备,1)>0 AND REF(kong,1)///
    DRAWICON(crOSS(E,S1),E,1);
    DRAWICON(CROSS(S2,E),E,2);
    STICKLINE(CROSS(E,S2) ,80,100,6),colorgreen;
    STICKLINE(CROSS(E,S2) AND E>REF(E,1) ,80,100,6),colorred;
    STICKLINE(CROSS(E,S2) AND E>REF(E,1) AND S1>S0 ,80,100,6),colormagenta;
    CCd:IF(CROSS(E,S2) AND E>REF(E,1),1,0),NODRAW;
    DRAWTEXT(S2>S1 AND E>0,(e+e*0.03),"."),colorgreen;
    STICKLINE(S1>S2,S2,S1,6),colorred;
    STICKLINE(S1CCJ:IF(CROSS(E,S1),1,0),NODRAW;
    ///资金抄底
    IF(PERIODNAME<>"日线")
    {
    统计:"该指标只在日线周期下有效。";
    RETURN;
    }
    //大单净量
    r:=((ZDMR[-1]+BDMR[-1])-(ZDMC[-1]+BDMC[-1]))/SHGZG*100;
    //相对强弱
    LC := REF(CLOSE,1);//前一日收盘价;
    rsi$1:=SMA(MAX(CLOSE-LC,0),3,1)/SMA(ABS(CLOSE-LC),3,1)*100;
    RSI$2:=SMA(MAX(CLOSE-LC,0),5,1)/SMA(ABS(CLOSE-LC),5,1)*100;
    RSI$3:=SMA(MAX(CLOSE-LC,0),8,1)/SMA(ABS(CLOSE-LC),8,1)*100;
    相对强弱:=0.5*RSI$1+0.31*RSI$2+0.19*RSI$3;
    wave$1:=SMA(100*(CLOSE-LLV(LOW,8))/(HHV(HIGH,8)-LLV(LOW,8)),3,1);
    wave$2:=SMA(100*(CLOSE-LLV(LOW,8))/(HHV(HIGH,8)-LLV(LOW,8)),5,1);
    wave$3:=SMA(100*(CLOSE-LLV(LOW,8))/(HHV(HIGH,8)-LLV(LOW,8)),8,1);
    短线波段:=0.5*wave$1+0.31*wave$2+0.19*wave$3;
    机会区:20,POINTDOT,colorred;
    风险区:80,POINTDOT,colorgreen;
    风险系数:0.5*相对强弱+0.5*短线波段,coloryellow;
    //买入条件;
    CD1:=IF(风险系数<20 AND CLOSE>OPEN AND r>0,1,0);//波段小于20,股价翻红;
    CD2:=IF(风险系数<20 AND LOW>=REF(LOW,1) AND CLOSE>LOW AND r>0,1,0);//波段小于20,股价未翻红,但未创新低;
    CD3:=IF(REF(风险系数,1)<20 AND 风险系数>REF(风险系数,1),1,0);//前一日波段小于20,今日转向;
    SIGNALBUY=(CD1=1 OR CD2=1 OR CD3=1);
    X=(SIGNALBUY AND COUNT(SIGNALBUY,3)=1);
    DRAWICON(X,机会区,"buy");
    AAA:=REF(CLOSE,1);
    BBB:=SMA(MAX(CLOSE-AAA,0),5,1)/SMA(ABS(CLOSE-AAA),5,1)*1000;
    HHH:=BBB-LLV(BBB,10);
    SS:=(MA(HHH,2)*3+HHH*13)/16;
    短线买点:=IF(SS>13,MA(SS,2),SS)/6;
    短线出击:IF(CROSS(短线买点,1) AND (短线买点<30),19,0),coloryellow,STICK,LINETHICK6;
    N:=5;
    VAR1:4*SMA((CLOSE-LLV(LOW,N))/(HHV(HIGH,N)-LLV(LOW,N))*100,5,1)-
    3*SMA(SMA((CLOSE-LLV(LOW,N))/(HHV(HIGH,N)-LLV(LOW,N))*100,5,1),3.2,1),coloryellow,LINETHICK0;
    VAR2:8,colorgreen,LINETHICK0;
    准备拉升: IF(CROSS(VAR1,VAR2),1,0),COLOR0000CC,LINETHICK2,NODRAW;
    发现庄家: IF(VAR1<=8,1,0),colorFF00FF,LINETHICK10,NODRAW;
    V3:=(CLOSE-LLV(LOW,8))/(HHV(HIGH,8)-LLV(LOW,8))*100;
    操盘线:SMA(V3,2,1),LINETHICK1;
    V5:SMA(操盘线,2,1),colorcyan;
    抄底:IF(操盘线>REF(操盘线,1) AND REF(操盘线,1)追买:IF(操盘线>REF(操盘线,1) AND CROSS(操盘线,V5) AND V5<50,16,0),LINETHICK6,colorred,STICK;
    地域:DRAWTEXT_FIX(ISLASTBAR,0.20,0,1,BLOCK(2,1)),coloryellow;
    所属行业:DRAWTEXT_FIX(ISLASTBAR,0.36,0,1,BLOCK(1,1)),coloryellow;
    主概念:DRAWTEXT_FIX(ISLASTBAR,0.1,0,1,BLOCK(3,1)),colorred;
    量能饱和度:IF((AMOUNT/C)/(HHV(AMOUNT,20)/HHV(C,20))*100>100,100,(AMOUNT/C)/(HHV(AMOUNT,20)/HHV(C,20))*100),colorcyan,LINETHICK1,NODRAW;
    N:=5;
    VAR1:4*SMA((CLOSE-LLV(LOW,N))/(HHV(HIGH,N)-LLV(LOW,N))*100,5,1)-
    3*SMA(SMA((CLOSE-LLV(LOW,N))/(HHV(HIGH,N)-LLV(LOW,N))*100,5,1),3.2,1),colorcyan,LINETHICK0;
    VAR2:8,colorgreen,LINETHICK0;
    准备拉升: IF(CROSS(VAR1,VAR2),80,0),STICK,COLOR0000CC,LINETHICK2;
    庄家吸筹: IF(VAR1<=8,25,0),STICK,colorwhite,LINETHICK6;
    顶线:100.00,colorlired;
    中轴:50,colorwhite,DOTLINE,LINETHICK1;
    警戒线:10.00,colorcyan;


    九毛八公式指标,一个优质的公式指标平台!
    九毛八公式指标 » 同花顺红绿柱走势指标公式 加入收藏