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

    正文概述    2024-05-04 03:01:39  


    通达信公式源码概况:


    指标类别:通达信公式


    授权方式: 免费版


    指标评级: ★★★★★


    指标分类: 策略


    画线方法: 副图



    一、通达信月金蜘蛛指标公式


     

    DIF1:=EMA(CLOSE,7)-EMA(CLOSE,19),COLORWHITE; 

    DEA1:=EMA(DIF1,9); 

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

    K日:SMA(RSV1,3,1),COLORWHITE; 

    D日:SMA(K日,3,1),COLORYELLOW; 

    J日:3*K日-2*D日,COLORFF00FF; 

    底部:=0,COLORF00FF0,LINETHICK2; 

    XG:=CROSS(J日,底部); 

    VAR11:=REF(CLOSE,1); 

    VAR21:=SMA(MAX(CLOSE-VAR11,0),7,1)/SMA(ABS(CLOSE-VAR11),7,1)*100; 

    MJ3:=FILTER(REF(VAR21,1) 20ANDVAR21 REF(VAR21,1),5); 

    DIF:=EMA(CLOSE,12)-EMA(CLOSE,29); 

    DEA:=EMA(DIF,9); 

    MD:=(DIF-DEA)*2; 

    MJ1:=CROSS(DIF,DEA); 

    DIFF:=EMA(DCLOSE,12)-EMA(DCLOSE,26);{来自经典副B} 

    DEAQ:=EMA(DIFF,9),COLORFFFF00; 

    MACD:=(DIFF-DEAQ)*2; 

    A1:=BARSLAST(REF(CROSS(DIFF,DEAQ),1)); 

    A2:=BARSLAST(REF(CROSS(DEAQ,DIFF),1)); 

    底:=REF(CLOSE,A1+1) CLOSEANDDIFF REF(DIFF,A1+1)ANDCROSS(DIFF,DEAQ); 

    BIAS1:=(C-MA(C,6))/MA(C,6)*100; 

    BIAS2:=(C-MA(C,12))/MA(C,12)*100; 

    BIAS3:=(C-MA(C,24))/MA(C,24)*100; 

    BIAS:=(BIAS1+2*BIAS2+3*BIAS3)/6; 

    乖离:=MA(BIAS,3); 

    XG3:=CROSS(BIAS,乖离)AND乖离 -9.5; 

    XG4:=MJ3ANDMJ1; 

    XG5:=XG3ANDMJ1; 

    WC1:=MJ3ANDXG3ANDXG; 

    WC2:=MJ3ANDXG; 

    WC3:=XG3ANDXG; 

    WC4:=MJ3ANDXG3AND底背离; 

    DRAWICON(XG4ORXG5ORWC1ORWC2ORWC3ORWC4,50,23); 

    N:=5; 

    VAR1:=CLOSE REF(CLOSE,1)ANDCLOSE REF(CLOSE,2); 

    VAR2:=REF(VAR1,1)ANDCLOSE =REF(CLOSE,1) =REF(CLOSE,2); 

    VAR3:=REF(VAR2,1)ANDCLOSE =REF(CLOSE,1)ANDCLOSE =REF(CLOSE,2); 

    VAR4:=REF(VAR3,1)ANDCLOSE =REF(CLOSE,1) =REF(CLOSE,2); 

    VAR5:=REF(VAR4,1)ANDCLOSE =REF(CLOSE,1)ANDCLOSE =REF(CLOSE,2); 

    VAR6:=REF(VAR5,1)ANDCLOSE =REF(CLOSE,1) =REF(CLOSE,2); 

    VAR7:=REF(VAR6,1)ANDCLOSE =REF(CLOSE,1)ANDCLOSE =REF(CLOSE,2); 

    VAR8:=REF(VAR7,1)ANDCLOSE =REF(CLOSE,1) =REF(CLOSE,2); 

    VAR9:=REF(VAR8,1)ANDCLOSE =REF(CLOSE,1)ANDCLOSE =REF(CLOSE,2); 

    VARA:=REF(VAR9,1)ANDCLOSE =REF(CLOSE,1) =REF(CLOSE,2); 

    VARB:=REF(VARA,1)ANDCLOSE =REF(CLOSE,1)ANDCLOSE =REF(CLOSE,2); 

    VARC:=REF(VARB,1)ANDCLOSE =REF(CLOSE,1) =REF(CLOSE,2); 

    VARD:=CLOSE REF(CLOSE,1)ANDCLOSE REF(CLOSE,2); 

    VARE:=REF(VARD,1)ANDCLOSE =REF(CLOSE,1)ANDCLOSE =REF(CLOSE,2); 

    VARF:=REF(VARE,1)ANDCLOSE =REF(CLOSE,1) =REF(CLOSE,2); 

    VAR10:=REF(VARF,1)ANDCLOSE =REF(CLOSE,1)ANDCLOSE =REF(CLOSE,2); 

    VAR11:=REF(VAR10,1)ANDCLOSE =REF(CLOSE,1) =REF(CLOSE,2); 

    VAR12:=REF(VAR11,1)ANDCLOSE =REF(CLOSE,1)ANDCLOSE =REF(CLOSE,2); 

    VAR13:=REF(VAR12,1)ANDCLOSE =REF(CLOSE,1) =REF(CLOSE,2); 

    VAR14:=REF(VAR13,1)ANDCLOSE =REF(CLOSE,1)ANDCLOSE =REF(CLOSE,2); 

    VAR15:=REF(VAR14,1)ANDCLOSE =REF(CLOSE,1) =REF(CLOSE,2); 

    VAR16:=REF(VAR15,1)ANDCLOSE =REF(CLOSE,1)ANDCLOSE =REF(CLOSE,2); 

    VAR17:=REF(VAR16,1)ANDCLOSE =REF(CLOSE,1) =REF(CLOSE,2); 

    VAR18:=REF(VAR17,1)ANDCLOSE =REF(CLOSE,1)ANDCLOSE =REF(CLOSE,2); 

    VAR19:=REF(VARDORVAREORVARFORVAR10ORVAR11ORVAR12ORVAR13ORVAR14ORVAR15ORVAR16ORVAR17ORVAR18,1)ANDVAR1; 

    TYP:=(HIGH+LOW+CLOSE)/3; 

    CC1:=(TYP-MA(TYP,14))/(0.015*AVEDEV(TYP,14)),COLORFF00FF; 

    C1:=SMA(CC1,3,1); 

    C2:=SMA(C1,3,1); 

    C3:=3*C1-2*C2; 

    CB1:=EMA(C3,5); 

    CB2:=REF(CB1,1); 

    LC:=REF(CLOSE,1); 

    RSI1:=SMA(MAX(CLOSE-LC,0),6,1)/SMA(ABS(CLOSE-LC),6,1)*100; 

    RSI:=(RSI1-50)*5,LINETHICK2,COLORFFFFFF; 

    R1:=SMA(RSI,3,1); 

    D1:=SMA(R1,3,1); 

    J1:=3*R1-2*D1; 

    RR1:=EMA(J1,5); 

    RR2:=REF(RR1,1); 

    RR:=RR1  

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

    K:=SMA(RSV,3,1); 

    K1:=(K-50)*5,COLOR00FF00; 

    K2:=SMA(K1,3,1); 

    D2:=SMA(K2,3,1); 

    J2:=3*K2-2*D2; 

    BB1:=EMA(J2,5); 

    BB2:=REF(BB1,1); 

    CC2:=(TYP-MA(TYP,14))/(0.015*AVEDEV(TYP,14)),COLORYELLOW; 

    现:RRANDNOT(REF(RR,1))AND(RR1 -100ANDBB1 -100)ANDCB1 -100ANDVAR19=1; 

    MNC:=C#YEAR,NODRAW; 

    MNO:=O#YEAR,NODRAW; 

    MNH:=H#YEAR,NODRAW; 

    MNL:=L#YEAR,NODRAW; 

    STICKLINE(MNC =MNO,MNH,MNL,6,0),COLOR34567F,; 

    STICKLINE(MNC MNO,MNH,MNL,6,0),COLOR005500,; 

    MJC:=C#SEASON,NODRAW; 

    MJO:=O#SEASON,NODRAW; 

    MJH:=H#SEASON,NODRAW; 

    MJL:=L#SEASON,NODRAW; 

    STICKLINE(MJC =MJO,MJH,MJL,5,0),COLORD66998; 

    STICKLINE(MJC MJO,MJH,MJL,5,0),COLORGRAY; 

    JGT:=(O#SEASON REF(O#SEASON,1))OR(O#SEASON REF(O#SEASON,1))OR(H#SEASON REF(H#SEASON,1)); 

    T0:=BARSLAST(JGT); 

    季高:HHV(H,T0+1),NODRAW; 

    季低:LLV(L,T0+1),NODRAW; 

    季开:O#SEASON,COLORMAGENTA,NODRAW; 

    季收:C#SEASON,NODRAW; 

    季中:=(季高+季低)/2,COLORYELLOW,NODRAW; 

    上季中:REF(季中,T0+1)COLORYELLOW,NODRAW; 

    MYO:O#MONTH,COLORLIGREEN,NODRAW; 

    MYH:=H#MONTH,NODRAW; 

    MYL:=L#MONTH,NODRAW; 

    MYC:=C#MONTH,NODRAW; 

    月开日:=BARSLAST(MONTH-REF(MONTH,1)=1)NODRAW; 

    STICKLINE(MYC =MYO,MYO,MYC,4,0),COLOR220055; 

    STICKLINE(MYC MYO,MYO,MYC,4,0),COLORLICYAN; 

    ZGT:=(H#WEEK REF(H#WEEK,1))OR(H#WEEK REF(H#WEEK,1)); 

    周开日:=BARSLAST(ZGT); 

    周开:O#WEEK,COLORWHITE,NODRAW; 

    周高:=H#WEEK,NODRAW; 

    周低:=L#WEEK,NODRAW; 

    周收:=C#WEEK,COLORFF6EC7,NODRAW; 

    上周高:REF(周高,周开日+1)COLORCYAN,NODRAW; 

    上2周高:REF(上周高,周开日+1)COLORCYAN,NODRAW; 

    DRAWKLINE(H,O,L,C);





    image.png




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






    输出XG:2日前的收盘价上穿收盘价的21日简单移动平均 AND 收盘价 收盘价的21日简单移动平均







    每日通达信公式解答:

     

    选股条件 

    连续阳线即,从上一次阴线开始到今为止全为阳线。 

    编写源码 

    AA:=BARSLAST(C  

    BB:AA




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