最新公告
  • 欢迎您光临九毛八公式指标网www.9m8.cn,本站全新改版试运行,期间内容全部免费,欢迎下载!欢迎加入本站VIP
  • 资金动力指标公式源码(流动资金指标公式源码)

    正文概述    2024-05-04 04:24:49  


    通达信指标公式源码概况:


    指标类别: 通达信指标公式


    授权方式: 免费版


    指标评级: ★★★★★


    指标分类: 策略


    画线方法: 副图



    一、动力指标公式源码


    AJ:=VOL*CLOSE;

    BJ:=SUM(AJ,1)/SUM(VOL,1); 

    B1J:=EMA(BJ,8); 

    J:=(BJ-B1J)*100/BJ;

    DRAWBAND(主力J,RGB(250,180,80),0,RGB(0,180,180));

    DRAWBAND(3*(EMA(C,3)-EMA(C,8)-EMA(EMA(C,3)-EMA(C,8),20))*2,RGB(250,0,00),0,RGB(0,80,180));

    MA1:=MA(CLOSE,5);

    MA2:=MA(CLOSE,10);

    MA3:=MA(CLOSE,30);

    MA4:=MA(CLOSE,60);

    XG:COUNT(C MA(C,5),3)=3{连续5日最低价大于5日} AND MA2 MA3 AND MA1 MA4 AND MA4 MA3 AND MA4 =MA2 AND REF(MA2,3) REF(MA3,3);

    RSVV:=(CLOSE-LLV(LOW,10))/(HHV(HIGH,10)-LLV(LOW,10))*100;

    VARB2:=(RSVV/2+22)*1;

    量:=EMA(VOL,13);

    资金:=EMA(AMOUNT,13);

    过滤:=((资金 /量) / 100);

    提纯:=(((CLOSE -过滤) / 过滤) * 100);

    黄金:=((提纯 (0)) AND ZXNH);

    低进:IF(黄金 AND RSVV VARB2-2,2,0);

    X:=(H-MAX(C,O))/ABS(C-O) 2 AND REF(L,1)/HHV(H,5) 0.96 AND REF(H,4)=REF(HHV(H,4),1) AND O/REF(C,1) 1.01  AND O/REF(C,1) 1.04;

    SK:=COUNT(C/REF(C,1) 1.03,3)=3 AND REF(COUNT((C+O) REF(C+O,1),2)=2,1) AND REF(HHV(H,20),1) =REF(HHV(H,4),1);

    X4:=(H-MAX(C,O))/ABS(C-O) 2 AND REF(L,1)/HHV(H,6) 0.95 AND REF(H,5)=REF(HHV(H,5),1) AND O/REF(C,1) 1.01 AND O/REF(C,1) 1.04;

    SK4:=COUNT(C/REF(C,1) 1.03,4)=4 AND REF(COUNT((C+O) REF(C+O,1),3)=3,1) AND REF(HHV(H,20),1) =REF(HHV(H,5),1);

    狙击:((X AND SK) OR (X4 AND SK4))  ;

    MA111:=MA(CLOSE,20);

    MA112:=MA(CLOSE,40);

    MA113:=MA(CLOSE,60);

    A11:=OPEN MA111 OR OPEN MA112 OR OPEN MA113;

    A12:=C MAX(MA111,MAX(MA112,MA113));

    A13:=V/MA(V,30) 1.2;

    A14:=C/REF(C,1) 1.049;

    生命:=EXPMA(EXPMA(CLOSE,50),1);

    半:=MA(CLOSE,125);

    年:=MA(CLOSE,240);

    涨幅%:=(C-REF(C,1))/REF(C,1)*100;

    %:=HSL;

    条件:=C 生命 AND 生命 半 AND 半 年 AND 涨幅% 6.5 AND 换手率% 6;

    :=A11 AND A12 AND A13 AND A14 AND 条件;

    MA5:=MA(CLOSE,120);

    A:=MAX(MAX(MAX(MA1,MA2),MAX(MA3,MA4)),MA5);

    B:=MIN(MIN(MIN(MA1,MA2),MIN(MA3,MA4)),MA5);

    LL:=BARSLAST(O =B AND C =A )=0;

    KK: LL AND 黑马;

    M2:=EMA(C,2);

    M18:=EMA(C,18);

    买点:=IF(CROSS(M18,M2),5,0* 10000),COLORFF00FF,LINETHICK2;

    明天卖:买点 AND 低进 COLORYELLOW,LINETHICK3;

    KTB:=SMA((CLOSE-LLV(LOW,9))/(HHV(HIGH,9)-LLV(LOW,9))*100,3,1);

    DTB:=SMA(KTB,3,1);

    JTB:=3*KTB-2*DTB;

    DI:= .MACD 0;

    准确出击:CROSS(CLOSE,REF(EMA(DMA((((HIGH+LOW)+(CLOSE*2))/4.15),0.9),3),1))AND JTB 55 AND DI;

    X1:=(C-REF(C,1))/REF(C,1)*100 =3;

    X2:=COUNT( EVERY(C O,2),BARSLAST( EVERY(C O,2)=0))=1 amp; amp; EVERY(C O,2);

    预选:=(X1||X2)*4,COLORGREEN;{//选出放在自选池中关注}

    X3:=X1 amp; amp; EVERY(C O,2);

    X44:=CROSS(REF(C,1),L);

    X5:=FILTER(X2||X3||X44,3) amp; amp;REF(X1,1);

    低位介入:=(FILTER(X3||X5,3) amp; amp;REF(预选,1));

    每日3%:预选 AND 低位介入;

    买入必涨:(((((CLOSE / REF(CLOSE,1)) = 1.07) AND ((HIGH / CLOSE) 1.005)) AND ((MA (CLOSE,90) / CLOSE) 1.48)))*1.5;

    VAR1D:=(INDEXC-MA(INDEXC,58))/MA(INDEXC,58) -0.152;

    VAR2D:=(C-EMA(C,58))/EMA(C,58) -0.19;

    中短买入:COUNT(VAR2D AND VAR1D,2);

    AA8:=LLV(L,34);

    XD:=SMA(ABS(L-REF(L,1)),34,1);

    CD:=SMA(MAX(L-REF(L,1),0),34,2);

    收盘买:=-(EMA(IF(L =AA8,XD/CD,-3),9));

    明天卖2:收盘买 0 AND 收盘买 REF(收盘买,1) AND REF(EVERY(收盘买 REF(收盘买,1),3),1);

    CYC13:=0.01*EXPMA(AMOUNT,13)/EXPMA(VOL,13);

    CYS:=(CLOSE-CYC13)/CYC13*100;

    平衡:=0;

    RSVX:=(C-LLV(L,9))/(HHV(H,9)-LLV(L,9))*100;

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

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

    J:=3*K-2*D;

    A1:=CROSS(J,REF(J+0.01,1)) AND J 20;

    YX:=C O;

    低点介入: ZXNH.ZXNH AND CYS 0 AND A1 AND REF(YX,1);

    AA:=REF(MA(C,5),1) MA(C,5) ;

    FF:=EMA(CLOSE,3);

    MA15:=EMA(CLOSE,21);

    BB:=CROSS(C,MA(C,5)) AND CROSS(C,MA(C,10)) ;

    CC:=CROSS(C,MA(C,20)) AND REF(C O,1) AND REF(C O,2);

    主升浪:(CROSS(FF,MA15) AND AA AND BB AND CC)*3,COLORRED ;

    LC:=REF(CLOSE,1);

    AAV:=(CLOSE-MA(CLOSE,34))/MA(CLOSE,34)*100; 

    XGV:=CROSS(-13,AAV);

    RSI:=(SMA(MAX(CLOSE-LC,0),21,1)/SMA(ABS(CLOSE-LC),21,1)*20);

    BBV:=MA(RSI,34);

    CCV:=BBV-2.5*STD(RSI,34);

    CF:=C L;

    成功率87.3%:(XGV AND  CF AND RSI CCV)*3,COLORGREEN;

    A01:=(C-LLV(LOW,3))/(HHV(HIGH,3)-LLV(LOW,3)); 

    A11A:=SMA(A01,2,1);

    A21:=SMA(A11A,2,1);

    A31:=3*A11A-2*A21 ;

    A41:=2*A31-0.5;

    生命线:=C*(1-(A41-A21)/15),COLORBLUE,LINETHICK2;

    A线:=HHV(H,20);

    B线:=LLV(L,20);

    C线:=(A线+B线)/2;

    做多线:=IF(C线,C线,DRAWNULL)COLORFF00FF,LINETHICK2; 

    进场:(CROSS(生命线,做多线) AND REF(做多线,1) 做多线 AND C 生命线)*5;

    L1:=13;M:=9;N:=3;

    VDI:=HHV(VOL,L1)-LLV(VOL,L1);

    VDF:=VOL-LLV(VOL,L1);

    SVI:=MA(VDF/VDI*100,M),COLORBLUE;

    SVIS:=MA(SVI,N),COLORLIGREEN;

    JDI:=HHV(CLOSE,L1)-LLV(CLOSE,L1);

    JDF:=C-LLV(CLOSE,L1);

    SJI:=MA(JDF/JDI*100,M),COLORRED;

    SJF:=MA(SJI,N),COLORMAGENTA;

    DH:(SVI+SJI)/2;

    DL:(SVIS+SJF)/2;

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

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

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

    D:=MA(J,3);

    K:=MA(J,1);

    DRAWICON(CROSS(DH,DL) AND DL 50 AND K D,DL,1);

    STICKLINE(DH =25 AND DL =75 AND DH DL,DH,DL,0.1,1),COLORLIRED;

    底线:15,COLORGREEN;

    顶线:75,COLORYELLOW;


    image.png

    公式解读:

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

    (1日前的(手) 成交量(手)的5日简单移动平均 OR 1日前的成交量(手) 成交量(手)的10日简单移动平均)AND 成交量(手) 成交量(手)的10日简单移动平均 AND 成交量(手) 成交量(手)的5日简单移动平均 AND 收阳线AND 收盘价 1日前的收盘价 AND (最高价-收盘价) (收盘价-最低价)AND 收盘价 平滑异同平均的DEA AND 收盘价 收盘价的20日简单移动平均



    推荐阅读:能量指标公式源码


     

    MOBV:=OBV-MA(OBV,30); 

    STICKLINE(MOBV 0,0,MOBV,1,0),COLORRED; 

    STICKLINE(MOBV 0,0,MOBV,1,0),COLORCYAN; 

    OBV高:=REF(OBV,BARSLAST(FILTER(BACKSET(FILTER(REF(OBV,5)=HHV(OBV,2*5+1),5),5+1),5))); 

    obv:=SUM(IF(CLOSE REF(CLOSE,1),VOL,IF(CLOSE REF(CLOSE,1),-VOL,0)),0)/100000; 

    obv1:=ma(SUM(IF(CLOSE REF(CLOSE,1),VOL,IF(CLOSE REF(CLOSE,1),-VOL,0)),1)/10000,1); 

    obv2:=ma(SUM(IF(CLOSE REF(CLOSE,1),VOL,IF(CLOSE REF(CLOSE,1),-VOL,0)),1)/10000,2); 

    obv3:=ma(SUM(IF(CLOSE REF(CLOSE,1),VOL,IF(CLOSE REF(CLOSE,1),-VOL,0)),1)/10000,3); 

    obv4:=ma(SUM(IF(CLOSE REF(CLOSE,1),VOL,IF(CLOSE REF(CLOSE,1),-VOL,0)),1)/10000,4); 

    obv5:=ma(SUM(IF(CLOSE REF(CLOSE,1),VOL,IF(CLOSE REF(CLOSE,1),-VOL,0)),1)/10000,5); 

    obv6:=ma(SUM(IF(CLOSE REF(CLOSE,1),VOL,IF(CLOSE REF(CLOSE,1),-VOL,0)),1)/10000,6); 

    obv7:=ma(SUM(IF(CLOSE REF(CLOSE,1),VOL,IF(CLOSE REF(CLOSE,1),-VOL,0)),1)/10000,7); 

    obv8:=ma(SUM(IF(CLOSE REF(CLOSE,1),VOL,IF(CLOSE REF(CLOSE,1),-VOL,0)),1)/10000,8); 

    obv9:=ma(SUM(IF(CLOSE REF(CLOSE,1),VOL,IF(CLOSE REF(CLOSE,1),-VOL,0)),1)/10000,9); 

    obv10:=ma(SUM(IF(CLOSE REF(CLOSE,1),VOL,IF(CLOSE REF(CLOSE,1),-VOL,0)),1)/10000,10); 

    obv11:=ma(SUM(IF(CLOSE REF(CLOSE,1),VOL,IF(CLOSE REF(CLOSE,1),-VOL,0)),1)/10000,11); 

    obv12:=ma(SUM(IF(CLOSE REF(CLOSE,1),VOL,IF(CLOSE REF(CLOSE,1),-VOL,0)),1)/10000,12); 

    obv13:=ma(SUM(IF(CLOSE REF(CLOSE,1),VOL,IF(CLOSE REF(CLOSE,1),-VOL,0)),1)/10000,13); 

    obv14:=ma(SUM(IF(CLOSE REF(CLOSE,1),VOL,IF(CLOSE REF(CLOSE,1),-VOL,0)),1)/10000,14); 

    obv15:=ma(SUM(IF(CLOSE REF(CLOSE,1),VOL,IF(CLOSE REF(CLOSE,1),-VOL,0)),1)/10000,15); 

    obv16:=ma(SUM(IF(CLOSE REF(CLOSE,1),VOL,IF(CLOSE REF(CLOSE,1),-VOL,0)),1)/10000,16); 

    obv17:=ma(SUM(IF(CLOSE REF(CLOSE,1),VOL,IF(CLOSE REF(CLOSE,1),-VOL,0)),1)/10000,17); 

    obv18:=ma(SUM(IF(CLOSE REF(CLOSE,1),VOL,IF(CLOSE REF(CLOSE,1),-VOL,0)),1)/10000,18); 

    obv19:=ma(SUM(IF(CLOSE REF(CLOSE,1),VOL,IF(CLOSE REF(CLOSE,1),-VOL,0)),1)/10000,19); 

    obv20:=ma(SUM(IF(CLOSE REF(CLOSE,1),VOL,IF(CLOSE REF(CLOSE,1),-VOL,0)),1)/10000,20); 

    obvzh1:=(obv1*20+obv2*19+obv3*18+obv4*17+obv5*16+obv6*15+obv7*14+obv8*13+obv9*12+obv10*11+obv10*11+obv12*9+obv13*8+obv14*7+obv15*6+obv16*5+obv17*4+obv18*3+obv19*2+obv20*1)/210; 

    {obvzh:=EMA(((SLOPE(obv,21)*20)+obv),42); 

    obvm:=ema(obv,3);} 

    obvj:=sma(obvzh1,2,1); 

    obvj2:sma(obvj,2,1); 

    obvj3:sma(obvj2,5,1); 

    obvj4:ma(obvj3,3); 

    {stickline(obvj =ref(obvj,1),obvj,ref(obvj,1),8,1),colorred,; 

    stickline(obvj ref(obvj,1),obvj,ref(obvj,1),8,0),colorff9900;} 

    opent:=ref(obvj,1); 

    closet:=ref(obvj,0); 

    B0:=REF(CLOSEt-OPENT,2); 

    B1:=REF(CLOSET,1); 

    B2:=REF(CLOSET,2); 

    B3:=REF(CLOSET,3); 

    B4:=REF(CLOSET,4); 

    CMAX:=MAX(MAX(MAX(CLOSET,B1),B2),B3); 

    CMIN:=MIN(MIN(MIN(CLOSET,B1),B2),B3); 

    STICKLINE(CLOSET=CMAXAND(B1 =B2ORB1 =B3)ORB1=CMAXAND(B2=CMINORB3=CMIN)ANDCLOSET =B2ORB2=CMAXANDB3=CMINANDCLOSET =B1ORB3=CMAXANDCLOSET =B1ANDCLOSET =B2,B1,CLOSET,5,1),colorred; 

    STICKLINE(CLOSET=CMAXANDB1=CMIN,B2,CLOSET,5,1),colorred; 

    STICKLINE(CLOSET=CMINAND(B1 B2ORB1 B3)ORB1=CMINAND(B2=CMAXORB3=CMAX)ANDCLOSET B2ORB2=CMINANDB3=CMAXANDCLOSET B1ORB3=CMINANDCLOSET B1ANDCLOSET B2,B1,CLOSET,5,0),colorgreen; 

    STICKLINE(B1=CMAXANDCLOSET=CMIN,B2,CLOSET,5,0),colorgreen; 

    STICKLINE(B1=CMINANDCLOSET =B2OR(B2=CMINANDB1 =B3ORB3=CMINANDB1 =B2)ANDB2 B4ANDCLOSET =B1,B1,B2,5,0),colorgreen; 

    STICKLINE(B1=CMAXANDCLOSET B2OR(B2=CMAXANDB1 B3ORB3=CMAXANDB1 B2)ANDB2 =B4ANDCLOSET B1,B1,B2,5,1),colorred; 

    C高:REF(C,BARSLAST(FILTER(BACKSET(FILTER(REF(C,5)=HHV(C,2*5+1),5),5+1),5))),NODRAW; 

    量入为主:CROSS(OBV,OBV高)ANDH C高,NODRAW; 

    STICKLINE(量入为主,0,MOBV,1,0),COLORYELLOW; 

    N:=26; 

    M1:=5; 

    M2:=20; 

    M3:=40; 

    M4:=62; 

    MID:=REF(HIGH+LOW,1)/2; 

    CRR:=SUM(MAX(0,HIGH-MID),N)/SUM(MAX(0,MID-LOW),N)*100; 

    RCC:=SUM(MIN(0,L-MID),N)/SUM(MIN(0,MID-H),N)*100; 

    CR:if(CRR 200,200,CRR),COLORWHITE; 

    RC:if(RCC 200,200,RCC),COLORCYAN; 

    STICKLINE(CR 50ANDCR 20,40,50,8,0),COLORMAGENTA; 

    STICKLINE(CR 40ANDCR 20,40,30,8,0),COLORYELLOW; 

    STICKLINE(CR 30ANDCR 20,20,30,8,0),COLORRED; 

    STICKLINE(RC 50ANDRC 20,180,170,8,0),COLORCYAN; 

    STICKLINE(RC 40ANDRC 20,190,180,8,0),COLORBLUE; 

    STICKLINE(RC 30ANDRC 20,200,190,8,0),COLORGREEN; 

    DRAWGBK(C 0,RGB(1,0,1),RGB(1,0,1),0, 0 ,0); 

    NN:=26;M1:=10;M2:=20;M3:=40;M4:=62; 

    MID:=REF(HIGH+LOW,1)/2; 

    CR:SUM(MAX(0,HIGH-MID),NN)/SUM(MAX(0,MID-LOW),NN)*100,NODRAW,COLORWHITE; 

    STICKLINE(C 0,REFDATE(LLV(CR,120),DATE),90,28,-1)COLORLICYAN; 

    STICKLINE(C 0,REFDATE(LLV(CR,120),DATE),40,28,-1)COLORYELLOW; 

    DRAWTEXT(ISLASTBAR,90, ██ ),COLORBLACK; 

    DRAWTEXT(ISLASTBAR,90, 90 )COLORCYAN; 

    MA1:REF(MA(CR,M1),M1/2.5+1)NODRAW,COLORYELLOW; 

    MA2:REF(MA(CR,M2),M2/2.5+1)NODRAW,COLORMAGENTA; 

    MA3:REF(MA(CR,M3),M3/2.5+1)NODRAW,COLORGREEN; 

    MA4:REF(MA(CR,M4),M4/2.5+1)NODRAW,COLORCYAN; 

    DRAWBAND(MA3,RGB(80,16,0),MA4,RGB(80,64,64)); 

    DRAWBAND(MA1,RGB(150,50,50),MA2,RGB(0,50,150)); 

    NOTEXT:SUM(MAX(0,HIGH-MID),NN)/SUM(MAX(0,MID-LOW),NN)*100,COLORWHITE,LINETHICK2; 

    DRAWTEXT(ISLASTBAR,CR, ←CR ),COLORWHITE; 

    STICKLINE(CROSS(CR,MA1),REFDATE(HHV(CR,120),DATE),REFDATE(LLV(CR,120),DATE),0,-1)COLORYELLOW; 

    AA1:=CR MA1ANDCR MA2ANDCR MA3ANDCR MA4; 

    AA2:=AA1ANDAA1!=REF(AA1,1); 

    STICKLINE(AA2,REFDATE(HHV(CR.CR,120),DATE),CR,0,-1)COLORRED; 

    {} 

    DRAWTEXT_FIX(1,0.40,0.00,0, 黄虚线--CR上穿MA1(可能有行情);红虚线--CR同时大于4线(强势); ),COLORWHITE;


    image.png


    每日公式解答:


     

    股票公式编写要求: 

    5日前macd周选股公式。 

    股票公式编写结果: 

    BETWEEN(BARSLAST(CROSS(MACD.DIF#WEEK MACD.DEA#WEEK,0.5)),10,20);


    九毛八公式指标,一个优质的公式指标平台!
    九毛八公式指标 » 资金动力指标公式源码(流动资金指标公式源码) 加入收藏