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

    正文概述    2024-05-04 04:26:17  


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


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


    授权方式: 免费版


    指标评级: ★★★★★


    指标分类: 策略


    画线方法: 副图



    一、通达信控盘指标公式

     

    VAR1:=(WINNER((CLOSE)*(0.9)))*(100); 

    VAR2:=(WINNER((HIGH)*(0.9)))*(100); 

    VAR3:=(WINNER((LOW)*(0.9)))*(100); 

    最高价线:VAR2,CoLor00FFFF; 

    最低价线:VAR3,CoLorFF00FF; 

    收盘价线:VAR1,CoLor00FF00; 

    平均:MA(VAR1,20),CoLorFFFFFF; 

    IF((VAR1 1),VAR1,VAR1),Stick,Linethick3,CoLorFF0000; 

    VAR1,Stick,Linethick3,CoLor000000; 

    IF((VAR1 1),VAR2,VAR3),Stick,Linethick3,CoLor008000; 

    VAR3,Stick,Linethick3,CoLor000000; 

    IF((VAR1 =1),VAR1,VAR1),Stick,Linethick3,CoLorFF0000; 

    VAR1,Stick,Linethick3,CoLor000000; 

    IF((VAR1 =1),VAR2,VAR3),Stick,Linethick3,CoLor6D2454; 

    VAR3,Stick,Linethick3,CoLor000000; 

    AA:最高价线,CoLor00FFFF; 

    BB:最低价线,CoLorF00FF0; 

    CC:收盘价线,CoLor00FF00; 

    DD:平均,CoLorFFFFFF; 

    TR:=MAX(ABS(H-REF(H,1)),ABS(L-REF(L,1))); 

    DMZ:=IF((H+L) =(REF(H,1)+REF(L,1)),0,MAX(ABS(H-REF(H,1)),ABS(L-REF(L,1)))); 

    DMF:=IF((H+L) =(REF(H,1)+REF(L,1)),0,MAX(ABS(H-REF(H,1)),ABS(L-REF(L,1)))); 

    DIZ:=SUM(DMZ,13)/(SUM(DMZ,13)+SUM(DMF,13)); 

    DIF:=SUM(DMF,13)/(SUM(DMF,13)+SUM(DMZ,13)); 

    DDI:DIZ-DIF,COLORSTICK; 

    ADDI:SMA(DDI,30,10); 

    AD:MA(ADDI,5); 

    流通盘:CAPITAL/1000000,COLOR7F00FF,LINETHICK0; 

    ZLCM:=EMA(WINNER(CLOSE)*70,3);{//估算} 

    SHCM:=EMA((WINNER(CLOSE*1.1)-WINNER(CLOSE*0.9))*80,3);{//筹码估算} 

    ZSHTL:=SHCM/(ZLCM+SHCM)*100;{//散户套牢筹码比率} 

    ZZLKP:=ZLCM/(ZLCM+SHCM)*100;{//主力控盘筹码比率} 

    ZCMZL:=MA(ZLCM+SHCM,13);{//市场筹码总量} 

    ZZNTS:=BARSLAST(ZSHTL 90ANDREF(ZSHTL,1) 90);{//走牛天数} 

    ZSHJJ:=EMA(ZSHTL,89);{//散户警戒} 

    ZZLJJ:=EMA(ZZLKP,89);{//主力警戒} 

    ZJLRQD:=INTPART(ZZLKP-ZZLJJ);{//资金流入强度} 

    SH8:=EMA(ZSHTL,8); 

    DKB:=IF(ZZLKP-REF(ZZLKP,1) ZSHTL-REF(ZSHTL,1),1,0); 

    散户套牢线:INTPART(ZSHTL),COLOR66FF00,LINETHICK2; 

    主力控盘线:INTPART(ZZLKP),COLOR4D4DFF,LINETHICK2; 

    资金流入线:ZJLRQD,,COLOR7F00FF,LINETHICK2; 

    资金强弱线:15,COLORFF80FF,LINETHICK2,CROSSDOT; 

    控盘临界线:55,COLORFF937F,LINETHICK2,CROSSDOT; 

    强势控盘线:75,COLORFF3399,LINETHICK2,CROSSDOT; 

    VAR0a:=EMA(EMA(EMA(CLOSE,2),2),2);MA13:(MA(VAR0a,13)*0.99);(MA(VAR0a,13)*0.999); 

    TLAMSENR:=MAX(MAX((HIGH-LOW),ABS((REF(CLOSE,1)-HIGH))),ABS((REF(CLOSE,1)-LOW))); 

    ATR:=MA(TLAMSENR,13);VAR1a:=(REF(CLOSE,1)-REF(ATR,1)); 

    生命线:(HHV(VAR1a,12)),LINETHICK4,color0080ff;VAR1:=EMA(AMOUNT/VOL/100,3); 

    控盘:EMA(VAR1,88);低吸伏击:EMA(VAR1,88)*0.85,LINETHICK2,colorFFFF00; 

    走势铁底:低吸伏击*0.87,LINETHICK3,colorFF00FF;VAR2:=LOW =走势铁底 

    ANDCLOSE REF(CLOSE,1)*1.02; 

    控盘成本,LINETHICK2;DRAWICON(FILTER(VAR2,6),L,1);


    image.png

    公式解读:

    image.png



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


    输出XG:1日前的最低价=计算跌停价ANDC 最低价 AND 开盘价 1日前的最高价


    推荐阅读:通达信主力资金控盘指标公式

     

    ZLCM:=EMA(WINNER(CLOSE)*70,3);{//主力筹码估算} 

    SHCM:=EMA((WINNER(CLOSE*1.1)-WINNER(CLOSE*0.9))*80,3);{//散户筹码估算} 

    ZSHTL:=SHCM/(ZLCM+SHCM)*100;{//散户套牢筹码比率} 

    ZZLKP:=ZLCM/(ZLCM+SHCM)*100;{//主力控盘筹码比率} 

    ZCMZL:=MA(ZLCM+SHCM,13);{//市场筹码总量} 

    ZZNTS:=BARSLAST(ZSHTL 90ANDREF(ZSHTL,1) 90);{//走牛天数} 

    ZSHJJ:=EMA(ZSHTL,89);{//散户警戒} 

    ZZLJJ:=EMA(ZZLKP,89);{//主力警戒} 

    ZJLRQD:=INTPART(ZZLKP-ZZLJJ+0.5);{//资金流入强度} 

    SH8:=EMA(ZSHTL,8); 

    套牢系数:ema(ZSHTL,3),COLORCYAN; 

    控盘系数:ema(ZZLKP,3),COLORRED; 

    资金流入强度:ZJLRQD,COLORMAGENTA; 

    资金流入均值:ema(ZJLRQD,3),COLORGREEN,DOTLINE; 

    强弱:0,COLORWHITE,DOTLINE; 

    : .j (5,3,3),coloraaaaaa; 

    散户线:100*(HHV(HIGH,60)-CLOSE)/(HHV(HIGH,60)-LLV(LOW,60)),LINETHICK3,color00ff00; 

    RSV30:=(CLOSE-LLV(LOW,30))/(HHV(HIGH,30)-LLV(LOW,30))*100; 

    K30:=SMA(RSV30,5,1); 

    D30:=SMA(K30,3,1); 

    J30:=3*K30-2*D30; 

    主力线:EMA(J30,6),COLORYELLOW,LINETHICK3; 

    rsv21:=(CLOSE-LLV(LOW,21))/(HHV(HIGH,21)-LLV(LOW,21))*100; 

    k21:=SMA(rsv21,13,8); 

    :CEILING(SMA(k21,13,8)),COLORRED,LINETHICK4; 

    0;20;50;80;100; 

    PJJ:=DMA((((HIGH+LOW)+(CLOSE*2))/4),0.9); 

    JJ:=REF(EMA(PJJ,3),1); 

    QJJ:=(VOL/(((HIGH-LOW)*2)-ABS((CLOSE-OPEN)))); 

    XVL:=(IF((CLOSE OPEN),(QJJ*(HIGH-LOW)),IF((CLOSE OPEN),(QJJ*((HIGH-OPEN)+(CLOSE-LOW))),(VOL/2)))+IF((CLOSE OPEN),(0-(QJJ*((HIGH-CLOSE)+(OPEN-LOW)))),IF((CLOSE OPEN),(0-(QJJ*(HIGH-LOW))),(0-(VOL/2))))); 

    ZLL:=(VOL/CAPITAL); 

    HSL1:=IF((ZLL 10),10,ZLL); 

    HSL:=((XVL/20)/1.15); 

    攻击流量:=(((HSL*0.55)+(REF(HSL,1)*0.33))+(REF(HSL,2)*0.22)); 

    GJJ:=EMA(攻击流量,8); 

    LLJX:=EMA(攻击流量,3); 

    STICKLINE(((HSL*0.4) =0),((HSL*0.4)+LLJX),0,3,0),COLOR00FFFF; 

    STICKLINE(((HSL*0.4) 0),((HSL*0.4)+LLJX),0,3,0),COLOR00FF00; 

    资金流入:=IF((HSL*0.4+LLJX) 0,(HSL*0.4+LLJX),DRAWNULL),COLORRED; 

    资金流出:=IF((HSL*0.4+LLJX) 0,(HSL*0.4+LLJX),DRAWNULL),COLOR00FF00; 

    资金进出:=(HSL*0.4+LLJX),LINETHICK0; 

    万元:=AMOUNT/10000{0000},VOLSTICK,COLORFF00FF; 

    资金净进出:IF((HSL*0.4+LLJX) 0,资金流入,资金流出),COLORWHITE,POINTDOT; 

    进出比例%:IF((HSL*0.4+LLJX) 0,资金流入/万元*100,资金流出/万元*100),COLORYELLOW; 

    连红天1:=BARSLASTCOUNT(资金净进出 0),,COLORA20FFD,NODRAW; 

    连红天2:=IF(连红天1=0,REF(连红天1,1),连红天1),,COLORA20FFD,NODRAW; 

    连红天3:=IF(连红天2=0,REF(连红天1,2),连红天2),,COLORA20FFD,NODRAW; 

    连红天4:=IF(连红天3=0,REF(连红天1,3),连红天3),,COLORA20FFD,NODRAW; 

    近期连红天:IF(连红天4=0,REF(连红天1,4),连红天4),,COLORYELLOW,NODRAW; 

    最多连红天1:=MAX(REF(近期连红天,1),近期连红天),COLORYELLOW,NODRAW; 

    最多连红天2:=MAX(最多连红天1,REF(近期连红天,2)),COLORYELLOW,NODRAW; 

    最多连红天3:=MAX(最多连红天2,REF(近期连红天,3)),COLORYELLOW,NODRAW; 

    最多连红天4:=MAX(最多连红天3,REF(近期连红天,4)),COLORYELLOW,NODRAW; 

    最多连红天5:=MAX(最多连红天4,REF(近期连红天,5)),COLORYELLOW,NODRAW; 

    最多连红天:MAX(最多连红天5,REF(近期连红天,6)),COLORYELLOW,NODRAW; 

    三日资金:SUM(资金进出,3),COLORWHITE,NODRAW; 

    五日资金:SUM(资金进出,5),COLORFF00FF,NODRAW; 

    十日资金:SUM(资金进出,10),COLOR0000FF,NODRAW; 

    资金流量:=LLJX,LINETHICK0,COLOR0000FF; 

    STICKLINE((资金流量 0),资金流量,0,3,0),COLOR0000FF; 

    STICKLINE((资金流量 0),资金流量,0,3,0),COLORFF3300; 

    黄柱初出蓝:=REF(资金流出,1) 0AND资金流入 30ANDC OANDC REF(C,1)ANDC MA(C,3); 

    X:=(3*C+2*L+O+H)/7; 

    多空线:=(20*X+19*REF(X,1)+18*REF(X,2)+17*REF(X,3)+16*REF(X,4)+15*REF(X,5)+14*REF(X,6) 

    +13*REF(X,7)+12*REF(X,8)+11*REF(X,9)+10*REF(X,10)+9*REF(X,11)+8*REF(X,12) 

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

    REF(X,20))/210; 

    长黄柱:=资金流入 300ANDCROSS(C,多空线); 

    DRAWTEXT(黄柱初出蓝,-30, ★ ),COLORFF00FF; 

    DRAWTEXT(长黄柱,((HSL*0.4)*1.5)*1.4, ★ ),COLORRED; 

    N:=8; 

    M:=13; 

    P:=60; 

    S:=3; 

    V1:=(C*2+H+L)/4*10; 

    V2:=EMA(V1,13)-EMA(V1,34); 

    V3:=EMA(V2,5); 

    V4:=2*(V2-V3)*5.5; 

    超大主力吃:IF(V4 =0,V4,0),COLOR7F00FF,LINETHICK3; 

    超大主力吐:IF(V4 =0,V4,0),COLOR66FF00,LINETHICK2; 

    V5:=(HHV(INDEXH,8)-INDEXC)/(HHV(INDEXH,8)-LLV(INDEXL,8))*8; 

    V6:=EMA(3*V5-2*SMA(V5,18,1),5); 

    V7:=(INDEXC-LLV(INDEXL,8))/(HHV(INDEXH,8)-LLV(INDEXL,8))*10; 

    V8:=(INDEXC*2+INDEXH+INDEXL)/4; 

    V9:=EMA(V8,13)-EMA(V8,34); 

    VA:=EMA(V9,3); 

    VB:=(V9-VA)/2; 

    超大主力吃货线:8,COLORFF80FF,LINETHICK2,CROSSDOT; 


    image.png


    每日公式解答:


     

    股票公式编写要求: 

    10日内真阴地量的公式。 

    股票公式编写结果: 

    地量:V=LLV(V,10) C REF(C,1);




    九毛八公式指标,一个优质的公式指标平台!
    九毛八公式指标 » 通达信资金控盘指标公式(通达信资金监控指标公式) 加入收藏