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

    正文概述    2024-05-04 04:05:53  


    通达信公式源码概况:


    指标类别:通达信公式


    授权方式: 免费版


    指标评级: ★★★★★


    指标分类: 策略


    画线方法: 副图



    一、通达信主图指标公式


     

    A:=(3*C+L+O+H)/6; 

    X:=(20*A+19*REF(A,1)+18*REF(A,2)+17*REF(A,3)+16*REF(A,4)+15*REF(A,5)+ 

    14*REF(A,6)+13*REF(A,7)+12*REF(A,8)+11*REF(A,9)+10*REF(A,10)+9*REF(A,11)+8*REF(A,12) 

    +7*REF(A,13)+6*REF(A,14)+5*REF(A,15)+4*REF(A,16)+3*REF(A,17)+2*REF(A,18)+ 

    REF(A,20))/210; 

    S2:=SMA(C,3,1); 

    S6:=SMA(C,5,1); 

    DK:=2*(S2-S6); 

    :EMA(X,13),COLORFF00FF,LINETHICK0; 

    短期底部:LLV(HIGH,30),LINETHICK2,COLORFFCC00; 

    IF(MA(C,3),MA(C,3),DRAWNULL),COLORYELLOW,LINETHICK2; 

    IF(MA(C,9),MA(C,9),DRAWNULL),COLORMAGENTA,LINETHICK2; 

    IF(MA(C,23.5),MA(C,23.5),DRAWNULL),COLORWHITE; 

    DRAWKLINE(HIGH,OPEN,LOW,CLOSE); 

    MA5:=MA(C,5); 

    MA10:=MA(C,10); 

    MA30:=MA(C,30); 

    FA:=BARSLAST(CROSS(MA10,MA5))ANDCROSS(MA5,MA10); 

    FB:=FAANDMA5 MA30ANDMA10 MA30ANDMA10 REF(MA10,1); 

    DRAWTEXT(FB,L-0.58, ★红牛 ),COLORRED; 

    V1:=EMA(CLOSE,5); 

    V2:=EMA(EMA(CLOSE,90)*1.01,10); 

    DRAWTEXT(CROSS(V1,V2),V1+0.05, 牛起步 ),COLOR00FF00; 

    VAR1:=LLV(LOW,21); 

    VAR2:=HHV(HIGH,21); 

    AK1:=EMA((((CLOSE-VAR1)/(VAR2-VAR1))*100),5); 

    AK:=EMA((((CLOSE-VAR1)/(VAR2-VAR1))*50),13); 

    AB:=CROSS(AK1,AK); 

    DRAWTEXT((AB=1),(LOW*0.99), ○牛窝 ),COLORYELLOW; 

    AA1:=AMOUNT/V; 

    BB1:=L AA1*0.9; 

    CC1:=(C-REF(C,1))/REF(C,1)*100 1.2; 

    DD1:=L MA(C,5)*0.921; 

    EE1:=V MA(V,5)*1.5; 

    老鼠仓:=BB1ANDCC1ANDDD1ANDEE1,LINETHICK0,COLOR0099FF; 

    DRAWTEXT(老鼠仓,L*0.99, 老鼠仓 ),COLOR0099FF; 

    VAR3AA:=IF((CLOSE REF(CLOSE,1)),88,0); 

    VAR4AA:=IF(((CLOSE)/(REF(CLOSE,1)) 1.05)AND((HIGH)/(CLOSE) 1.01)AND(VAR3AA 0),91,0); 

    DRAWTEXT(FILTER((VAR4AA 90),45),(LOW)*(0.93), ★大胆搏 ),COLOR00FFFF; 

    DRAWTEXT(FILTER((VAR4AA 90),35),(LOW)*(0.99000001), ★加仓 ),COLOR00FFFF; 

    A1AA:=9; 

    A2AA:=(REF(CLOSE,A1AA+1) CLOSE); 

    DRAWTEXT(FILTER((A2AA -0.5),84),(HIGH)*(1.05), 小心变盘 ),COLORFFFFFF; 

    VAR6:=REF(C,1); 

    VAR7:=SMA(MAX(C-VAR6,0),6,1)/SMA(ABS(C-VAR6),6,1)*100; 

    DRAWTEXT(CROSS(82,VAR7),H*1.01, ▼ ),COLORYELLOW; 

    VA:=MA(100*(CLOSE-LLV(CLOSE,34))/(HHV(HIGH,34)-LLV(LOW,34)),5)-20; 

    VAR2:=2*ABS(VA); 

    VAR3:=100-(100-3*SMA((CLOSE-LLV(LOW,55))/(HHV(HIGH,55)-LLV(LOW,55))*100,20,1)+2*SMA(SMA((CLOSE-LLV(LOW,55))/(HHV(HIGH,55)-LLV(LOW,55))*100,20,1),15,1)); 

    VAR4:=100-(100-3*SMA((OPEN-LLV(LOW,55))/(HHV(HIGH,55)-LLV(LOW,55))*100,20,1)+2*SMA(SMA((OPEN-LLV(LOW,55))/(HHV(HIGH,55)-LLV(LOW,55))*100,20,1),15,1)); 

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

    VAR6:=(VAR5-MA(VAR5,10))/(0.015*AVEDEV(VAR5,10)); 

    VAR7:=(VAR5-MA(VAR5,30))/(0.015*AVEDEV(VAR5,30)); 

    VAR8:=IF(VAR6 =150ANDVAR6 200ANDVAR7 =150ANDVAR7 200,10,0); 

    VAR9:=IF(VAR6 =-150ANDVAR6 -200ANDVAR7 =-150ANDVAR7 -200,-10,VAR8); 

    VARA:=(CLOSE-MA(CLOSE,13))/MA(CLOSE,13)*100; 

    VARB:=100-ABS(VARA); 

    VARC:=3*SMA((INDEXC-LLV(INDEXL,55))/(HHV(INDEXH,55)-LLV(INDEXL,55))*100,20,1)-2*SMA(SMA((INDEXC-LLV(INDEXL,55))/(HHV(INDEXH,55)-LLV(INDEXL,55))*100,20,1),15,1); 

    VARD:=3*SMA((INDEXO-LLV(INDEXL,55))/(HHV(INDEXH,55)-LLV(INDEXL,55))*100,20,1)-2*SMA(SMA((INDEXO-LLV(INDEXL,55))/(HHV(INDEXH,55)-LLV(INDEXL,55))*100,20,1),15,1); 

    VARE:=REF(LOW,1)*0.9; 

    VARF:=LOW*0.9; 

    VA0:=(VARF*VOL+VARE*(CAPITAL-VOL))/CAPITAL; 

    VA1:=EMA(VA0,30); 

    VA2:=VA1-CLOSE; 

    VA3:=REF(CLOSE,1); 

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

    VA5:=SMA(MAX(CLOSE-VA3,0),13,1)/SMA(ABS(CLOSE-VA3),13,1)*100; 

    VA6:=BARSCOUNT(CLOSE); 

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

    VA8:=((-100)*(HHV(HIGH,60)-CLOSE)/(HHV(HIGH,60)-LLV(LOW,60))+50)*2; 

    VA9:=(CLOSE-LLV(LOW,15))/(HHV(HIGH,15)-LLV(LOW,15))*100; 

    VAA:=(SMA(VA9,4,1)-50)*2; 

    VAB:=SMA(VAA,3,1); 

    VAC:=(INDEXC-LLV(INDEXL,14))/(HHV(INDEXH,14)-LLV(INDEXL,14))*100; 

    VAD:=SMA(VAC,4,1); 

    VAE:=SMA(VAD,3,1); 

    VAF:=(HHV(HIGH,30)-CLOSE)/CLOSE*100; 

    VAR20:=IF(VA7 =25ANDVA8 -95ANDVAF 20ANDVAB -30ANDVAE 30ANDVA2 =-0.25ANDVA4 22ANDVA5 28ANDVA6 50,80,0); 

    大趋势:VAR3; 

    顶线:IF(VARB 90,VARB,100); 

    多方:IF(VA 0,VA,0),LINESTICK; 

    空方:0-IF(VA 0,VAR2,0),LINESTICK; 

    :VAR20ANDPWINNER(5,CLOSE) 1.1,COLORRED; 

    预警系统:IF(VAR7 =200ANDVAR6 =150ORCROSS(65,多方),15,IF(VAR7 =-200ANDVAR6 =-150,-15,VAR9))+65,COLOREE00EE; 

    STICKLINE(VAR3 =REF(VAR4,1),VAR3,VAR4,8,0),COLORWHITE; 

    STICKLINE(VAR3 REF(VAR4,1),VAR3,VAR4,8,0),COLORRED; 

    VAR21:=CLOSE MA(CLOSE,20)ANDMA(CLOSE,20) =REF(MA(CLOSE,20),1); 

    VAR22:=CLOSE; 

    VAR23:=多方 60AND预警系统 65AND顶线=100; 

    VAR24:=多方 48AND预警系统 65AND顶线 100; 

    VAR25:=空方 -38AND预警系统 65; 

    VAR26:=抄底 50AND顶线 90; 

    VAR27:=VAR3 REF(VAR4,1)ANDVOL REF(VOL,1)ANDCLOSE REF(CLOSE,1); 

    VAR28:=VAR3 =REF(VAR4,1)ANDCLOSE=REF(空方,1)ANDVARC; 

    DRAWTEXT(VAR21ANDCOUNT(VAR21,30)=1,10, 上升通道! ),COLORYELLOW; 

    VAR29:DRAWTEXT(VAR22ANDCOUNT(VAR22,30)=1,55, 下降通道!  

    VAR2A:DRAWTEXT(VAR23ANDCOUNT(VAR23,30)=1,55, 上涨过急!  

    VAR2B:DRAWTEXT(VAR24ANDCOUNT(VAR24,30)=1,75, 出货!  

    VAR2C:DRAWTEXT(VAR25ANDCOUNT(VAR25,30)=1,50, 有小反弹!  

    VAR2D:DRAWTEXT(VAR26ANDCOUNT(VAR26,30)=1,30, 抢反弹!  

    VAR2E:DRAWTEXT(VAR27ANDCOUNT(VAR27,30)=1,-10, 进场!  

    DRAWTEXT(VAR28ANDCOUNT(VAR28,30)=1,90, 见顶回落! ),COLORYELLOW; 

    AR1:=(2*CLOSE+HIGH+LOW+OPEN)/5; 

    VAR2:=EMA(EMA(EMA(VAR1,4),4),4); 

    SJ:(VAR2-REF(VAR2,1))/REF(VAR2,1)*100,COLORSTICK; 

    SD:MA(SJ,2); 

    SK:MA(SJ,1); 

    VAR3:=CROSS(SK,SD)ANDSK  

    VAR4:=CROSS(SK,0); 

    VAR5:=CROSS(SK,SD)ANDSK  

    买一:VAR3,STICK; 

    买二:VAR4ORVAR5,STICK; 

    VAR6:=CROSS(SD,SK); 

    卖出:VAR6,STICK; 

    强弱分界:0,CIRCLEDOT; 

    紫柱 

    VAR1:=(2*CLOSE+HIGH+LOW+OPEN)/5; 

    VAR2:=EMA(EMA(EMA(VAR1,4),4),4); 

    SJ:=(VAR2-REF(VAR2,1))/REF(VAR2,1)*100,COLORSTICK; 

    SD:=MA(SJ,2); 

    SK:=MA(SJ,1); 

    AA:CROSS(SK,SD)ANDSK  

    绿柱 

    VAR1:=(2*CLOSE+HIGH+LOW+OPEN)/5; 

    VAR2:=EMA(EMA(EMA(VAR1,4),4),4); 

    SJ:=(VAR2-REF(VAR2,1))/REF(VAR2,1)*100,COLORSTICK; 

    SD:=MA(SJ,2); 

    SK:=MA(SJ,1); 

    VAR4:=CROSS(SK,0); 

    VAR5:=CROSS(SK,SD)ANDSK  

    AA:VAR4ORVAR5;

    公式解读:

    指标公式知识:

    公式解读:


    每日通达信公式解答:


     

    编写条件: 

    回补向下跳空的公式。 

    编写方法: 

    XG:O REF(L,1)ANDH REF(L,1);




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