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

    正文概述    2024-05-04 04:12:42  


    通达信公式源码概况:


    指标类别:通达信公式


    授权方式: 免费版


    指标评级: ★★★★★


    指标分类: 策略


    画线方法: 副图



    一、通达信量价合一主图指标公式


     

    STICKLINE(C O,O,O+(VOL*(IF(FINANCE(7) 100000000ANDFINANCE(7) 1000000000,1000,5000))/FINANCE(7)),2,0),COLORRED,NODRAW; 

    STICKLINE(C O,O,O-(VOL*(IF(FINANCE(7) 100000000ANDFINANCE(7) 1000000000,1000,5000))/FINANCE(7)),2,0),COLORGREEN,NODRAW; 

    STICKLINE(C=O,O-(VOL*(IF(FINANCE(7) 100000000ANDFINANCE(7) 1000000000,1000,5000))/FINANCE(7))/2,O+(VOL*(IF(FINANCE(7) 100000000,1000,5000))/FINANCE(7))/2,2,0),COLORYELLOW,NODRAW; 

    STICKLINE(C O,0,0+ABS((C-O)/(REF(C,1)-REF(O,1))),3,0),COLORRED; 

    STICKLINE(C O,0,0+(VOL/REF(VOL,1)),2,-1),COLORRED; 

    STICKLINE(C O,0,0-ABS((C-O)/(REF(C,1)-REF(O,1))),3,0),COLORGREEN; 

    STICKLINE(C O,0,0-(VOL/REF(VOL,1)),2,-1),COLORGREEN; 

    N:=5; 

    X_1:=(3*CLOSE+LOW+OPEN+HIGH)/6; 

    X_2:=(20*X_1+19*REF(X_1,1)+18*REF(X_1,2)+17*REF(X_1,3)+16*REF(X_1,4)+15*REF(X_1,5)+14*REF(X_1,6)+13*REF(X_1,7)+12*REF(X_1,8)+11*REF(X_1,9)+10*REF(X_1,10)+9*REF(X_1,11)+8*REF(X_1,12)+7*REF(X_1,13)+6*REF(X_1,14)+5*REF(X_1,15)+4*REF(X_1,16)+3*REF(X_1,17)+2*REF(X_1,18)+REF(X_1,20))/210; 

    X_3:=EMA(X_2,13); 

    X_4:=EMA(CLOSE,5); 

    X_5:=EMA(X_4,8); 

    X_6:=EMA(X_5,13); 

    X_7:=EMA(X_6,50); 

    X_8:=REF(CLOSE,1) REF(X_3,1)ANDCLOSE  

    X_9:=CLOSE/REF(CLOSE,1) 1+0.01*N; 

    X_10:=X_3/X_7 1+0.01*10; 

    A:=C/REF(C,1) 1.048ANDC=HANDBETWEEN(FORCAST(V,4),0.2*FORCAST(V,12),2.1*FORCAST(V,12)); 

    鸿运当头:FILTER(A,28)ANDX_8ANDX_9ANDX_10; 

    {买入启动} 

    AA05:=MA(C,5),COLOR0099CC;五日乖离率:=(C-AA05)/AA05*100; 

    BB05:=ATAN((AA05/REF(AA05,1)-1)*100)*180/3.1416; 

    速度5:=SMA(EMA((AA05-REF(AA05,1))/REF(AA05,1),3)*100,3,1); 

    加速度5:=EMA((速度5-REF(速度5,1)),3); 

    AA10:=MA(C,10),COLOR00FF00;AA20:=MA(C,20);BB10:=ATAN((AA10/REF(AA10,1)-1)*100)*180/3.1416; 

    AA30:=MA(C,30); 

    三拾日乖离率:=(C-AA30)/AA30*100; 

    {VAR1:=(AA20-AA30) REF((AA20-AA30),1)ANDAA20 REF(AA20,1)ANDAA30 REF(AA30,1); 

    VAR2:=(AA30-AA20) REF((AA30-AA20),1)ANDAA20 REF(AA20,1)ANDAA30 REF(AA30,1);} 

    BB30:=ATAN((AA30/REF(AA30,1)-1)*100)*180/3.1416; 

    强势狙击:=FILTER(BB30 30ANDBB10 45ANDCROSS(BB05,60),10); 

    加仓:=FILTER(COUNT(CROSS(BB05,30),5) =1ANDAA05 REF(AA05,1)AND三拾日乖离率 REF(三拾日乖离率,1)ANDAA10 REF(AA10,1)AND加速度5 REF(加速度5,1)AND速度5 REF(速度5,1),10); 

    清仓:=FILTER(COUNT(CROSS(30,BB05),5) =1AND(C AA30ORO AA30)ANDAA05 REF(AA05,1)AND三拾日乖离率 REF(三拾日乖离率,1)ANDAA10 REF(AA10,1),10); 

    JC:=CROSS(0,五日乖离率)AND三拾日乖离率 REF(三拾日乖离率,1)ANDAA10 REF(AA10,1); 

    减仓:=FILTER(JC,10); 

    MR:=COUNT(CROSS(五日乖离率,0),3) =1AND三拾日乖离率 REF(三拾日乖离率,1)ANDAA05 REF(AA05,1)AND(C/REF(C,1)-1)*100 5ANDREF(C,1) AA30; 

    买入:=FILTER(MR,10); 

    {DRAWTEXT(减仓,HIGH*1.02, ←减仓 ),COLORCYAN; 

    DRAWTEXT(清仓,HIGH*1.02, ←清仓 ),COLORGREEN;} 

    {} 

    VOLUME:=VOL,VOLSTICK; 

    AA:=VOL REF(V,1)*1.9;{倍量} 

    {AA1:=VOL REF(LLV(VOL,13),1);} 

    AA1:=V/REF(V,1) =0.6;{缩倍量} 

    {STICKLINE(AA,0,VOLUME,2,0),COLORYELLOW; 

    STICKLINE(AA1,0,VOLUME,2,0),COLOR1D7300;} 

    TOTAL:=IF(PERIOD=1,5,IF(PERIOD=2,15,IF(PERIOD=3,30,IF(PERIOD=4,60,IF(PERIOD=5,TOTALFZNUM,1))))); 

    MTIME:=MOD(FROMOPEN,TOTAL); 

    CTIME:=IF(MTIME 0.5。,TOTAL,MTIME); 

    VVOL:=IF(CURRBARSCOUNT=1,AMOUNT/100000000*TOTAL/CTIME,DRAWNULL),NODRAW; 

    额:=AMOUNT/100000000,VOLSTICK;{COLORFF00FF} 

    MAVOL1:=EMA((EMA(额,2)+EMA(额,3))/2,1); 

    MAVOL2:=EMA(EMA(额,8),1); 

    AMO135:=MA(AMO/100000000,135),COLORGREEN; 

    VAR1:=AMOUNT/((HIGH-LOW)*2-ABS(CLOSE-OPEN)); 

    流入亿:=IF(CLOSE OPEN,VAR1*(HIGH-LOW),IF(CLOSE OPEN,VAR1*((HIGH-OPEN)+(CLOSE-LOW)),AMOUNT/2))/100000000,COLORRED,NODRAW; 

    流出亿:=IF(CLOSE OPEN,0-VAR1*((HIGH-CLOSE)+(OPEN-LOW)),IF(CLOSE OPEN,0-VAR1*(HIGH-LOW),0-AMOUNT/2))/100000000,COLORMAGENTA,NODRAW; 

    差亿:=流入亿+流出亿,COLORRED,NODRAW; 

    净:=EMA(EMA(差亿,2),2),COLOR00FFFF,NODRAW; 

    净1:=EMA((EMA(净,2)+EMA(净,3))/2,1);{EMA(净,2);} 

    流:=EMA(净1,8); 

    净流:=EMA(净1+流,3)*1.23,COLORLIRED;{原3*/1.23*} 

    GJJ:=EMA(净流,8); 

    LLJX:=EMA((EMA(净流,2)+EMA(净流,3))/2,1); 

    流量基线:=GJJ,COLORYELLOW,LINETHICK2; 

    流量:=LLJX,COLORWHITE,LINETHICK2; 

    净流量:=净流,COLORMAGENTA,LINETHICK2; 

    流量上穿:=BETWEEN(BARSLASTCOUNT(流量 流量基线),1,2); 

    净流上穿:=BETWEEN(BARSLASTCOUNT(净流量 流量),1,2); 

    上穿:=BETWEEN(BARSLASTCOUNT(MAVOL1 MAVOL2),1,2); 

    {监控} 

    EEDDS5:=EMA(EMA(CLOSE,9),9); 

    主力监控:=(EEDDS5-REF(EEDDS5,1))/REF(EEDDS5,1); 

    好:=CROSS(主力监控,0); 

    EEDDS1:=IF(好选股,1,0),LINETHICK1,COLORRED; 

    EEDDS2:=IF(主力监控 REF(主力监控,1)AND主力监控 0,主力监控,0),COLORRED,NODRAW; 

    EEDDS4:=100*WINNER(CLOSE*0.95); 

    {STICKLINE(EEDDS4 50ANDCOST(85) CLOSEAND主力监控 0,主力监控,0,1,0),COLORMAGENTA; 

    EEDDS3:IF(EEDDS4 50ANDCOST(85) CLOSEAND主力监控 0,主力监控,0),COLORFF00FF,NODRAW;} 

    变强:=主力监控 REF(主力监控,1)AND主力监控  

    集中:=EEDDS4 50ANDCOST(85) CLOSEAND主力监控  

    M:=MACD.MACD(12,26,9),NODRAW; 

    B:=C/REF(C,1) 1.098; 

    A:=V/REF(V,1) 2ANDV/MA(V,60)  

    启动:=CROSS(M,0)ANDBANDA,COLORRED; 

    J:=REF(H,BARSLAST(启动)),NODRAW; 

    选股:=CROSS(C,J); 

    转强:((加仓OR强势狙击)AND变强)*2,COLORYELLOW; 

    筹码强势:((加仓OR强势狙击)AND集中)*2,COLORMAGENTA; 

    量能确立:((加仓OR强势狙击)AND(资金净流上穿AND成交量上穿))*3,COLORRED; 

    量价启动:((启动OR选股)AND(变强OR集中))*4,COLORLIMAGENTA; 

    XG买入牛股:加仓AND(资金净流上穿OR成交量上穿OR流量上穿); 

    XG再次启动:强势狙击AND(资金净流上穿OR成交量上穿OR流量上穿); 

    月N:=DAY; 

    月HIGH:=IF(DAY=月N,HHV(H,30),0); 

    月LOW:=IF(DAY=月N,LLV(L,30),0); 

    月CLOSE:=IF(DAY=月N,CLOSE,0); 

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

    月K:SMA(月RSV,3,1),COLORWHITE; 

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

    月J:3*月K-2*月D,COLORWHITE,LINETHICK2; 

    DRAWBAND(月K,RGB(255,0,0),月D,RGB(0,255,0)); 

    VAR3:=LLV(LOW,30); 

    VAR4:=HHV(HIGH,20); 

    VAR5:=EMA((CLOSE-VAR3)/(VAR4-VAR3)*100,13)*0.998; 

    价状态:EMA(0.667*REF(VAR5,1)+0.3333*VAR5,1),COLORRED,LINETHICK2; 

    LL:=SUM(IF(CLOSE REF(CLOSE,1),VOL,IF(CLOSE REF(CLOSE,1),-VOL,0)),0); 

    VAR1:=LLV(LL,30); 

    VAR2:=HHV(LL,20); 

    VAR6:=EMA((LL-VAR1)/(VAR2-VAR1)*100,13)*0.998; 

    量状态:EMA(0.667*REF(VAR6,1)+0.3333*VAR6,1),COLORGREEN,LINETHICK2; 

    筹状态:EMA(WINNER(C)*70,5),COLORFF9933,LINETHICK2; 

    中轨:SMA(SMA(价状态,20,1),20,1),COLORFFCCCC,DOTLINE; 

    上上轨:中轨+50,COLORFF00FF,DOTLINE; 

    下下轨:中轨-50,COLORFF00FF,DOTLINE; 

    上轨:中轨+25,COLORYELLOW,DOTLINE; 

    下轨:中轨-25,COLORYELLOW,DOTLINE;


    image.png

    公式解读:



    每日通达信公式解答:


     

    公式编写要求: 

    M:=(H+L+3*C+O)/6;M3:MA(M,3);IF(M3 =REF(M3,1),M3,DRAWNULL),COLORRED,LINETHICK2;M7:=MA(M,7);M14:=MA(M,14);M21:=MA(M,21);M28:=MA(M,28);M35:=MA(M,35);M42:=MA(M,42);M49:=MA(M,49);M56:=MA(M,56);MH7:=MA(H,7);MH14:=MA(H,14);MH21:=MA(H,21);MH28:=MA(H,28);MH35:=MA(H,35);MH42:=MA(H,42);MH49:=MA(H,49);MH56:=MA(H,56);ML7:=MA(L,7);ML14:=MA(L,14);ML21:=MA(L,21);ML28:=MA(L,28);ML35:=MA(L,35);ML42:=MA(L,42);ML49:=MA(L,49);ML56:=MA(L,56);MZ:(7*M7+14*M14+21*M21+28*M28+35*M35+42*M42+49*M49+56*M56)/252LINETHICK1COLORRED;MH:=(7*MH7+14*MH14+21*MH21+28*MH28+35*MH35+42*MH42+49*MH49+56*MH56)/252;ML:=(7*ML7+14*ML14+21*ML21+28*ML28+35*ML35+42*ML42+49*ML49+56*ML56)/252;GB:=H-MH;ZB:=C-MZ;DB:=L-ML;BZCZ:=SQRT(SUM(POW(ZB,2),20)/20);BZCH:=SQRT(SUM(POW(GB,2),20)/20);BZCL:=SQRT(SUM(POW(DB,2),20)/20);CVH:=BZCH/MH;CVL:=BZCL/ML;UPPER:MH*(1+CVH*(1+1/SQRT(20)))LINETHICK2COLORBLUE;DOWN:ML*(1-CVL*(1+1/SQRT(20)))LINETHICK2COLORGREEN;DRAWICON(CROSS(C,MZ),MZ,1);阻力:REFDATE(REF(HHV(H,22),1),DATE),COLORGRAY;底:REFDATE(REF(LLV(L,22),1),DATE),COLORGRAY;网A:=EMA(EMA(EMA(EMA(C,1),2),2),2);STICKLINE(CURRBARSCOUNT=1,阻力,阻力,10000,-1),COLORWHITE;STICKLINE(CURRBARSCOUNT=1,底,底,10000,-1),COLORWHITE;{3日高低线};三日最低:=EMA((REF(L,4)+REF(L,3)+REF(L,2))/3,3);三日最高:=EMA((REF(H,4)+REF(H,3)+REF(L,2))/3,3),COLORWHITE;底线:=IF(C 三日最低,三日最低,DRAWNULL),COLOR8000FF;高线:=IF(C 三日最高,三日最低,DRAWNULL),COLORWHITE;STICKLINE(CURRBARSCOUNT=1,三日最高,三日最高,100,-1),COLORRED;STICKLINE(CURRBARSCOUNT=1,三日最低,三日最低,100,-1),COLORWHITE; 

    公式编写方法: 

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

    M7:=MA(M,7); 

    M14:=MA(M,14); 

    M21:=MA(M,21); 

    M28:=MA(M,28); 

    M35:=MA(M,35); 

    M42:=MA(M,42); 

    M49:=MA(M,49); 

    M56:=MA(M,56); 

    MZ:=(7*M7+14*M14+21*M21+28*M28+35*M35+42*M42+49*M49+56*M56)/252; 

    CROSS(C,MZ);




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