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

    正文概述    2024-05-04 04:22:57  


    通达信指标公式源码概况:


    指标类别: 通达信指标公式


    授权方式: 免费版


    指标评级: ★★★★★


    指标分类: 策略


    画线方法: 副图



    四维炒股指标公式


    VAR1:=((CLOSE-MA(CLOSE,6))/MA(CLOSE,6)*100+(CLOSE-MA(CLOSE,24))/MA(CLOSE,24)*100+(CLOSE-MA(CLOSE,32))/MA(CLOSE,32)*100)/3;

    持币区域:VAR1,COLORFEDCBA;

    持股区域:IF(VAR10,VAR1,0),COLORRED;

    短顶:STICKLINE(VAR19 AND FILTER(VAR1REF(VAR1,1),5),VAR1+2,0,3,0),COLORGREEN;

    大顶:STICKLINE(VAR120 AND FILTER(VAR1REF(VAR1,1),5),VAR1+5,0,7,0),COLOR00FF00;

    VAR2:=HHV(VAR120,10);

    危险: STICKLINE(VAR2 AND CROSS((REF(HIGH,1)+REF(LOW,1))/2,MA(CLOSE,20)+2*STD(CLOSE,20)),VAR1+10,0,4,0);

    注意止损:STICKLINE(VAR2 AND FILTER(VAR1 REF(VAR1,1),6)

    AND CROSS(MA(CLOSE,5),MA(CLOSE,2)),VAR1+6,0,3,0);

    短底:STICKLINE(VAR1-9 AND VAR1 REF(VAR1,1),VAR1-2,0,3,0),COLORRED;

    大底:STICKLINE(VAR1-20 AND FILTER(VAR1 REF(VAR1,1),5),VAR1-5,0,7,0),COLORYELLOW;

    买入准备:VAR1-9 AND VAR1REF(VAR1,1),COLORWHITE;

    DRAWTEXT(VAR19 AND FILTER(VAR1REF(VAR1,1),5),VAR1+2, #39;短顶 #39;),COLOR00FF00;

    DRAWTEXT(VAR120 AND FILTER(VAR1REF(VAR1,1),5),VAR1+5, #39;大顶 #39;),COLORFFFF00;

    DRAWTEXT(VAR2 AND CROSS((REF(HIGH,1)+REF(LOW,1))/2,MA(CLOSE,20)+2*STD(CLOSE,20)),VAR1+10, #39;危险 #39;),COLOR00FFFF;

    DRAWTEXT(VAR2 AND FILTER(VAR1 REF(VAR1,1),6) AND CROSS(MA(CLOSE,5),MA(CLOSE,2)),VAR1+6, #39;注意止损 #39;),COLORFF00FF;

    DRAWTEXT(FILTER(VAR1-9 AND VAR1REF(VAR1,1),18),VAR1-2, #39;短底 #39;),,COLOR0000FF;

    DRAWTEXT(VAR1-20 AND FILTER(VAR1 REF(VAR1,1),5),VAR1-5, #39;大底 #39;),;

    DRAWTEXT(FILTER(VAR1-9 AND VAR1REF(VAR1,1),18),1, #39;买入准备 #39;);

    E1:EXPMA(C,7),COLORGREEN;

    E2:EXPMA(C,9),COLORGREEN;

    E3:EXPMA(C,12),COLORGREEN;

    E4:EXPMA(C,14),COLORGREEN;

    E5:EXPMA(C,17),COLORGREEN;

    E6:EXPMA(C,50),COLORFF8800,LINETHICK2;

    A1:=CROSS(C,E1) AND CROSS(C,E5);

    DRAWICON(A1,L*0.99,13);

    就:IF(E1REF(E1,1),E1,DRAWNULL),COLORYELLOW;

    这:IF(E2REF(E2,1),E2,DRAWNULL),COLORYELLOW;

    样:IF(E3REF(E3,1),E3,DRAWNULL),COLORYELLOW;

    做:IF(E4REF(E4,1),E4,DRAWNULL),COLORYELLOW;

    多:IF(E5REF(E5,1),E5,DRAWNULL),COLORYELLOW;


    image.png




    股票共振指标公式


    RV:=(CLOSE-LLV(LOW,27))/(HHV(HIGH,27)-LLV(LOW,27))*100;

    RG:=(CLOSE-LLV(LOW,5))/(HHV(HIGH,5)-LLV(LOW,5))*100;

    J0:=(HIGH+LOW)/2;QJ:=EMA(J0,3);

    J1:=IF(CLOSEQJ,VOL,0);

    J2:=IF(CLOSEQJ,VOL,0);

    :IF(CAPITAL1,MA(VOL,74),MA(SUM(J1-J2,22),3)),COLOR00DDDD,NODRAW;

    :IF(CAPITAL1,EMA(量能,360),EMA(量能,21)),COLOR008800,NODRAW;

    VAR3:=(量能-趋势);

    VAR44:=SMA(RV,3,1);

    VAR55:=SMA(VAR44,3,1);

    STICKLINE(VAR30,20,10,5,1),COLOR0000FF;

    STICKLINE(VAR30,100,90,10,1),COLOR00FF00;

    DRAWICON(CROSS(VAR44,VAR55) AND VAR5530,2,1);

    DRAWICON(CROSS(VAR55,VAR44) AND VAR5530,97,2);

    DRAWBAND(VAR55,RGB(0,22,224),VAR44,RGB(255,50,50));

    KK:EMA(SMA(RG,3,1),2),COLORFFFFFF;DD:SMA(KK,3,1),COLOR00FFFF;

    DRAWTEXT(CROSS(VAR44,VAR55) AND CROSS(KK,DD),10, #39;共振 #39;),COLOR00FFFF;

    共振点:=(CROSS(VAR44,VAR55) AND CROSS(KK,DD));

    STICKLINE(共振点0,0,100,2,0),COLOR008888;

    STICKLINE(共振点0,0,100,1.5,0),COLOR00AAAA;

    STICKLINE(共振点0,0,100,0.8,0),COLOR00DDDD;

    STICKLINE(共振点0,0,100,0.3,0),COLOR00FFFF;

    VAR1:=1;

    VAR2:=((((2*CLOSE)+HIGH)+LOW) / 4);

    低进:20,COLORFF00FF,LINETHICK2;

    高死叉出:90,COLORBLUE,LINETHICK2;

    VAR4:=LLV(LOW,5);

    VAR5:=HHV(HIGH,4);

    C1:=(EMA((((VAR2-VAR4)/(VAR5-VAR4))*100),4)*VAR1),COLORFF00FF,LINETHICK2;

    C2:=(EMA(((0.667*REF(C1,1))+(0.333*C1)),2)*VAR1),COLORFFFFFF,LINETHICK2;

    条件:=CROSS(C1,C2) AND C140;

    条件0:=CROSS(C2,C1) AND C190;

    TJ1:=CROSS(C1,C2);

    TJ2:=CROSS(C2,C1);

    TJ3:=CROSS(C1,C2) AND REF(C1,1)20;

    TJ4:=CROSS(C2,C1) AND REF(C1,1)80;

    DRAWTEXT(FILTER((REF(条件,1) AND (REF(LOW,1)LOW OR TJ2))

    OR (REF(条件,2) AND (REF(LOW,2)LLV(LOW,3) OR TJ2))

    OR (REF(条件,3) AND (REF(LOW,3)LLV(LOW,4) OR TJ2)),4),70, #39;止 #39;),COLORRED;

    {DRAWTEXT(FILTER((REF(条件,1) AND (REF(LOW,1)LOW OR TJ2))

    OR (REF(条件,2) AND (REF(LOW,2)LLV(LOW,3) OR TJ2))

    OR (REF(条件,3) AND (REF(LOW,3)LLV(LOW,4) OR TJ2)),4),60, #39;跌 #39;),COLORRED;}

    DRAWTEXT(FILTER((REF(条件,1) AND (REF(LOW,1)LOW OR TJ2)) OR

    (REF(条件,2) AND (REF(LOW,2)LLV(LOW,3) OR TJ2))

    OR (REF(条件,3) AND (REF(LOW,3)LLV(LOW,4) OR TJ2)),4),65, #39;买 #39;),COLORRED;

    DRAWTEXT(条件,20, #39;买 #39;),COLORRED;

    STICKLINE(条件,0,20,2,0),COLORRED;

    DRAWTEXT(条件0,85, #39;卖 #39;),COLORBLUE;

    DRAWTEXT(CROSS(C1,75),70, #39;险区 #39;),COLORGREEN;

    DRAWTEXT(TJ3,65, #39;安 #39;),COLORRED;

    DRAWTEXT(TJ3,60, #39;买 #39;),COLORRED;

    DRAWTEXT(TJ4,85, #39; #39;),COLORBLUE;

    STICKLINE(TJ4,100,80,2,0),COLORGREEN;

    VAR200:=(CLOSE-LLV(LOW,20))/(HHV(HIGH,20)-LLV(LOW,20))*100;

    VAR300:=SMA(SMA(VAR200,3,1),3,1)/28.57;

    VAR400:=EMA(VAR300,5);

    操盘:=3*VAR300-2*VAR400;

    A1:=CROSS(操盘,VAR300) AND VAR3002.1 AND CO;

    STICKLINE(A1,30,0,4,0),COLOR770077;

    STICKLINE(A1,30,0,3,0),COLOR990099;

    STICKLINE(A1,30,0,2,0),COLORBB00BB;

    STICKLINE(A1,30,0,1,0),COLORDD00DD;

    STICKLINE(A1,30,0,0.3,0),COLORFF00FF;

    DRAWTEXT(A1,36, #39;财神到 #39;),COLORRED; 

    DIF:(EMA(CLOSE,12)-EMA(CLOSE,26))*100;

    DEA:EMA(DIF,9);

    MACD:(DIF-DEA)*2,COLORSTICK;

    DRAWICON(CROSS(DIF,DEA),DEA,1);

    DRAWICON(CROSS(DEA,DIF),DEA,2);

    IF(DIFDEA,DIF,DRAWNULL),COLORGREEN;

    DD:=C=HHV(C,180);

    EE:=DEA REF(DEA,1) AND REF(DEA REF(DEA,1),1)=1;

    CC:=C REF(C,1) AND REF(C REF(C,1),1)=1;

    顶:=(DD AND EE AND DEA HHV(DEA,180))*DEA;

    A2:=BARSLAST(REF(CROSS(DEA,DIF),1));

    {顶背:=REF(CLOSE,A2+1)CLOSE AND REF(DIF,A2+1)DIF AND CROSS(DEA,DIF);}

    DRAWLINE(A2=0,DEA,顶背离,DEA,0),COLORRED,LINETHICK2;

    RSV:=(CLOSE-LLV(LOW,9))/(HHV(HIGH,9)-LLV(LOW,9))*100;

    K:SMA(RSV,9,3),COLORYELLOW;

    D:SMA(K,9,3),COLORWHITE;

    J:3*K-2*D,COLORMAGENTA;

    IF(JD,J,DRAWNULL),COLORFFEE44;

    0,COLORRED,LINETHICK2;20,COLORLIMAGENTA;{50,COLORWHITE;}

    80,COLORBLUE;100,COLORGREEN,LINETHICK2;

    DRAWTEXT(ISLASTBAR,0, #39;高安全区 #39;),COLORRED;

    DRAWTEXT(ISLASTBAR,20, #39;安 全 区 #39;),COLORLIMAGENTA;

    DRAWTEXT(ISLASTBAR,80, #39;风 险 区 #39;),COLORBLUE;

    DRAWTEXT(ISLASTBAR,100, #39;高风险区 #39;),COLORGREEN;

    A1:=BARSLAST(REF(CROSS(DIF,DEA),1));

    B1:=REF(C,A1+1)C AND REF(DIF,A1+1)DIF AND CROSS(DIF,DEA);

    A22:=BARSLAST(REF(CROSS(KDJ.K(9,3,3),KDJ.D(9,3,3)),1));

    B2:=REF(C,A22+1)C AND REF(KDJ.K(9,3,3),A22+1)KDJ.K(9,3,3) AND CROSS(KDJ.K(9,3,3),KDJ.D(9,3,3));

    A3:=BARSLAST(REF(CROSS(RSI.RSI1(6,12,24),RSI.RSI2(6,12,24)),1));

    B3:=REF(C,A3+1)C AND REF(RSI.RSI1(6,12,24),A3+1)RSI.RSI1(6,12,24) AND CROSS(RSI.RSI1(6,12,24),RSI.RSI2(6,12,24));

    DRAWTEXT(B1,DEA-0.20, #39;MACD底背 #39;),COLORWHITE;

    DRAWTEXT(B2,D-0.20, #39;●KDJ底背 #39;),COLORFF00FF;

    {DJ:=CROSS(J,D) AND D20;

    DRAWTEXT(DJ,J-0.3, #39;低金叉 #39;),COLORCYAN;

    MDJ:=CROSS(DIF,DEA) AND DEA0;

    DRAWTEXT(MDJ,DEA-0.3, #39;低金叉 #39;),COLORGREEN;

    DRAWTEXT(CROSS(DEA,DIF),DIF+0.3, #39;死叉 #39;),COLORYELLOW;

    DRAWTEXT(CROSS(D,J),J+0.3, #39;死叉 #39;),COLORRED;}

    A:=CROSS(DIF,DEA) AND CROSS(K,D) AND CROSS(J,D);

    DRAWICON(A,LOW*0.98,1);

    B4:CROSS(DIF,DEA) AND CROSS(KDJ.K(9,3,3),KDJ.D(9,3,3));

    DRAWTEXT(B4,L-0.20, #39;★金叉共振 #39;),COLOR0099FF;

    DRAWICON(CROSS(K,D),D,1);

    DRAWICON(CROSS(D,K),D,2);

    BA:=DEAREF(DEA,1);

    BB:=SUM(BA,5)=4;

    BC:=CO;

    BD:=SUM(BC,5)=2;

    BXG:FILTER(BB AND BD AND JREF(J,1) AND REF(J,1)REF(J,2),3);

    STICKLINE(BXG,HHV(J,60),HHV(J,60)-20,1,0),COLORRED;

    SS:=EMA(C,11);

    LL:=(EMA(C,1)+EMA(C,2)+EMA(C,3)+EMA(C,5))/4;

    {短:EMA(LL,2),COLORGREEN,LINETHICK2;}

    {长:EMA(SS,2),COLORMAGENTA,LINETHICK2;}

    AA:=(C-LLV(C,10))/(HHV(C,10)-LLV(C,10));

    (CROSS(AA,0.05)-1);


    image.png



    九毛八公式指标,一个优质的公式指标平台!
    九毛八公式指标 » 四维共振炒股指标公式 股票共振指标公式 加入收藏