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

    正文概述    2024-05-04 04:17:16  


    通达信公式源码概况:


    指标类别:通达信公式


    授权方式: 免费版


    指标评级: ★★★★★


    指标分类: 策略


    画线方法: 副图



    一、通达信公式

     

    M10:MA(C,10),COLORYELLOW; 

    GL:=H/M10; 

    J:=KDJ.J#WEEK; 

    ZT:=BARSLAST(WEEKOFYEAR!=REF(WEEKOFYEAR,1)); 

    ZJ:=REF(J,ZT+1); 

    VV:=/REF(VOL,1); 

    TJ1:=REF(C M10,1)ANDC OANDC  

    TJ2:=REF(TJ1,2)ANDEVERY(C O,2)AND(C-REF(C,3))/REF(C,3)*100  

    TJ3:=J/ZJ; 

    TJ4:=EVERY(C M10,3); 

    TJ5:=EVERY(M10 =REF(M10,1),2); 

    XG1:=TJ2ANDABS(TJ3) 1.4ANDTJ4ANDTJ5ANDVV 1ANDGL 1.124; 

    STICKLINE(XG1,H,L,0,0),COLORFF00FF; 

    STICKLINE(XG1,C,O,3,0),COLOR990099; 

    STICKLINE(XG1,C,O,2,0),COLORBB00BB; 

    STICKLINE(XG1,C,O,1,0),COLORDD00DD; 

    STICKLINE(XG1,C,O,0.3,0),COLORFF00FF; 

    DRAWICON(XG1,L*0.95,1); 

    {} 

    M10:=MA(C,10); 

    GL:=H/M10; 

    J:=KDJ.J#WEEK; 

    ZT:=BARSLAST(WEEKOFYEAR!=REF(WEEKOFYEAR,1)); 

    ZJ:=REF(J,ZT+1); 

    TJ1:=REF(C M10,1)ANDC OANDC  

    TJ2:=REF(TJ1,2)ANDEVERY(C O,2)AND(C-REF(C,3))/REF(C,3)*100  

    TJ3:=J/ZJ; 

    TJ4:=EVERY(C M10,3); 

    TJ5:=EVERY(M10 =REF(M10,1),2); 

    VV:=VOL/REF(VOL,1); 

    XG:TJ2ANDABS(TJ3) 1.4ANDTJ4ANDTJ5ANDVV 1ANDGL 1.124; 

    {幅图} 

    M10:=MA(C,10); 

    GL:=H/M10; 

    J:=KDJ.J#WEEK; 

    ZT:=BARSLAST(WEEKOFYEAR!=REF(WEEKOFYEAR,1)); 

    ZJ:=REF(J,ZT+1); 

    TJ1:=REF(C M10,1)ANDC OANDC  

    TJ2:=REF(TJ1,2)ANDEVERY(C O,2)AND(C-REF(C,3))/REF(C,3)*100  

    TJ3:=J/ZJ; 

    TJ4:=EVERY(C M10,3); 

    TJ5:=EVERY(M10 =REF(M10,1),2); 

    VV:=VOL/REF(VOL,1); 

    XG:=TJ2ANDABS(TJ3) 1.4ANDTJ4ANDTJ5ANDVV 1ANDGL 1.124; 

    STICKLINE(XG,0,6,1.2,0),COLORMAGENTA; 

    EMA13:EMA(C,13),COLORYELLOW,LINETHICK2; 

    EMA34:EMA(C,34),COLORWHITE; 

    EMA55:EMA(C,55),COLORFF00FF; 

    EMA120:EMA(C,120),COLORFFCC66; 

    AR1:=EMA55 EMA34ANDEMA34 EMA13; 

    AR2:=BARSLAST((C-EMA13)/EMA13*100  

    AR3:=EMA13 =REF(EMA13,2); 

    AR4:=COUNT(CROSS(C,EMA13),AR2)=1; 

    AR5:=AR1ANDAR2ANDAR3ANDAR4; 

    AR6:=AR5ANDFILTER(AR5,10); 

    DRAWTEXT(AR6,L-0.09, 红杏出墙 ),COLORYELLOW; 

    {STICKLINE(AR6,H,L,0.5,1),COLORYELLOW; 

    STICKLINE(AR6,O,C,6,1),LINETHICK2,COLORYELLOW;} 

    BR1:=COUNT(BETWEEN((C-REF(C,1))/REF(C,1)*100,0,5),5)=5; 

    BR2:=ABS((EMA13-EMA34)+(EMA34-EMA55))/C  

    BR3:=C EMA55AND(REF(C,1) REF(EMA55,1)ORREF(C,2) REF(EMA55,2)ORREF(C,3) REF(EMA55,3)ORREF 

    (C,4) REF(EMA55,4)ORREF(C,5) REF(EMA55,5)); 

    BR4:=BR1ANDBR2ANDBR3; 

    DRAWTEXT(BR4ANDFILTER(BR4,10),L-0.09, 蚂蚁上树 ),COLOR00C5FF; 

    {STICKLINE(BR4ANDFILTER(BR4,10),H,L,0.5,1),COLOR00C5FF; 

    STICKLINE(BR4ANDFILTER(BR4,10),O,C,6,1),LINETHICK2,COLOR00C5FF;} 

    CR1:=(C-REF(C,1))/REF(C,1)*100  

    CR2:=V MA(V,5)*0.6; 

    CR3:=COUNT(CROSS(EMA13,EMA55),3)=1; 

    CR4:=ABS(EMA34-EMA55)/EMA55 0.03; 

    CR5:=EMA55 =EMA120ANDEMA55 =REF(EMA55,1); 

    CR6:=FILTER(CR1ANDCR2ANDCR3ANDCR4ANDCR5,2); 

    {STICKLINE(CR6,H,L,0.5,1),COLORF00FF0; 

    STICKLINE(CR6,O,C,6,1),LINETHICK2,COLORF00FF0;} 

    DRAWTEXT(CR6,L-0.09, 红衣侠女 ),COLORF00FF0; 

    DR1:=EMA13 EMA34ANDEMA34 EMA55; 

    DR2:=BARSLAST(CROSS(C,EMA55)); 

    DR3:=H=HHV(H,DR2); 

    DR4:=BARSLAST(DR3); 

    DR5:=COUNT(O CANDC REF(C,1)ANDC EMA55ANDBETWEEN((C-EMA55)/EMA55,0,0.02),DR4)=1; 

    DR6:=C REF(C,1); 

    DR7:=DR1ANDDR5ANDDR6; 

    DR8:=DR7ANDFILTER(DR7,10); 

    DRAWTEXT(DR8,L-0.09, 黑客点击 ),COLORD6BA63; 

    {STICKLINE(DR8,H,L,0.5,1),COLORD6BA63; 

    STICKLINE(DR8,O,C,6,1),LINETHICK2,COLORD6BA63;} 

    ER:=BARSLAST(REF(CROSS(EMA55,EMA34),1))ANDCROSS(EMA34,EMA55); 

    DRAWTEXT(ER,L-0.09, 均线互换 ),COLOR0099FF; 

    {STICKLINE(ER,H,L,0.5,1),COLOR0099FF; 

    STICKLINE(ER,O,C,6,1),LINETHICK2,COLOR0099FF;} 

    FR:=BARSLAST(REF(CROSS(EMA34,EMA13),1))ANDCROSS(EMA13,EMA34); 

    DRAWTEXT(FR,L-0.09, 梅开二度 ),COLORWHITE; 

    {STICKLINE(FR,H,L,0.5,1),COLORWHITE; 

    STICKLINE(FR,O,C,6,1),LINETHICK2,COLORWHITE;} 

    GR1:=BARSLAST(BETWEEN( BIAS.BIAS2 (6,13,24),0,5)); 

    GR2:=EMA13 EMA34ANDEMA34 EMA55ANDEMA13 REF(EMA13,1); 

    GR3:=COUNT( BIAS.BIAS2 (6,13,24) 10ANDH=HHV(H,GR1),GR1); 

    GR4:=H=HHV(H,GR1); 

    GR5:= MACD.MACD (12,26,9) REF( MACD.MACD (12,26,9),1); 

    GR6:=GR2ANDGR3ANDGR4; 

    GR7:=GR2ANDGR3ANDGR4ANDGR5; 

    DRAWTEXT(GR6ANDGR7,H+0.13, 见好就收! ),COLOR00FF00; 

    STICKLINE(GR6ANDGR7,H,H+0.09,4,0),COLOR00FF00; 

    HR2:=EMA13 =REF(EMA13,3)ANDEMA34 =REF(EMA34,1)ANDEMA55 =REF(EMA55,1)ANDCROSS(C,EMA13)ANDC 

    ROSS(C,EMA34)ANDCROSS(C,EMA55); 

    DRAWTEXT(HR2ANDFILTER(HR2,10),L-0.09, 三线推进 ),COLORFFC8FF; 

    STICKLINE(HR2ANDFILTER(HR2,10),H,L,0.5,1),COLORFFC8FF; 

    STICKLINE(HR2ANDFILTER(HR2,10),O,C,6,1),LINETHICK2,COLORFFC8FF; 

    M1=5M2=10M3=20M4=30M5=60M6=120 

    MA5MA(CLOSE,M1),LINETHICK1 

    MA10MA(CLOSE,M2),LINETHICK1 

    MA20MA(CLOSE,M3),LINETHICK1 

    MA30MA(C 

    LOSE,M4),LINETHICK1 

    MA60MA(CLOSE,M5),LINETHICK1 

    IF(MA5=REF(MA5,1)ANDMA5=MA10,MA5,DRAWNULL),COLORRED,LINETHICK1 

    IF(MA10=REF(MA10,1)ANDMA10=MA20,MA10,DRAWNULL),COLORRED,LINETHICK 

    1 

    IF(MA20=REF(MA20,1)ANDMA20=MA30,MA20,DRAWNULL),COLORRED,LINETHICK 

    1 

    IF(MA30=REF(MA30,1)ANDMA30=MA60,MA30,DRAWNULL),COLORRED,LINETHICK 

    1 

    DRAWICON(CROSS(MA10,MA5),H,2) 

    DRAWICON(CROSS(MA20,MA10),H,2) 

    DRAWICON(CROSS(MA30,MA20),H,2) 

    DRAWTEXT(CROSS(MA5,MA10),MA5, ○ ),LINETHICK1,COLORYELLOW 

    DRAWTEXT(CROSS(MA10,MA20),MA10, ◎ ),LINETHICK1,COLORYELLOW 

    DRAWTEXT(CROSS(MA20,MA30),MA20, ● ),LINETHICK1,COLORYELLOW 

    DRAWTEXT(CROSS(MA30,MA60),MA30, ☆ ),LINETHICK1,COLORYELLOW


    image.png

    公式解读:



    [源码注释]通达信公式动态公式解读

    公式解读:


    每日通达信公式解答:


     

    公式编写要求: 

    条件:1、穿三线(ma5ma10ma20);2、穿三线(vol51020)放倍量。 

    公式编写方法: 

    ZT:=C =REF(C,1)*1.095ANDC=H; 

    DZ:=MIN(MIN(MA(C,5),MA(C,10)),MA(C,20)); 

    GZ:=MAX(MAX(MA(C,5),MA(C,10)),MA(C,20)); 

    XG:V MAX(MAX(MA(V,5),MA(V,10)),MA(V,20))ANDZTANDL DZANDC GZANDV REF(V,1)*1.9;


    九毛八公式指标,一个优质的公式指标平台!
    九毛八公式指标 » 通达信均线公式(通达信均线选股公式) 加入收藏