最新公告
  • 欢迎您光临九毛八公式指标网www.9m8.cn,本站全新改版试运行,期间内容全部免费,欢迎下载!欢迎加入本站VIP
  • 通达信资金博弈终结版指标公式(通达信成交量终结版指标公式)

    正文概述    2024-05-04 03:56:14  

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


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


    授权方式: 免费版


    指标评级: ★★★★★


    指标分类: 策略


    画线方法: 副图



    一、通达信博弈终结版指标公式

     

    博弈:=C REF(C,1) AND

    CROSS(,MAX(MA(VOL,5),MAX(MA(VOL,10),MA(VOL,20))));

    正向博弈平台:REF((HIGH+LOW+3*CLOSE)/5,BARSLAST(量能博弈)+1),NODRAW;

    量能博弈平台上:=REF(HIGH,BARSLAST(量能博弈)+1);

    量能博弈平台下:=REF(LOW,BARSLAST(量能博弈)+1);

    博弈:=C REF(C,1) AND

    CROSS(VOL,MAX(MA(VOL,5),MAX(MA(VOL,10),MA(VOL,20))));

    博弈平台 A:=REF((HIGH+LOW+3*CLOSE)/5,BARSLAST(博弈)-1);

    博弈平台 B:=REF((HIGH+LOW+3*CLOSE)/5,BARSLAST(博弈));

    反向博弈平台:MIN(博弈平台 A,博弈平台 B),NODRAW;

    博弈平台上 A:=REF(HIGH,BARSLAST(博弈)-1);

    博弈平台上 B:=REF(HIGH,BARSLAST(博弈));

    博弈平台上:=MIN(博弈平台上 A,博弈平台上 B);

    博弈平台下 A:=REF(LOW,BARSLAST(博弈)-1);

    博弈平台下 B:=REF(LOW,BARSLAST(博弈));

    博弈平台下:=MIN(博弈平台下 A,博弈平台下 B);

    {----------------------------------------------------------}

    分布:=V=HHV(V,100);

    异动博弈平台:REF((H+L+3*C)/5,BARSLAST(筹码分布)),NODRAW;

    异动上限:=REF(H,BARSLAST(筹码分布));

    异动成本下限:=REF(L,BARSLAST(筹码分布));

    资金分布:=AMOUNT=HHV(AMOUNT,100) AND NOT(筹码分布);

    资金博弈平台:REF((H+L+3*C)/5,BARSLAST(资金分布)),NODRAW;

    台上:=REF(H,BARSLAST(资金分布));

    台下:=REF(L,BARSLAST(资金分布));

    VAR1:=(C+H+O+L)/4;

    卖出:=XMA(VAR1,20)*(1+80/1000);

    买入:=XMA(VAR1,32)*(1-100/1000);

    {买:CROSS(买入,LOW),NODRAW;

    卖:CROSS(HIGH,卖出),NODRAW;}

    {----------------------------------------------------------}

    DRAWBAND(量能博弈平台上,RGB(248,242,242),量能博弈平台

    下,RGB(248,242,242));

    DRAWBAND(博弈平台上,RGB(70,177,63), 博弈平台下,RGB(70,177,63));

    DRAWBAND(异动成本上限,RGB(250,249,8),异动成本下限,RGB(250,249,8));

    DRAWBAND(台上,RGB(114,2,4),台下,RGB(114,2,4));

    {=================================================}

    STICKLINE(C =O,C,O,3,0),COLOR0000AA;

    STICKLINE(C =O,C,O,2.5,0),COLOR0000BB ;

    STICKLINE(C =O,C,O,1.5,0),COLOR0000CC ;

    STICKLINE(C =O,C,O,1,0),COLOR0000EE;

    STICKLINE(C =O,H,L,0,0),COLOR0000FF;

    STICKLINE(C =O,C,O,3,0),COLOR7B7B00;

    STICKLINE(C =O,C,O,2.5,0),COLOR909000;

    STICKLINE(C =O,C,O,1.5,0),COLORA8A800;

    STICKLINE(C =O,C,O,1,0),COLORCECE00;

    STICKLINE(C =O,H,L,0,0),COLORFFFF00;

    高抛线:卖出,COLORGREEN,LINETHICK2;

    低吸线:买入,COLORMAGENTA,LINETHICK2;

    风险:100*(L-买入)/买入,NODRAW;

    幅度:100*(卖出-买入)/买入,NODRAW;

    MA1:=MA(VAR1,3);

    STICKLINE(卖出 LOW AND 卖出 HIGH,卖出,MAX(卖 出,MAX(OPEN,CLOSE)),3,0),COLOR007B00;

    STICKLINE(卖出 LOW AND 卖出 HIGH,卖出,MAX(卖 出,MAX(OPEN,CLOSE)),2,0),COLOR009000;

    STICKLINE(卖出 LOW AND 卖出 HIGH,卖出,MAX(卖 出,MAX(OPEN,CLOSE)),1,0),COLOR00A800;

    STICKLINE(卖出 MIN(C,O) AND 卖出 MAX(C,O),卖 出,MAX(OPEN,CLOSE),3,0),COLOR007B00;

    STICKLINE(卖出 MIN(C,O) AND 卖出 MAX(C,O),卖 出,MAX(OPEN,CLOSE),2,0),COLOR090000;

    STICKLINE(卖出 MIN(C,O) AND 卖出 MAX(C,O),卖 出,MAX(OPEN,CLOSE),1,0),COLOR00A800;

    STICKLINE(卖出 LOW AND 卖出 HIGH,卖出,HIGH,0,0),COLORGREEN;

    STICKLINE(卖出 LOW,OPEN,CLOSE,3,0),COLOR007B00;

    STICKLINE(卖出 LOW,OPEN,CLOSE,2,0),COLOR009000;

    STICKLINE(卖出 LOW,OPEN,CLOSE,1,0),COLOR00A800;

    STICKLINE(卖出 LOW,HIGH,LOW,0,0),COLORGREEN;

    STICKLINE(买入 LOW AND 买入 HIGH,买入,MIN(MIN(OPEN,CLOSE),买 入),1.5,0),COLORCC66FF;

    STICKLINE(买入 MIN(C,O) AND 买入 MAX(C,O),买 入,MIN(OPEN,CLOSE),1.5,0),COLORCC66FF;

    STICKLINE(买入 LOW AND 买入 HIGH,买入,LOW,0,0),COLORMAGENTA;

    STICKLINE(买入 HIGH,OPEN,CLOSE,1.5,0),COLORMAGENTA;

    STICKLINE(买入 HIGH,HIGH,LOW,0,0),COLORMAGENTA;

    DRAWICON(CROSS(买入,LOW),LOW*0.95,11);

    DRAWICON(CROSS(HIGH,卖出),HIGH*1.02,12);

    jgV:=(BIGORDER(1,3)-BIGORDER(2,3))*vol; 

    dhV:=(BIGORDER(1,2)-BIGORDER(2,2)-BIGORDER(1,3)+B 

    IGORDER(2,3))*vol; 

    zhV:=(BIGORDER(1,1)-BIGORDER(2,1)-BIGORDER(1,2)+B 

    IGORDER(2,2))*vol;gugs.cn 

    shV:=(BIGORDER(2,1)-BIGORDER(1,1))*vol; 

    tD:=COUNT(BIGORDER(1,0),0);myD:=min(tD,60); 

    超级资金:ema(jgV,myD)*myD/capital,COLORMAGENTA; 

    copyrightdedecms大户资 

    金:ema(dhV,myD)*myD/capital,color3399FF; 

    中户资金:ema(zhV,myD)*myD/capital,colorcyan;散 

    户资金:ema(shV,myD)*myD/capital,colorgreen; 

    0,color333333,PRECIS0,layer7; 

    资金博弈是操盘手·版所特有的一项主要功能。它根 

    据“超级资金、大户、中户、”四方的资金量和进出力 

    度,帮助用户看清主力多天动向。紫色的超级资金线代 

    表主力资金的进出,超级资金线上扬表示主力有大资金建 

    仓,超级资金线下探则是主力资金的出逃信号。绿色散户线 

    代表广大散户的操作行为,上扬表明散户追高买入,下探表 

    明散户拋出。散户线是一个反向操作指标。本文来自织梦 

    关注资金博弈,结合操盘线,可以更方便的帮助用户确定哪 

    类股票才是适合投资的品种,紧紧跟随主力的步伐。


    image.png

    公式解读:

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


    MA6赋值:收盘价的6日简单移动平均

    MA18赋值:收盘价的18日简单移动平均

    输出MA3:3*(MA18) - (2)*(MA6),线宽为1,COLORD39D91

    输出MA4:3*(MA6) - (2)*(MA18),线宽为2,COLOR87B08B

    输出M1:((收盘价+最低价)/(2)的2日指数移动平均)/(2.98)的3日累和,POINTDOT,COLORFFFFFF

    输出M2:M1的21日指数移动平均,COLORFF00FF

    输出M30:收盘价的30日简单移动平均,线宽为1,COLORFF0000

    VAR1赋值:(2)*((8日内(收盘价+最低价)/(2)的最低值)*(1.1)的13日简单移动平均) - (收盘价+最低价)/(2)的3日指数移动平均 -((收盘价 + 最低价)/(2))*(0.1)

    VAR2赋值:如果(((收盘价+最低价)/(2)的3日指数移动平均-VAR1)*(5) 0),返回(((收盘价+最低价)/(2)的3日指数移动平均-VAR1)*(5)的2乘幂)/(10),否则返回(((-1))*(((收盘价+最低价)/(2)的3日指数移动平均-VAR1)*(5)的2乘幂))/(10)

    VAR3赋值:如果(VAR2 0),返回VAR2-0,否则返回(-1)

    当满足条件VAR3上穿0AND((收盘价+最低价)/(2) (收盘价+最低价)/(2)的8日简单移动平均)时,在(M2)*(1.01)位置书写文字,线宽为2,画黄色

    当满足条件VAR3上穿0AND((收盘价+最低价)/(2) (收盘价+最低价)/(2)的8日简单移动平均)时,在(最低价)*(0.99)和(最低价)*(0.95)位置之间画柱状线,宽度为4,0不为0则画空心柱.,画黄色






    推荐阅读:通达信最新资金博弈副图公式

     

    N:=3; 

    K1:=IF(CLOSE =REF(CLOSE,1),HIGH-OPEN+CLOSE-LOW+CLOSE-REF(CLOSE,1),HIG 

    H-OPEN+CLOSE-LOW); 

    K2:=IF(CLOSE =REF(CLOSE,1),OPEN-LOW+HIGH-CLOSE+REF(CLOSE,1)-CLOSE,OPE 

    N-LOW+HIGH-CLOSE); 

    DT:=VOL*K1/(K1+K2); 

    KT:=(VOL-DT); 

    买量:SUM(DT,N),COLOR0000FF; 

    卖量:-SUM(KT,N),COLORFFFF00; 

    DRAWBAND(买量,RGB(0,120,0),0,DRAWNULL); 

    DRAWBAND(0,RGB(0,80,0),卖量,DRAWNULL); 

    进出量:买量+卖量,POINTDOT,COLOR00FFFF; 

    净量换手:100*进出量/CAPITAL,POINTDOT,COLOR00FF33; 

    STICKLINE(进出量 =0,0,进出量,3,1),COLOR0000FF; 

    STICKLINE(进出量 0,0,进出量,3,1),COLORFFFF00; 

    D3:=100*SUM(DT,3)/CAPITAL; 

    K3:=100*SUM(KT,3)/CAPITAL; 

    J3:=D3-K3; 

    D6:=100*SUM(DT,6)/CAPITAL; 

    K6:=100*SUM(KT,6)/CAPITAL; 

    J6:=D6-K6; 

    D9:=100*SUM(DT,9)/CAPITAL; 

    K9:=100*SUM(KT,9)/CAPITAL; 

    J9:=D9-K9; 

    DAZHI:=CONST(MAX(ABS(D3),MAX(ABS(K3),MAX(ABS(J3),MAX(ABS(D6),MAX(ABS( 

    K6),MAX(ABS(J6),MAX(ABS(D9),MAX(ABS(K9),ABS(J9)))))))))),NODRAW; 

    DRAWRECTREL(0,0,230,999.4,IF(120,RGB(100,100,100),0)); 

    {3日画直方图} 

    DRAWRECTREL(38,CONST(830-(ABS(D3)*500/DAZHI)),51,935,IF(CONST(D3) 0,R 

    GB(150,0,0),RGB(150,0,0))); 

    DRAWRECTREL(53,CONST(830-(ABS(K3)*500/DAZHI)),65,935,IF(CONST(K3) 0,R 

    GB(0,150,150),RGB(0,150,150))); 

    DRAWRECTREL(68,CONST(830-(ABS(J3)*500/DAZHI)),80,935,IF(CONST(J3) 0,R 

    GB(150,150,0),RGB(150,150,0))); 

    {6日画直方图} 

    DRAWRECTREL(100,CONST(830-(ABS(D6)*500/DAZHI)),112,935,IF(CONST(D6) 0 

    ,RGB(150,0,0),RGB(150,0,0))); 

    DRAWRECTREL(114,CONST(830-(ABS(K6)*500/DAZHI)),126,935,IF(CONST(K6) 0 

    ,RGB(0,150,150),RGB(0,150,150))); 

    DRAWRECTREL(128,CONST(830-(ABS(J6)*500/DAZHI)),140,935,IF(CONST(J6) 0 

    ,RGB(150,150,0),RGB(150,150,0))); 

    {9日画直方图} 

    DRAWRECTREL(160,CONST(830-(ABS(D9)*500/DAZHI)),172,935,IF(CONST(D9) 0 

    ,RGB(150,0,0),RGB(150,0,0))); 

    DRAWRECTREL(174,CONST(830-(ABS(K9)*500/DAZHI)),186,935,IF(CONST(K9) 0 

    ,RGB(0,150,150),RGB(0,150,150))); 

    DRAWRECTREL(188,CONST(830-(ABS(J9)*500/DAZHI)),200,935,IF(CONST(J9) 0 

    ,RGB(150,150,0),RGB(150,150,0))); 

    DRAWTEXT_FIX(CURRBARSCOUNT=1,0.05,0.01,0, 资金进出统计 ),COLORYELLOW; 

    DRAWTEXT_FIX(CURRBARSCOUNT=1,0.002,0.15,0, 名称 ),COLORWHITE; 

    DRAWTEXT_FIX(CURRBARSCOUNT=1,0.042,0.15,0, 买量 ),COLORRED; 

    DRAWTEXT_FIX(CURRBARSCOUNT=1,0.098,0.15,0, 卖量 ),COLORGREEN; 

    DRAWTEXT_FIX(CURRBARSCOUNT=1,0.160,0.15,0, 进出量 ),COLORCYAN; 

    DRAWTEXT_FIX(CURRBARSCOUNT=1,0.002,0.30,0, 今日 ),COLORYELLOW; 

    DRAWNUMBER_FIX(CURRBARSCOUNT=1,0.042,0.30,0,CONST(100*DT/CAPITAL)),CO 

    LORRED; 

    DRAWNUMBER_FIX(CURRBARSCOUNT=1,0.098,0.30,0,CONST(100*KT/CAPITAL)),CO 

    LORGREEN; 

    DRAWNUMBER_FIX(CURRBARSCOUNT=1,0.160,0.30,0,CONST(100*DT/CAPITAL-100* 

    KT/CAPITAL)),COLORCYAN; 

    DRAWTEXT_FIX(CURRBARSCOUNT=1,0.002,0.48,0, 3日 ),COLORYELLOW; 

    DRAWNUMBER_FIX(CURRBARSCOUNT=1,0.042,0.48,0,CONST(D3)),COLORRED; 

    DRAWNUMBER_FIX(CURRBARSCOUNT=1,0.098,0.48,0,CONST(K3)),COLORGREEN; 

    DRAWNUMBER_FIX(CURRBARSCOUNT=1,0.160,0.48,0,CONST(J3)),COLORCYAN; 

    DRAWTEXT_FIX(CURRBARSCOUNT=1,0.002,0.68,0, 6日 ),COLORYELLOW; 

    DRAWNUMBER_FIX(CURRBARSCOUNT=1,0.042,0.68,0,CONST(D6)),COLORRED; 

    DRAWNUMBER_FIX(CURRBARSCOUNT=1,0.098,0.68,0,CONST(K6)),COLORGREEN; 

    DRAWNUMBER_FIX(CURRBARSCOUNT=1,0.160,0.68,0,CONST(J6)),COLORCYAN; 

    DRAWTEXT_FIX(CURRBARSCOUNT=1,0.002,0.98,0, 9日 ),COLORYELLOW; 

    DRAWNUMBER_FIX(CURRBARSCOUNT=1,0.042,0.98,0,CONST(D9)),COLORRED; 

    DRAWNUMBER_FIX(CURRBARSCOUNT=1,0.098,0.98,0,CONST(K9)),COLORGREEN; 

    DRAWNUMBER_FIX(CURRBARSCOUNT=1,0.160,0.98,0,CONST(J9)),COLORCYAN; 

    REFLINE:0; 

    DIFF:=EMA(CLOSE,3)-EMA(CLOSE,8); 

    DEA:=EMA(DIFF,5); 

    MACD:=2*(DIFF-DEA); 

    X1:=EMA(DIFF,5)*5; 

    X2:=((EMA(CLOSE,3)-EMA(CLOSE,8)))*5; 

    X3:IF(X2 0,X2,0),POINTDOT,COLORRED; 

    X4:IF(X2 0,X2,0),POINTDOT,COLORGREEN; 

    STICKLINE(X2 0,0,X2,2.8,0),COLORRED; 

    STICKLINE(X2 0,0,X2,2.8,0),COLOR000088; 

    STICKLINE(X2 0,0,X2,2.6,0),COLOR000099; 

    STICKLINE(X2 0,0,X2,2.4,0),COLOR0000AA; 

    STICKLINE(X2 0,0,X2,2.2,0),COLOR0000BB; 

    STICKLINE(X2 0,0,X2,2,0),COLOR0000CC; 

    STICKLINE(X2 0,0,X2,1.8,0),COLOR0000DD; 

    STICKLINE(X2 0,0,X2,1.5,0),COLOR0000EE; 

    STICKLINE(X2 0,0,X2,1.0,0),COLOR0000FF; 

    STICKLINE(X2 0,0,X2,0.0,0),COLOR0000FF; 

    STICKLINE(X2 0,0,X2,2.8,0),COLORGREEN; 

    STICKLINE(X2 0,0,X2,2.8,0),COLOR007700; 

    STICKLINE(X2 0,0,X2,2.6,0),COLOR008800; 

    STICKLINE(X2 0,0,X2,2.6,0),COLOR009900; 

    STICKLINE(X2 0,0,X2,2.4,0),COLOR00BB00; 

    STICKLINE(X2 0,0,X2,2.0,0),COLOR00CC00; 

    STICKLINE(X2 0,0,X2,1.8,0),COLOR00DD00; 

    STICKLINE(X2 0,0,X2,1.5,0),COLOR00EE00; 

    STICKLINE(X2 0,0,X2,1,0),COLOR00FF00; 

    STICKLINE(X2 0,0,X2,0,0),,COLOR00FF00; 

    资金动能A:X2,COLORYELLOW,LINETHICK2; 

    资金动能B:X1,COLORFFFF00,LINETHICK2; 

    DRAWICON((CROSS(资金动能A,资金动能B)AND资金动能B -0.25),资金动能 

    B,1); 

    DRAWICON((CROSS(资金动能B,资金动能A)AND资金动能A 0.25),资金动能 

    A,2);


    image.png


    九毛八公式指标,一个优质的公式指标平台!
    九毛八公式指标 » 通达信资金博弈终结版指标公式(通达信成交量终结版指标公式) 加入收藏