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

    正文概述    2024-05-04 04:14:52  


    通达信公式源码概况:


    指标类别:通达信公式


    授权方式: 免费版


    指标评级: ★★★★★


    指标分类: 策略


    画线方法: 副图

    公式解读:

    image.png

    公式解读:

     

    UME:VOL,VOLSTICK; 

    主力启动线5:MA(VOLUME,5),LINETHICK2; 

    主力洗盘线35:MA(VOLUME,35),LINETHICK2; 

    异动线135:MA(VOLUME,135),LINETHICK3,COLORGREEN; 

    {地量} 

    V2:IF(CURRBARSCOUNT=1,VOL*240/FROMOPEN/REF(VOL,1)-1,VOL/REF(VOL,1)-1),NODRAW,COLORRED; 

    STICKLINE(V2 =1ANDC REF(C,1),0,VOL,2,0),COLORFF00FF; 

    DRAWTEXT(V2 =1ANDC REF(C,1),VOL*1.2, 立桩 ),COLORFF00FF; 

    动能活跃度:(主力启动线5-资金异动线135),COLORSTICK; 

    N:=1; 

    量:=V; 

    换手:=V/CAPITAL*100; 

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

    主买:=IF(CLOSE OPEN,VAR1*(HIGH-LOW),IF(CLOSE OPEN,VAR1*((HIGH-OPEN)+(CLOSE-LOW)),VOL/2)); 

    主卖:=IF(CLOSE OPEN,0-VAR1*((HIGH-CLOSE)+(OPEN-LOW)),IF(CLOSE OPEN,0-VAR1*(HIGH-LOW),0-VOL/2)); 

    主动比:=主买/主卖*-1; 

    成交量能数值:=主动比-2; 

    成交量能值:成交量能数值,COLORBLUE,VOLSTICK; 

    二十日飘红:COUNT(成交值 0,20),COLORRED,NODRAW; 

    十日飘红:COUNT(成交量能值 0,10),NODRAW; 

    STICKLINE(主卖 0,0,主卖,3,0),COLORCC0000; 

    STICKLINE(主卖 0,0,主卖,2,0),COLORFF4400; 

    STICKLINE(主卖 0,0,主卖,1.1,0),COLORFF8800; 

    STICKLINE(主卖 0,0,主卖,0.4,0),COLORFFCC00; 

    STICKLINE(主买 0,0,主买,3,0),COLOR000066; 

    STICKLINE(主买 0,0,主买,2,0),COLOR000099; 

    STICKLINE(主买 0,0,主买,1.1,0),COLOR0000CC; 

    STICKLINE(主买 0,0,主买,0.4,0),COLOR0000FF; 

    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)ANDDL 50ANDK D,DL,1); 

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

    底线:15,COLORGREEN; 

    顶线:75,COLORYELLOW; 

    流通盘大小:=FINANCE2(37)/10000; 

    DRAWTEXTAbs(20,25, 流通盘大小: +流通盘大小+ 亿 ),LINETHICK1,Colorffffff; 

    净资产收益率:=FINANCE2(5); 

    DRAWTEXTABS(220,25, 净资产收益率: +净资产收益率+ % ),LINETHICK1,Colorffffff; 

    上证指数:=indexc; 

    DRAWTEXTABS(360,25, 上证指数: +上证指数),LINETHICK1,Colorffffff; 

    DRAWGBKLAst(L,STRIP(RGB(0,0,205),RGB(47,79,79),0)); 

    n:=20; 

    n1:=7; 

    n2:=49; 

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

    Var2:=Ema(Var1,10); 

    Var3:=REF(Var2,1); 

    PARTLINE(Var2,Var2 Var3),pointdot,linethick7,COLORYELLOW; 

    PARTLINE(Var3,Var2 Var3),pointdot,linethick7,COLORBLUE; 

    终极黄金:if(Var2 Var3,Var2,0),pointdot,linethick0,COLORYELLOW; 

    一卸千里:if(Var2 Var3,Var3,0),pointdot,linethick0,COLORBLUE; 

    M1:EMA(CLOSE,5); 

    M2:EMA(CLOSE,8); 

    M3:EMA(M2,10); 

    M4:EMA(M2,55); 

    Var4:=EMA(M3,55); 

    M5:EMA(M4,81); 

    M6:EMA(Var4,144),colorff00ff; 

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

    Var6:=MA(CLOSE,N)+2*STD(CLOSE,N); 

    Var7:=REF(CLOSE,1); 

    Var8:=SMA(MAX(CLOSE-Var7,0),N1,1)/SMA(ABS(CLOSE-Var7),N1,1)*100; 

    Var9:=crOSS(N2,Var8); 

    VarA:=FILTER(Var9,4); 

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

    VarC:=LLV(LOW,34); 

    VarD:=HHV(HIGH,34); 

    VarE:=EMA((VarB-Var4)/(Var5-Var4)*100,7); 

    VarF:=EMA(0.667*REF(VarE,1)+0.333*VarE,5); 

    绿低量:=10; 

    蓝低量:=50; 

    灰低量:=100; 

    H_L:=0.1*CONst(HHV(vol,240)); 

    {maV10:MA(V,10),COLORYELLOW;} 

    异动135:MA(V,135),COLORMAGENTA; 

    洗盘40:MA(V,40),COLORBLUE; 

    启动5:MA(V,5),COLORWHITE; 

    VVOL:=IF(CURRBARSCOUNT=1ANDPERIOD=5,VOL*240/FROMOPEN,DRAWNULL);{模拟量} 

    STICKLINE(CURRBARSCOUNT=1ANDPERIOD=5,VVOL,0,1,-1),COLOR00C0C0; 

    量:VOL,VOLSTICK,COLORLIGRAY; 

    换手:VOL*10000/FINANCE(7),NODRAW,COLORGREEN;{DYNAINFO(37)*100} 

    全换手周期:SUMBARS(V,CAPITAL),NODRAW,COLORLIGREEN;{求完全换手到现在的周期数} 

    :V/REF(MA(V,5),1),COLORBROWN,NODRAW; 

    几倍:V/REF(V,1),COLORYELLOW,NODRAW; 

    倍数:=1.9; 

    倍量:VOL =REF(V,1)*倍数AND(IF(C O,C REF(C,1),1)),COLORYELLOW,NODRAW; 

    倍缩:REF(V,1) =VOL*倍数,COLORMAGENTA,NODRAW; 

    平量:RANGE(V/REF(V,1),0.97,1.03)ANDBARSCOUNT(V) =2,COLORWHITE,NODRAW; 

    低量10:VOL=LLV(VOL,绿低量)ANDBARSCOUNT(V) =绿低量,COLORGREEN,NODRAW; 

    低量50:VOL=LLV(VOL,蓝低量)ANDBARSCOUNT(V) =蓝低量,COLORBLUE,NODRAW; 

    地量:VOL=LLV(VOL,灰低量)ANDBARSCOUNT(V) =灰低量,COLORGRAY,NODRAW; 

    V1:=VOL*0.95;{图标位置} 

    V2:=VOL*0.85; 

    STICKLINE(倍量,0,V1,1,0),COLORYELLOW; 

    STICKLINE(平量,0,V1,1,0),COLORWHITE; 

    STICKLINE(低量10,0,V2,1,0),COLORBLacK; 

    STICKLINE(低量50,0,V2,1,0),COLORBLUE; 

    STICKLINE(地量,0,V2,1,0),COLORGRAY; 

    STICKLINE(倍缩,0,V*0.45,1,0),COLORMAGENTA; 

    STICKLINE(C OANDC REF(C,1),0,V1,0,0),COLORRED;{假阴柱} 

    真阳或假阴:=C OORC REF(C,1); 

    收阳:=REF(真阳或假阴,3); 

    倍量1:=REF(倍量,3); 

    高量:=REF(V,3) =HHV(V,7){原为HHV(V,7)}; 

    三日不破:=LLV(C,3) =REF(L,3); 

    {价升:=COUNT(C =REF(C,1),3)=3;}{收盘价逐升原指标} 

    价升:=LLV(C,3) REF(L,3); 

    {量缩:=COUNT(V =REF(V,1),3)=3;}{原指标} 

    量缩:=HHV(V,4)=REF(V,3); 

    连阳:=COUNT(真阳或假阴,3)=3; 

    阳线:=REF(C,3) REF(O,3); 

    倍量将军柱:=倍量1AND三日不破AND收阳; 

    高量将军柱:=高量AND三日不破AND收阳; 

    将军柱:=倍量将军柱OR高量将军柱; 

    黄金柱:=将军柱AND价升AND量缩AND阳线;{标准黄金柱} 

    STICKLINE(黄金柱,0.3*V,0.7*V,1,0),COLORRED;{红柱} 

    DRAWICON(黄金柱,V*1.5,1); 

    V100:=V =LLV(V,100)*1.2ANDV 0ANDBARSCOUNT(V) =100; 

    百日地量群:=COUNT(V100,5)  

    DRAWTEXT(FILTER(百日地量群,4),V+3*H_L, 地量群 ),COLORGRAY; 

    长阴短柱:=C/REF(C,1) =0.96ANDV HHV(V,30)/1.9; 

    DRAWTEXT(长阴短柱,V+1.6*H_L, ! ),COLORLICYAN; 

    PARTLINE(HIGH*1.02,IF(COUNT(CLOSE REF(CLOSE,1),8)/8 0.6ANDvol =1.5*MA(VOL,5)ANDCOUNT(VarE =VarF,3)ANDREF(LOW,1)=LLV(LOW,120),1,0)),COLORYELLOW; 

    PARTLINE(HIGH*1.02,IF(COUNT(CLOSE REF(CLOSE,1),13)/13 0.6ANDCOUNT(VarE VarF,6)ANDREF(LOW,5)=LLV(LOW,120)ANDREF(CLOSE =OPEN,4)ANDREF(CLOSE OPEN,3)ANDREF(CLOSE OPEN,2)ANDREF(OPEN CLOSE,1)ANDOPEN REF(CLOSE,1),1,0)),COLORf00ff0; 

    买进1:if(IF(COUNT(CLOSE REF(CLOSE,1),8)/8 0.6ANDVOL =1.5*MA(VOL,5)ANDCOUNT(VarE =VarF,3)ANDREF(LOW,1)=LLV(LOW,120),1,0),HIGH*1.02,0),COLORYELLOW,LINETHICK0; 

    买进2:if(IF(COUNT(CLOSE REF(CLOSE,1),13)/13 0.6ANDCOUNT(VarE VarF,6)ANDREF(LOW,5)=LLV(LOW,120)ANDREF(CLOSE =OPEN,4)ANDREF(CLOSE OPEN,3)ANDREF(CLOSE OPEN,2)ANDREF(OPEN CLOSE,1)ANDOPEN REF(CLOSE,1),1,0),HIGH*1.02,0),COLORf00ff0,LINETHICK0; 

    Var10:=MA(CLOSE,80)-MA(CLOSE,10)/3; 

    PARTLINE(HIGH*1.02,IF(CLOSE Var10ANDVOL/240 MA(VOL,5)/240ANDCLOSE REF(CLOSE,1)*1.08ANDCLOSE MA(CLOSE,13)*1.3,1,0)),COLORred; 

    :if(IF(CLOSE Var10ANDVOL/240 MA(VOL,5)/240ANDCLOSE REF(CLOSE,1)*1.08ANDCLOSE MA(CLOSE,13)*1.3,1,0),HIGH*1.02,0),COLORred,LINETHICK0; 


    image.png


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





    输出XG:从前3日到前1日持续收盘价 1日前的收盘价ANDC 1.08*1日前的收盘价

    九毛八公式指标,一个优质的公式指标平台!
    九毛八公式指标 » 通达信黄金柱量能指标公式 加入收藏