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

    正文概述    2024-05-04 03:59:33  


    通达信公式源码概况:


    指标类别:通达信公式


    授权方式: 免费版


    指标评级: ★★★★★


    指标分类: 策略


    画线方法: 副图



    一、通达信expma四线主图指标公式


     

    快线:EMA(EMA(EMA(EMA(CLOSE,2),2),2),2),LINETHICK2,COLOR0000FF; 

    慢线:EMA(REF(快线,1),2),LINETHICK2,COLOR00FFFF; 

    1:EMA(EMA(EMA(EMA(EMA(CLOSE,55),2),2),2),2),LINETHICK2, 

    COLORFF00FF; 

    趋势2:EMA(EMA(EMA(EMA(EMA(CLOSE,144),2),2),2),2),LINETHICK2, 

    COLOR00FF00; 

    N:=40; 

    T:=BARSLAST(H REF(H,1)ANDREF(H,1) REF(H,2)); 

    HH:=REF(H,T+1); 

    LL:=FINDLOW(L,T=0,10,1); 

    LH:=SUM(H REF(H,1),10); 

    ZF:=(HH-LL)/LL*100; 

    TT:=BARSLAST(T=0ANDZF 20ANDLH 2); 

    T1:=SUMBARS(TT=0,1); 

    T2:=SUMBARS(TT=0,2); 

    T3:=SUMBARS(TT=0,3); 

    T4:=SUMBARS(TT=0,4); 

    H1:=REF(HH,T1-1); 

    H2:=REF(HH,T2-1); 

    H3:=REF(HH,T3-1); 

    H4:=REF(HH,T4-1); 

    AH:=MAX(MAX(MAX(H1,H2),H3),H4); 

    AL:=MIN(MIN(MIN(H1,H2),H3),H4); 

    BL:=AH/AL 1.15; 

    TJ:=COUNT(CROSS(C,H1),TT+1)=1ANDCROSS(C,H1); 

    TJ1:=H4 H3ANDH3 H2ANDH2 H1; 

    XG:=TJANDBLANDT4 NANDTJ1; 

    XG1:=COUNT(XG,T4+1)=1ANDXG; 

    STICKLINE(XG1,H,L,0,1),COLORFFFFFF; 

    STICKLINE(XG1,C,O,3.2,0),COLOR555555; 

    STICKLINE(XG1,C,O,2.6,0),COLOR777777; 

    STICKLINE(XG1,C,O,1.9,0),COLOR999999; 

    STICKLINE(XG1,C,O,1.1,0),COLORCCCCCC; 

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

    DRAWICON(XG1,L*0.96,1); 

    QF4:=BACKSET(XG1,T4+1); 

    DT4:=BARSLAST(CROSS(QF4=1,0.5)); 

    QF1:=BACKSET(XG1,T1+1); 

    DT1:=BARSLAST(CROSS(QF1=1,0.5)); 

    ZG:=REFX(H,BARSNEXT(DT1=0)); 

    DD:=LLV(L,DT4+1); 

    ZD:=REFX(DD,BARSNEXT(DT1=0)); 

    ZFF:=(HHV(H,DT4+1)-LLV(L,DT4+1))/LLV(L,DT4+1)*100; 

    AA:=REFX(ZFF,BARSNEXT(DT1=0)); 

    NOTEXT1:DRAWLINE(DT4=0,ZG,DT1=0,REF(H,DT1),1),COLORYELLOW; 

    NOTEXT2:DRAWLINE(DT4=0,ZD,DT1=0,REF(DD,DT1),0),COLORYELLOW; 

    STICKLINE(DT4=0,ZG,ZD,0,0),COLORYELLOW; 

    STICKLINE(DT1=0,REF(H,DT1),REF(DD,DT1),0,0),COLORYELLOW; 

    A:=VARCAT(VARCAT( 箱体振幅: ,VAR2STR(AA,2)), ﹪  

    B:=VARCAT(VARCAT( 价: ,VAR2STR(ZG,2)), 元  

    DRAWTEXT(DT4=0,NOTEXT2*0.96,A)COLORYELLOW; 

    DRAWTEXT(DT4=0,NOTEXT1*1.025,B)COLORYELLOW; 

    a:=BARSCOUNT(CLOSE); 

    ah:=HHV(HIGH,120); 

    al:=LLV(LOW,120); 

    b0:=(ah-al)/40; 

    b1:=HIGH+b0; 

    b2:=LOW-b0; 

    DRAWTEXT((a+0)/7=FLOOR((a+0)/7),l*0.983, ),COLORFFFFFF; 

    AMV0:=((VOL*(((OPEN+CLOSE)+HIGH)+LOW))/4); 

    势:=(WMA(AMV0,21)/WMA(VOL,21)); 

    压线:((6*HHV(势,2))-(5*势)),LINETHICK1,colorEE8400; 

    N1:=SYSPARAM(3); 

    N:=((N1-SYSPARAM(2))+1); 

    HH:=HHV(HIGH,N); 

    LL:=LLV(LOW,N); 

    最高:=HH[N1]POINTDOT; 

    最低:LL[N1],colorFF; 

    (最低+((最高-最低)*0.191)),POINTDOT,LINETHICK1,colorEE8400; 

    (最低+((最高-最低)*0.5))POINTDOT,colorFF00FF; 

    (最低+((最高-最低)*0.809)); 

    DRAWTEXT((BARSCOUNT(CLOSE)=SYSPARAM(2)),REF((最低+((最高-最低)*0.191)),BARSLAST((BARSCOUNT(CLOSE)=SYSPARAM(2)))), 水平线↑ ),colorFFFF; 

    DRAWTEXT((BARSCOUNT(CLOSE)=SYSPARAM(2)),REF((最低+((最高-最低)*0.5)),BARSLAST((BARSCOUNT(CLOSE)=SYSPARAM(2)))), ↑ ),colorFFFF; 

    STICKLINE(((CLOSE OPEN)OR((CLOSE=OPEN)AND(CLOSE REF(CLOSE,1)))),LOW,HIGH,0.1,0),colorFF; 

    STICKLINE(((CLOSE OPEN)OR((CLOSE=OPEN)AND(CLOSE REF(CLOSE,1)))),OPEN,CLOSE,7,0),colorFF; 

    STICKLINE(((CLOSE OPEN)OR((CLOSE=OPEN)AND(CLOSE =REF(CLOSE,1)))),LOW,HIGH,0.1,0),colorFFFF00; 

    STICKLINE(((CLOSE OPEN)OR((CLOSE=OPEN)AND(CLOSE =REF(CLOSE,1)))),OPEN,CLOSE,7,0),colorFFFF00; 

    STICKLINE((OPEN =CLOSE),CLOSE,OPEN,0,0),colorFF00; 

    STICKLINE((OPEN =CLOSE),CLOSE,OPEN,8,0),color8800; 

    STICKLINE((OPEN =CLOSE),CLOSE,OPEN,7,0),color9900; 

    STICKLINE((OPEN =CLOSE),CLOSE,OPEN,6,0),colorAA00; 

    STICKLINE((OPEN =CLOSE),CLOSE,OPEN,5,0),colorBB00; 

    STICKLINE((OPEN =CLOSE),CLOSE,OPEN,4,0),colorCC00; 

    STICKLINE((OPEN =CLOSE),CLOSE,OPEN,3,0),colorDD00; 

    STICKLINE((OPEN =CLOSE),CLOSE,OPEN,2,0),colorEE00; 

    STICKLINE((OPEN =CLOSE),CLOSE,OPEN,1,0),colorFF00; 

    STICKLINE((CLOSE OPEN),CLOSE,OPEN,0,0),colorFFBBFF; 

    STICKLINE((CLOSE OPEN),CLOSE,OPEN,8,0),colorFF00FF; 

    STICKLINE((CLOSE OPEN),CLOSE,OPEN,7,0),colorFF22FF; 

    STICKLINE((CLOSE OPEN),CLOSE,OPEN,6,0),colorFF44FF; 

    STICKLINE((CLOSE OPEN),CLOSE,OPEN,5,0),colorFF66FF; 

    STICKLINE((CLOSE OPEN),CLOSE,OPEN,4,0),colorFF88FF; 

    STICKLINE((CLOSE OPEN),CLOSE,OPEN,3,0),colorFF99FF; 

    STICKLINE((CLOSE OPEN),CLOSE,OPEN,2,0),colorFFAAFF; 

    STICKLINE((CLOSE OPEN),CLOSE,OPEN,1,0),colorFFBBFF; 

    DIFF:=(EMA(CLOSE,5)-EMA(CLOSE,26)); 

    DEA:=EMA(DIFF,3); 

    MACD:=(2*(DIFF-DEA)); 

    MA5:=MA(CLOSE,5); 

    MA20:=MA(CLOSE,20); 

    MA120:=MA(CLOSE,120); 

    AA10:=MA(CLOSE,10); 

    Y:=((LLV(LOW,1)=LLV(LOW,60))AND((CLOSE/REF(CLOSE,1)) 1.04)); 

    WX:=MA(CLOSE,0); 

    MB5:=(MA(CLOSE,15)*IF((20 5),WX,1)); 

    MB7:=(MA(CLOSE,20)*IF((20 7),WX,1)); 

    MB5:=(MA(CLOSE,15)*IF((20 5),WX,1)); 

    MB7:=(MA(CLOSE,20)*IF((20 7),WX,1)); 

    M5:=(MA(CLOSE,15)*IF((20 5),WX,1)); 

    DRAWTEXT(FILTER(((((((REF(CLOSE,1) MB7)AND(LOW MB7))AND(CLOSE MB7))AND 

    ((MB5-REF(MB5,1)) 0))AND(REF(CLOSE,2) REF(CLOSE,3)))AND((CLOSE/OPEN) 1.053)),4),(LOW-0.11), ★黄金 ),colorFFFF; 

    DDD:=(EMA(CLOSE,10)-EMA(CLOSE,100)); 

    AMA:=EMA(DDD,4); 

    BMA:=(EMA(CLOSE,3)-EMA(CLOSE,30)); 

    BMB:=EMA(BMA,4); 

    BMA1:=(EMA(CLOSE,13)-EMA(CLOSE,30)); 

    SS:=(MA(CLOSE,8)*0.998); 

    DRAWICON(((DDD =AMA)AND(BMA =BMB)),(SS*0.999),10); 

    PARTLINE(((DDD AMA)AND(BMA =BMB)),SS),LINETHICK2,colorFFFF; 

    PARTLINE(((DDD =AMA)AND(BMA BMB)),SS),LINETHICK1,colorFFFF00; 

    PARTLINE(((DDD AMA)AND(BMA BMB)),SS),LINETHICK1,colorFFFFFF; 

    PARTLINE(((DDD =AMA)AND(BMA =BMB)),SS),LINETHICK1,colorFF; 

    HH:=FILTER(((DDD =AMA)AND(BMA =BMB)),33); 

    DRAWICON(HH,SS,0); 

    VARR1:=((SMA(MAX((CLOSE-REF(CLOSE,1)),0),12,1)/SMA(ABS((CLOSE-REF(CLOSE,1))),12,1))*100); 

    DRAWICON(CROSS(82,VARR1),(HIGH*1.07),5); 

    VAR1:=REF(CLOSE,1); 

    VAR2:=((SMA(MAX((CLOSE-VAR1),0),12,1)/SMA(ABS((CLOSE-VAR1)),12,1))*100); 

    顶部雷达:=(CROSS(80,VAR2)*1); 

    趋势线:=((3*SMA((((CLOSE-LLV(LOW,28))/(HHV(HIGH,28)-LLV(LOW,28)))*100),5,1))-(2*SMA(SMA((((CLOSE-LLV(LOW,27))/(HHV(HIGH,27)-LLV(LOW,27)))*100),5,1),3,1))); 

    短期乖离率:=(((CLOSE-MA(CLOSE,13))/MA(CLOSE,13))*100); 

    DRAWTEXT(FILTER((IF(((CROSS(趋势线,10)AND((CLOSE/LOW) 1.04))AND(短期乖离率 0.35)),1,0)AND(CLOSE OPEN)),5),(LOW-0.07), 底 ),ALIGN2,colorFFFF; 

    VARA:=EMA(((AMOUNT/VOL)/100),3); 

    D:=LLV(CLOSE,20); 

    XXY:=EMA(VARA,88); 

    XXD:=(XXY*0.74); 

    DRAWTEXT(FILTER(((((((短期乖离率 6)AND(OPEN =D))AND(LOW =XXD))AND((CLOSE/OPEN) 1.03))AND(CLOSE REF(CLOSE,1)))AND((CLOSE/LOW) 1.03)),5),(LOW-(LOW*0.09)), ★ ),colorFF00FF; 

    均价:=((((HIGH+LOW)+OPEN)+CLOSE)/4); 

    B:=((2*EMA(LLV(均价,88),5))-均价); 

    黄圆出买:((3*B)-(2*SMA(B,5,1))),LINETHICK0; 

    DRAWTEXT(CROSS(CLOSE,黄圆出买),l*0.97, ● )colorffff; 

    DRAWTEXT(CROSS(CLOSE,黄圆出买),l*0.97, ¤ )COLORMAGENTA; 

    买进价:=((c-ref(ma(c,55),1))/6+ma(c,55))*1.004; 

    买进条件:=cross(c,买进价)and买进价 ref(买进价,1); 

    买进:STICKLINE(买进条件,H,L,0,1),colormagenta,linethick2; 

    STICKLINE(买进条件,O,C,8,9),colormagenta,linethick2; 

    DRAWICON(买进条件,l*0.97,1),COLORRED; 

    // 

    KS:=(C-MA(C,33))/MA(C,33)*(-200); 

    RKS:=REF(KS,1); 

    FT:=RKS/KS =1.23ANDRKS =8ANDC/REF(C,1) =1.03; 

    反弹:STICKLINE(Ft,H,L,0,1),colormagenta,linethick2; 

    STICKLINE(FT,O,C,8,9),COLORYELLOW,linethick2; 

    {} 

    var10:=ma(c,80)-ma(c,10)/3; 

    var11:=ref(c,1); 

    var12:=sma(max(c-var11,0),18,1)/sma(abs(c-var11),18,1)*100; 

    drawicon(cross(79,var12),h*1.035,2); 

    drawtext(cross(79,var12),h*1.04, 抛↓ ),colorffffff; 

    MACD2:(EXPMA(CLOSE,30)-REF(EXPMA(CLOSE,30),1))/REF(EXPMA(CLOSE,30),1),COLORstICK; 

    DIF2:EMA(SUM(MACD2,2),3),LINETHICK2,COLORYELLOW; 

    入1:IF(DIF2 REF(DIF2,1),DIF2,DRAWNULL),COLORRED,LINETHICK2; 

    入2:IF(DIF2 REF(DIF2,1),DIF2,DRAWNULL),COLOR00FF00,LINETHICK2; 

    DEA2:MA(DIF2,5); 

    s0:=(ema(c,30)-ref(ema(c,30),1))/ref(ema(c,30),1); 

    cross(ema(c,5),ema(c,29))andma(v,8) ma(v,89)and(atan((ema(c,5)/ref(ema(c,5),1)-1)*100)*180/3.14) 45andcross(ema(sum(s0,2),3),ma(ema(sum(s0,2),3),5)); 


    通达信expma四线主图指标公式(通达信公式)

    公式解读:


    每日通达信公式解答:


     

    编写条件: 

    5日内有突破10日的公式。 

    编写方法: 

    ZT:=IF(NAMELIKE( ST )ORNAMELIKE( *ST )ORNAMELIKE( SST ) 

    ORNAMELIKE( S*ST )ORNAMELIKE( SST ),(C =ZTPRICE(REF(CLOSE,1),0.05)ANDC=H), 

    IF((CODELIKE( 688 )OR(CODELIKE( 300 )ANDDATE =1200824)),(C =ZTPRICE(REF(CLOSE,1),0.2)ANDC=H) 

    ,(C =ZTPRICE(REF(CLOSE,1),0.1)ANDC=H))); 

    XG:COUNT(ZTANDCROSS(C,MA(C,10)),5)=1;




    九毛八公式指标,一个优质的公式指标平台!
    九毛八公式指标 » 通达信expma四线主图指标公式(通达信公式) 加入收藏