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

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

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


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


    授权方式: 免费版


    指标评级: ★★★★★


    指标分类: 策略


    画线方法: 副图



    一、力度副图指标公式

     

    VAR0:=EMA(VOL,20); 

    VAR1:=VAR0+2*STD(VOL,10); 

    VARA1:=VOL; 

    C1:(EMA(VARA1,2)+EMA(VARA1,5)+EMA(VARA1,8))/3,LINETHICK2,COLORYELLOW; 

    C2:(EMA(VARA1,3)+EMA(VARA1,6)+EMA(VARA1,9))/3,COLORRED; 

    C3:(EMA(VARA1,4)+EMA(VARA1,7)+EMA(VARA1,10))/3,COLORRED; 

    C4:(EMA(VARA1,5)+EMA(VARA1,8)+EMA(VARA1,11))/3,COLORRED; 

    C5:(EMA(VARA1,6)+EMA(VARA1,9)+EMA(VARA1,12))/3,COLORRED; 

    C6:(EMA(VARA1,7)+EMA(VARA1,10)+EMA(VARA1,13))/3,COLORRED; 

    C7:(EMA(VARA1,8)+EMA(VARA1,11)+EMA(VARA1,14))/3,COLORRED; 

    C8:(EMA(VARA1,9)+EMA(VARA1,12)+EMA(VARA1,15))/3,COLORRED; 

    C9:(EMA(VARA1,10)+EMA(VARA1,13)+EMA(VARA1,16))/3,COLORRED; 

    C10:(EMA(VARA1,11)+EMA(VARA1,14)+EMA(VARA1,17))/3,COLORRED; 

    C11:(EMA(VARA1,12)+EMA(VARA1,15)+EMA(VARA1,18))/3,COLORRED; 

    C12:(EMA(VARA1,13)+EMA(VARA1,16)+EMA(VARA1,19))/3,COLORRED; 

    C13:(EMA(VARA1,14)+EMA(VARA1,17)+EMA(VARA1,20))/3,COLORRED; 

    C14:(EMA(VARA1,15)+EMA(VARA1,18)+EMA(VARA1,21))/3,COLORRED; 

    C15:(EMA(VARA1,16)+EMA(VARA1,19)+EMA(VARA1,22))/3,COLORRED; 

    C16:(EMA(VARA1,17)+EMA(VARA1,20)+EMA(VARA1,23))/3,COLORRED; 

    C17:(EMA(VARA1,18)+EMA(VARA1,21)+EMA(VARA1,24))/3,COLORRED; 

    C18:(EMA(VARA1,19)+EMA(VARA1,22)+EMA(VARA1,25))/3,COLORRED; 

    C199:(EMA(VARA1,20)+EMA(VARA1,23)+EMA(VARA1,26))/3,LINETHICK3, 

    COLOR0099FF; 

    C20:(EMA(VARA1,21)+EMA(VARA1,24)+EMA(VARA1,27))/3,COLOR00CC33; 

    C21:(EMA(VARA1,22)+EMA(VARA1,25)+EMA(VARA1,28))/3,COLOR00CC33; 

    C22:(EMA(VARA1,23)+EMA(VARA1,26)+EMA(VARA1,29))/3,COLOR00CC33; 

    C23:(EMA(VARA1,24)+EMA(VARA1,27)+EMA(VARA1,30))/3,COLOR00CC33; 

    C24:(EMA(VARA1,25)+EMA(VARA1,28)+EMA(VARA1,31))/3,COLOR00CC33; 

    C25:(EMA(VARA1,26)+EMA(VARA1,29)+EMA(VARA1,32))/3,COLOR00CC33; 

    C26:(EMA(VARA1,27)+EMA(VARA1,30)+EMA(VARA1,33))/3,COLOR00CC33; 

    C27:(EMA(VARA1,28)+EMA(VARA1,31)+EMA(VARA1,34))/3,COLOR00CC33; 

    C28:(EMA(VARA1,29)+EMA(VARA1,32)+EMA(VARA1,35))/3,COLOR00CC33; 

    C29:(EMA(VARA1,30)+EMA(VARA1,33)+EMA(VARA1,36))/3,COLOR00CC33; 

    C30:(EMA(VARA1,31)+EMA(VARA1,34)+EMA(VARA1,37))/3,COLOR00CC33; 

    C31:(EMA(VARA1,32)+EMA(VARA1,35)+EMA(VARA1,38))/3,COLOR00CC33; 

    C32:(EMA(VARA1,33)+EMA(VARA1,36)+EMA(VARA1,39))/3,COLOR00CC33; 

    C33:(EMA(VARA1,34)+EMA(VARA1,37)+EMA(VARA1,40))/3,COLOR00CC33; 

    C34:(EMA(VARA1,35)+EMA(VARA1,38)+EMA(VARA1,41))/3,COLOR00CC33; 

    C35:(EMA(VARA1,36)+EMA(VARA1,39)+EMA(VARA1,42))/3,COLOR00CC33; 

    C36:(EMA(VARA1,37)+EMA(VARA1,40)+EMA(VARA1,43))/3,COLOR00CC33; 

    C37:(EMA(VARA1,38)+EMA(VARA1,41)+EMA(VARA1,44))/3,COLOR00CC33; 

    C38:(EMA(VARA1,39)+EMA(VARA1,42)+EMA(VARA1,45))/3,COLOR00CC33; 

    C399:(EMA(VARA1,40)+EMA(VARA1,43)+EMA(VARA1,46))/3,LINETHICK2, 

    COLORBLUE; 

    C111:(EMA(VARA1,2)+EMA(VARA1,5)+EMA(VARA1,8))/3,LINETHICK2, 

    COLORYELLOW; 

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

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

    VA3:=VA1 REF(VA2,1)ANDVOL REF(VOL,1)ANDCLOSE REF(CLOSE,1); 

    DRAWTEXT(VA3ANDCOUNT(VA3,30)=1,15, 有大资金进关注 ),LINETHICK1,COLORFF00FF; 

    A:=WINNER(CLOSE+CLOSE*15/100)*100; 

    B:=WINNER(CLOSE+CLOSE*0/100)*100; 

    CC:=A-B; 

    D:=(WINNER(CLOSE-CLOSE*0.1/100)-WINNER(CLOSE-CLOSE*15/100))*100; 

    E:=CC 3ANDD 0.5ANDOPEN!=LOW; 

    A1:=DYNAINFO(6); 

    A2:=IF(LOW A1,0,IF(HIGH A1,1,(A1-LOW+0.01)/(HIGH-LOW+0.01))); 

    A3:=VOL/WINNER(LOW); 

    A4:=REF(HHV(CLOSE,120),1); 

    A5:=REF(LLV(CLOSE,120),1); 

    A6:=100*(CLOSE-A5)/(A4-A5); 

    A7:=A2 0ORA2=1; 

    A8:=A7ANDA3/REF(A3,3) =3ANDA6  

    A9:=REF(A8,1)ORREF(A8,2)ORREF(A8,3)ORREF(A8,4); 

    A10:=A8ANDA9; 

    A11:=IF(FILTER(A8,3),5,0); 

    A12:=IF(FILTER(A10,3)ORE,10,0); 

    资金进场日:IF(A11 0,8,DRAWNULL),COLOR00FFFF,LINETHICK3,STICK; 

    资金加仓日:IF(A12 0,15,DRAWNULL),COLORFF00FF,LINETHICK4,STICK; 

    指标公式小助手:DRAWNULL,COLORRED; 

    DRAWTEXT(A11,8, 资金进场  

    DRAWTEXT(A12,17, 资金加仓  

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

    VAR2:=EMA(VAR1,13)-EMA(VAR1,34); 

    VAR3:=EMA(VAR2,5); 

    VAR4:=2*(VAR2-VAR3)*5.5; 

    :VAR4,COLORRED,LINETHICK2; 

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

    VAR6:=EMA(3*VAR5-2*SMA(VAR5,18,1),5); 

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

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

    VAR9:=EMA(VAR8,13)-EMA(VAR8,34); 

    VARA:=EMA(VAR9,3); 

    VARB:=(VAR9-VARA)/2; 

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

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

    VAR11:=(VAR10-MA(VAR10,14))/(0.015*AVEDEV(VAR10,14)); 

    VAR12:=(VAR10-MA(VAR10,70))/(0.015*AVEDEV(VAR10,70)); 

    VAR13:=IF(VAR11 =150ANDVAR11 200ANDVAR12 =150ANDVAR12 200,10,0); 

    VAR14:=IF(VAR11 =-150ANDVAR11 -200ANDVAR12 =-150ANDVAR12 -200,-10,VAR13); 

    VAR15:=(CLOSE-MA(CLOSE,11))/MA(CLOSE,11)*100; 

    VAR16:=100-ABS(VAR15); 

    VAR17:=IF(VAR16 90,VAR16,100); 

    VAR1A:=IF(VARE 0,VARE,0); 

    VAR1B:=IF(VAR12 =200ANDVAR11 =150,15,IF(VAR12 =-200ANDVAR11 =-150,-15,VAR14))+60; 

    VAR1C:=VAR1A 48ANDVAR1B 60ANDVAR17  

    DRAWTEXT(VAR1CANDCOUNT(VAR1C,30)=1,15, 大笔出货.缩量(低位)则洗. ),LINETHICK1,COLORFFCC66; 

    T1:(VA3ANDCOUNT(VA3,30)=1)*28,COLORFFFFFF; 

    T:(COUNT(A8,30) =3ANDCOUNT(A10,30) =3)*38,COLORBLUE; 

    image.png

    公式解读:

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

    N1赋值:如果收盘价的有效数据周期数 =8,返回8,否则返回收盘价的有效数据周期数

    AMOV1赋值:(手)*(收盘价+最低价+最高价)/3

    输出:AMOV1的N1日累和/成交量(手)的N1日累和,画红色

    输出NOTEXT1:如果收盘价 =短线,返回短线,否则返回无效数,线宽为2,画红色

    输出NOTEXT2:如果收盘价 短线,返回短线,否则返回无效数,线宽为2,画绿色

    N2赋值:如果收盘价的有效数据周期数 =48,返回48,否则返回收盘价的有效数据周期数

    AMOV2赋值:成交量(手)*(收盘价+最低价+最高价)/3

    输出:AMOV2的N2日累和/成交量(手)的N2日累和,画黄色

    输出NOTEXT3:如果收盘价 =中线,返回中线,否则返回无效数,线宽为2,画黄色

    输出NOTEXT4:如果收盘价 中线,返回中线,否则返回无效数,线宽为2,画深灰色

    JC赋值:短线上穿中线

    当满足条件JC时,在最低价位置画9号图标

    输出筹均线:如果到最后交易的周期 13,返回获利盘为50%的分布的最后一日取值设为常数,否则返回无效数,画白色,DOTLINE

    当满足条件到最后交易的周期=1时,在筹均线*0.998位置书写文字,画白色

    前5天赋值:收盘价的有效数据周期数 5

    ZC赋值:1日前的收盘价

    ZF赋值:(最高价-ZC+0.01)/ZC*100

    DF赋值:(ZC-最低价+0.01)/ZC*100

    涨5赋值:ZF =5 AND 前5天 AND 收盘价=最高价

    跌5赋值:DF =5 AND 前5天 AND 收盘价=最低价

    涨10赋值:ZF =10 AND 前5天 AND 收盘价=最高价

    跌10赋值:DF =10 AND 前5天 AND 收盘价=最低价

    涨20赋值:ZF =20 AND 前5天 AND 收盘价=最高价

    跌20赋值:DF =20 AND 前5天 AND 收盘价=最低价

    板赋值:如果属于某,返回涨20,否则返回如果属于某板块ANDDATE 1200823,返回涨20,否则返回如果属于某板块,返回涨5,否则返回涨10

    跌停板赋值:如果属于某板块,返回跌20,否则返回如果属于某板块ANDDATE 1200823,返回跌20,否则返回如果属于某板块,返回跌5,否则返回跌10

    当满足条件涨停板时,在开盘价和收盘价位置之间画柱状线,宽度为2.7,0不为0则画空心柱.,画黄色

    当满足条件涨停板时,在开盘价和收盘价位置之间画柱状线,宽度为1.5,0不为0则画空心柱.,画红色

    当满足条件跌停板时,在开盘价和收盘价位置之间画柱状线,宽度为1.5,0不为0则画空心柱.,画蓝色

    曾涨5赋值:ZF =5 AND 前5天 AND 收盘价 最高价

    曾跌5赋值:DF =5 AND 前5天 AND 收盘价 最低价

    曾涨10赋值:ZF =10 AND 前5天 AND 收盘价 最高价

    曾跌10赋值:DF =10 AND 前5天 AND 收盘价 最低价

    曾涨20赋值:ZF =20 AND 前5天 AND 收盘价 最高价

    曾跌20赋值:DF =20 AND 前5天 AND 收盘价 最低价

    曾涨停板赋值:如果属于某板块,返回曾涨20,否则返回如果属于某板块ANDDATE 1200823,返回曾涨20,否则返回如果属于某板块,返回曾涨5,否则返回曾涨10

    曾跌停板赋值:如果属于某板块,返回曾跌20,否则返回如果属于某板块ANDDATE 1200823,返回曾跌20,否则返回如果属于某板块,返回曾跌5,否则返回曾跌10

    当满足条件曾涨停板时,在开盘价和收盘价位置之间画柱状线,宽度为0.1,0不为0则画空心柱.,画淡洋红色

    当满足条件曾涨停板时,在最高价*1.001位置画37号图标

    当满足条件曾涨停板时,在最高价-0.02位置书写文字,画青色

    当满足条件曾跌停板时,在开盘价和收盘价位置之间画柱状线,宽度为0.1,0不为0则画空心柱.,画蓝色

    当满足条件曾跌停板时,在最低价*0.98位置画36号图标

    当满足条件曾跌停板时,在最低价-0.1位置书写文字,画淡红色



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

     

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

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

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

    RSV1:=(CLOSE-LLV(LOW,38))/(HHV(HIGH,38)-LLV(LOW,38))*100; 

    长K:SMA(RSV1,5,1),COLORRED; 

    长D:SMA(长K,10,1),COLOR66CC33; 

    18,COLORWHITE; 

    85,COLORBLUE; 

    STICKLINE(短K 短D,短K,短D,6,0),COLORYELLOW; 

    STICKLINE(短K =短D,短K,短D,6,0),COLORGREEN; 

    STICKLINE(长K 长D,长K,长D,6,0),COLORRED; 

    STICKLINE(长K =长D,长K,长D,6,0),COLOR669933; 

    N:=35; 

    M:=35; 

    N1:=1; 

    NX:=42; 

    N1X:=21; 

    VAR1:=IF(CLOSE OPEN,(CLOSE-OPEN)/OPEN,0); 

    VAR2:=IF(CLOSE OPEN,(CLOSE-OPEN)/OPEN,0); 

    VAR3:=IF(CLOSE OPEN,(OPEN-LOW)/OPEN,(CLOSE-LOW)/OPEN); 

    VAR4:=IF(CLOSE OPEN,(HIGH-CLOSE)/OPEN,(HIGH-OPEN)/OPEN); 

    VAR5:=IF(BARSLAST(CLOSE MA(CLOSE,20)) 34,34,BARSLAST(CLOSE MA(CLOSE,20))); 

    VAR6:=IF(BARSLAST(CLOSE MA(CLOSE,60)) 120,120,BARSLAST(CLOSE MA(CLOSE,60))); 

    VAR7:=IF(COUNT(CLOSE 0,250) 240,CAPITAL,SUM(VOL,480)/8); 

    VAR8:=MA(LOW,20)*1.2; 

    VAR9:=MA(LOW,20)*1.1; 

    VAR10:=MA(HIGH,20)*0.9; 

    VAR11:=MA(HIGH,20)*0.8; 

    VAR12:=CLOSE/(1+(CLOSE/MA(CLOSE,240)-1)-MA(INDEXC/MA(INDEXC,240)-1,3)); 

    游资资金:IF(BARSLAST(CLOSE VAR9) 4ANDCLOSE MA(CLOSE,5)ANDBARSLAST(CLOSE=HHV(CLOSE,21)) 4,(MA(CLOSE,5)-REF(MA(CLOSE,5),1))/REF(MA(CLOSE,5),1)*300,0),COLORMAGENTA; 

    主力控盘:MA(IF(CLOSE MA(CLOSE,240)AND(CLOSE-MA(CLOSE,240))/MA(CLOSE,240)+SUM(VAR1,20) 0,((CLOSE-MA(CLOSE,240))/MA(CLOSE,240)+SUM(VAR1,20))/MA(VOL/VAR7,20)/2.5,0),10),COLORYELLOW,LINETHICK2; 

    散户资金:IF(CLOSE MA(CLOSE,20),((REF(CLOSE,VAR5)-CLOSE)/REF(CLOSE,VAR5)+SUM(VAR3,VAR5)-SUM(VAR4,VAR5))*20,0),COLORBLUE,LINETHICK2; 

    中线超跌:(REF(CLOSE,VAR6)-CLOSE)/CLOSE*2,COLORGREEN,LINETHICK2; 

    STICKLINE(主力资金 0,0,主力资金,0.7,0),COLORRED; 

    STICKLINE(主力控盘 0,0,主力控盘,0.7,0),COLORYELLOW; 

    STICKLINE(游资资金 0,0,游资资金,0.7,0),COLORMAGENTA; 

    STICKLINE(中线超跌 0,0,中线超跌,0.7,0),COLORGREEN; 

    C1:10000*C/INDEXC; 

    O1:=10000*O/INDEXO; 

    ZLDX:=MA(C1,5); 

    STICKLINE(C1 =O1ANDC1 ZLDX,C1,ZLDX,2,0),COLORRED; 

    STICKLINE(C1 O1ANDC1 =ZLDX,ZLDX,C1,2,0),COLORCYAN; 

    V1:=(2*C+H+L+O)/5; 

    V2:=LLV(L,21); 

    V3:=HHV(H,21); 

    GG:=EMA((V1-V2)/(V3-V2),5); 

    {PARTLINE(ZLDX,GG =REF(GG,1),RGB(255,0,0),GG =REF(GG,1),RGB(0,255,0)),LINET 

    HICK3;}; 

    IF(GG =REF(GG,1),ZLDX,DRAWNULL),COLORRED,LINETHICK2; 

    IF(GG REF(GG,1),ZLDX,DRAWNULL),COLORGREEN,LINETHICK2;

    image.png


    九毛八公式指标,一个优质的公式指标平台!
    九毛八公式指标 » 资金力度副图指标公式(主力量能指标公式副图) 加入收藏