股资源-股票学习站-学炒股-股票课程-炒股教程-分析选股指标-入门基础知识

 找回密码
 注册昵称

QQ登录

只需一步,快速开始

搜索
    上一主题 下一主题

    [通达信] 「指标」通达信均线+MACD+KDJ+成交量+趋势线共振指标


        [-----复制链接-----]

    22万

    主题

    22万

    帖子

    14

    精华

    积分
    11040
    楼主
    2024-3-6 08:43:41
    【资料名称】:通达信均线+MACD+KDJ+成交量+趋势线共振指标介绍
    【资料描述】:

    通达信均线+MACD+KDJ+成交量+趋势线共振指标

    王氏MACD+均线思路主图:
    MA8:EMA(CLOSE,8),COLORLIBLUE,LINETHICK1;
    MA25:EMA(CLOSE,25),COLORBLUE,LINETHICK1;
    MA55:EMA(CLOSE,55),COLORLICYAN,LINETHICK1;
    IF(EMA(C,8)>=REF(EMA(C,8),1),EMA(C,8),DRAWNULL),COLORRED;
    IF(EMA(C,25)>=REF(EMA(C,25),1),EMA(C,25),DRAWNULL),COLORRED;
    IF(EMA(C,55)>=REF(EMA(C,55),1),EMA(C,55),DRAWNULL),COLORRED;
    X3:=EMA(CLOSE,55);
    STICKLINE(((C >= X3) AND (C >= O)),H,L,0,1),COLOR0000AA;
    STICKLINE(((C >= X3) AND (C >= O)),O,C,3,0),COLOR0000AA;
    STICKLINE(((C >= X3) AND (C >= O)),O,C,2.3,0),COLOR0000CC;
    STICKLINE(((C >= X3) AND (C >= O)),O,C,1.8,0),COLOR0000FF;
    STICKLINE(((C >= X3) AND (C >= O)),O,C,1,0),COLORCC66FF;
    STICKLINE(((C >= X3) AND (C <= O)),H,L,0,1),COLOR0000AA;
    STICKLINE(((C >= X3) AND (C <= O)),O,C,3,0),COLOR0000AA;
    STICKLINE(((C >= X3) AND (C <= O)),O,C,2.3,0),COLOR0000CC;
    STICKLINE(((C >= X3) AND (C <= O)),O,C,1.8,0),COLOR0000FF;
    STICKLINE(((C >= X3) AND (C <= O)),O,C,1,0),COLORCC66FF;
    STICKLINE(((C <= X3) AND (C >= O)),H,L,0,1),COLORFF6600;
    STICKLINE(((C <= X3) AND (C >= O)),O,C,3,0),COLORFF6600;
    STICKLINE(((C <= X3) AND (C >= O)),O,C,2.3,0),COLORFF9900;
    STICKLINE(((C <= X3) AND (C >= O)),O,C,1.8,0),COLORFFCC00;
    STICKLINE(((C <= X3) AND (C >= O)),O,C,1,0),COLORFFFF00;
    STICKLINE(((C <= X3) AND (C <= O)),H,L,0,0),COLORFF6600;
    STICKLINE(((C <= X3) AND (C <= O)),O,C,3,0),COLORFF6600;
    STICKLINE(((C <= X3) AND (C <= O)),O,C,2.3,0),COLORFF9900;
    STICKLINE(((C <= X3) AND (C <= O)),O,C,1.8,0),COLORFFCC00;
    STICKLINE(((C <= X3) AND (C <= O)),O,C,1,0),COLORFFFF00;
    Z1:=REF(H,8)=HHV(H,2*8+1);
    Y1:=FILTER(Z1,8);
    X1:=BACKSET(Y1,8+1);
    W1:=FILTER(X1,8);{高点}
    R11:=BACKSET(ISLASTBAR,BARSLAST(W1)+1); S11:=R11>REF(R11,1);
    DRAWLINE(W1,H,S11,H,1),COLORBLACK,LINETHICK2;
    Z2:=REF(L,8)=LLV(L,2*8+1);
    Y2:=FILTER(Z2,8);
    X2:=BACKSET(Y2,8+1);
    W2:=FILTER(X2,8);{低点}
    T11:=BACKSET(ISLASTBAR,BARSLAST(W2)+1); U11:=T11>REF(T11,1);
    DRAWLINE(W2,L,U11,L,1),COLORBLACK,LINETHICK2;
    M:=INTPART(3*8/5);
    Z12:=REF(H,M)=HHV(H,2*M+1);
    Y12:=FILTER(Z12,M);
    X12:=BACKSET(Y12,M+1);
    W12:=FILTER(X12,M);{高点}
    R112:=BACKSET(ISLASTBAR,BARSLAST(W12)+1); S112:=R112>REF(R112,1);
    DRAWLINE(W12,H,S112,H,1),COLORRED,LINETHICK2;
    Z22:=REF(L,M)=LLV(L,2*M+1);
    Y22:=FILTER(Z22,M);
    X22:=BACKSET(Y22,M+1);
    W22:=FILTER(X22,M);{低点}
    T112:=BACKSET(ISLASTBAR,BARSLAST(W22)+1); U112:=T112>REF(T112,1);
    DRAWLINE(W22,L,U112,L,1),COLORRED,LINETHICK2;
    VAR1111:=BACKSET(REF(HIGH,2)=HHV(HIGH,5),3);
    VAR2222:=CROSS(VAR1111,0.9);
    VAR3333:=BACKSET(REF(LOW,2)=LLV(LOW,5),3);
    VAR4444:=CROSS(VAR3333,0.9);
    压力:= REF(HIGH,BARSLAST(VAR2222));
    STICKLINE(CLOSE,REF(HIGH,BARSLAST(VAR2222)),REF
    (HIGH,BARSLAST(VAR2222)),0.5,1),COLORBLACK,LINETHICK2;
    支撑:= REF(LOW,BARSLAST(VAR4444));
    STICKLINE(CLOSE,REF(LOW,BARSLAST(VAR4444)),REF
    (LOW,BARSLAST(VAR4444)),0.5,1),COLORBLACK,LINETHICK2;
    TY:=C;
    A1:=REF(TY,10)=HHV(TY,2*10+1); B1:=FILTER(A1,10);
    C1:=BACKSET(B1,10+1); HD:=FILTER(C1,10);
    A2:=REF(TY,10)=LLV(TY,2*10+1); B2:=FILTER(A2,10);
    C2:=BACKSET(B2,10+1); LD:=FILTER(C2,10);
    AZ1:=REF(C,BARSLAST(HD)); B:=REF(C,BARSLAST(LD));
    T1:=BARSLAST(HD)<BARSLAST(LD) AND NOT(HD);
    T2:=BARSLAST(HD)>BARSLAST(LD) AND NOT(LD);
    前期高点:IF(T1,AZ1,AZ1),POINTDOT,COLOR0000FF,LINETHICK2;
    STICKLINE(T1,AZ1,AZ1,9,0),COLOR0000FF,LINETHICK2;
    前期低点:IF(T2,B,B),COLOR80FF00,POINTDOT,LINETHICK2;
    STICKLINE(T2,B,B,9,0),COLORFF0000,LINETHICK2;

    DIFF:=EMA(CLOSE,9)-EMA(CLOSE,21);
    DEA:=EMA(DIFF,6);
    STICKLINE(DIFF>DEA,C,O,1.2,0),COLOR0000FF;
    STICKLINE(DIFF>DEA,C,O,0.6,0),COLORCC66FF;
    STICKLINE(DIFF<=DEA,C,O,1.2,0),COLORFFCC00;
    STICKLINE(DIFF<=DEA,C,O,0.6,0),COLORFFFF00;



    VOL买卖  附图:
    股价趋势:= 3*SMA((CLOSE-LLV(LOW,27))/(HHV(HIGH,27)-LLV(LOW,27))*100,5,1)-2*SMA(SMA((CLOSE-LLV(LOW,27))/(HHV(HIGH,27)-LLV(LOW,27))*100,5,1),3,1);
    底部警戒:=10,COLORRED;
    底1:=CROSS(股价趋势,底部警戒);
    A1:=(2*CLOSE+HIGH+LOW)/4;
    A2:=LLV(LOW,27);
    A3:=HHV(HIGH,27);
    A4:=EMA((A1-A2)/(A3-A2)*100,13);
    A5:=EMA(0.618*REF(A4,1)+0.382*A4,3);
    底2:=CROSS(A4,A5) AND A4<16;
    波底:=底1 AND 底2;
    {奔牛}
    VAR2:=(CLOSE-LLV(LOW,20))/(HHV(HIGH,20)-LLV(LOW,20))*100;
    VAR3:=SMA(SMA(VAR2,3,1),3,1)/28.57;
    VAR4:=EMA(VAR3,5);
    VAR5:=3*VAR3-2*VAR4;
    牛:=CROSS(VAR5,VAR3) AND VAR3<2.1 AND C>O;
    {逃顶提示}
    VARA2:=LLV(LOW,10);
    VARA3:=HHV(HIGH,25);
    动力线:= EMA((CLOSE-VARA2)/(VARA3-VARA2)*4,4);
    {突破与破位}
    N:=19;
    VARB1:=HHV(HIGH,N);
    VARB2:=LLV(LOW,N);
    阻力线:=EMA((CLOSE-VARB2)/(VARB1-VARB2),21)-0.5;
    操作线:=EMA((CLOSE-VARB2)/(VARB1-VARB2),5)-0.5;
    突破:=CROSS(操作线,阻力线) AND 阻力线<0.1;
    破位:=CROSS(阻力线,操作线) AND 阻力线>0.25;
    {立桩成立判断}
    V2:=IF(CURRBARSCOUNT=1,VOL*240/FROMOPEN/REF(VOL,1)-1,VOL/REF(VOL,1)-1);
    T12:=V2>=1;
    T0:=BARSLAST(T12);
    L1:=REF(L,T0);
    H1:=REF(H,T0);
    L11:=MIN(REF(L,1),L);
    L10:=MIN(L11,REF(L,2));
    L21:=MAX(REF(L,1),L);
    L20:=MAX(L21,REF(L,2));
    T111:=(REF(V2>=1,3) OR REF(V2>=1,2) OR REF(V2>=1,1)) AND
    ((L10>L1 AND L20>H1) OR (L11>L1 AND L21>H1) OR (L>H1));
    T11:=T111 AND REF(T111,1)=0;

    {顶背离与底背离}
    LC:=REF(CLOSE,1);
    RSI:=((SMA(MAX((CLOSE - LC),0),3,1) / SMA(ABS((CLOSE - LC)),3,1)) * 100);
    FF:=EMA(CLOSE,3);
    MA15:=EMA(CLOSE,21);
    顶背离:=CROSS(88,RSI);
    底背离:=CROSS(FF,MA15);


    {彩色成交量柱线}
    VOLUME:VOL,VOLSTICK;
    MAVOL1:MA(VOLUME,5),COLORRED;
    MAVOL2:MA(VOLUME,10),COLORLIGREEN;

    STICKLINE(动力线>=3.2,0,VOL,3,0),COLOR238E23;
    STICKLINE(波底,0,VOL,3,0),COLORMAGENTA;
    DRAWTEXT(波底,VOL*0.8,'底'),COLORLIMAGENTA ;
    DRAWICON(波底,VOL*1.1,5)COLORMAGENTA;
    STICKLINE(牛,0,VOL,3,0),COLORRED;
    DRAWTEXT(牛,VOL*1.15,'牛'),COLORLIMAGENTA ;
    STICKLINE(突破,0,VOL,3,0),COLORBLUE;
    DRAWTEXT(突破,VOL*0.5,'突破'),COLORLIMAGENTA ;
    STICKLINE(破位,0,VOL,3,0),COLORBROWN;
    DRAWTEXT(破位,VOL*0.5,'破位')COLORCYAN;
    DRAWTEXT(底背离,VOL*0.5,'底背'),COLORRED;
    DRAWTEXT(顶背离,VOL*0.9,'顶背'),COLORBLUE;






















    这里面的均线也是指标,价格站上均线颜色变成红色,下破了还原




    截图均线上MACD向上颜色








    截图均线上MACD向下颜色









    截图均线下MACD向上颜色






    截图均线下MACD向下颜色
     



    gd29358


    【下载地址隐藏】:                    点:回复可见地址
    游客,如果您要查看本帖隐藏内容请回复






    上一篇:「指标」通达信操盘BS划线指标公式
    下一篇:「指标」期货博弈大师指标
    回复

    举报

    QQ|

    GMT+8, 2024-11-10 15:58

    快速回复 返回顶部 返回列表