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

    正文概述    2024-05-04 04:21:15  

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


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


    授权方式: 免费版


    指标评级: ★★★★★


    指标分类: 策略


    画线方法: 副图



    集中度副图指标公式

     

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

    YY:(TYP-MA(TYP,N))/(0.015*AVEDEV(TYP,N)); 

    TGLJ:=(TYP-MA(TYP,N))/(0.015*AVEDEV(TYP,N)); 

    日出:IF(CROSS(TGLJ,-200),-200,0),STICK,LAYER0,COLORRED,LINETHICK3; 

    DRAWICON(CROSS(TGLJ,-200),200,12); 

    FILLRGN(0,YY,YY0,RGB(255,0,255),YY0,RGB(0,250,0)); 

    STICKLINE(YY0,-202,-200,6,0),COLORGREEN; 

    STICKLINE(YY0,-202,-200,6,1),COLORRED; 

    DRAWGBKLAST(C0,STRIP(RGB(0,0,0),RGB(0,50,50),0)); 

    DRAWTEXTABS(10,5, #39;沙吾提制作 #39;),COLOR00FFFF,LINETHICK2; 

    DPC:=INDEXC; 

    DPO:=INDEXO; 

    DPH:=INDEXH; 

    DPL:=INDEXL; 

    STICKLINE(DPCDPO,DPC,DPO,8,0),COLOR0000FF; 

    STICKLINE(DPCDPO,DPH,DPL,0.5,0),COLOR0000FF; 

    STICKLINE(DPCDPO,DPC,DPO,8,0),COLOR00FF00; 

    STICKLINE(DPCDPO,DPH,DPL,0.5,0),COLOR00FF00; 

    SH:=STKINDI( #39;1A0001 #39;, #39;1A0001 #39;); 

    SZ:=STKINDI( #39;399001 #39;, #39;399001 #39;); 

    IFSTRCMP(MARKETLABEL, #39;SH #39;)=0THENBEGINDRAWTEXTABS(200,0, #39;上证指数 #39;),LINETHICK5,Color6666FF;END; 

    IFSTRCMP(MARKETLABEL, #39;SZ #39;)=0THENBEGINDRAWTEXTABS(200,0, #39;深圳成份指数 #39;),LINETHICK5,Color6666FF;END; 

    上证MA1:=STKINDI( #39;1A0001 #39;, #39;MA.MA1 #39;); 

    深证MA1:=STKINDI( #39;399001 #39;, #39;MA.MA1 #39;); 

    上证MA2:=STKINDI( #39;1A0001 #39;, #39;MA.MA2 #39;); 

    深证MA2:=STKINDI( #39;399001 #39;, #39;MA.MA2 #39;); 

    上证MA3:=STKINDI( #39;1A0001 #39;, #39;MA.MA3 #39;); 

    深证MA3:=STKINDI( #39;399001 #39;, #39;MA.MA3 #39;); 

    上证MA4:=STKINDI( #39;1A0001 #39;, #39;MA.MA4 #39;); 

    深证MA4:=STKINDI( #39;399001 #39;, #39;MA.MA4 #39;); 

    上证MA5:=STKINDI( #39;1A0001 #39;, #39;MA.MA5 #39;); 

    深证MA5:=STKINDI( #39;399001 #39;, #39;MA.MA5 #39;); 

    上证MA6:=STKINDI( #39;1A0001 #39;, #39;MA.MA6 #39;); 

    深证MA6:=STKINDI( #39;399001 #39;, #39;MA.MA6 #39;); 

    MA5:IF(STRCMP(MARKETLABEL, #39;SH #39;)=0,上证MA1,深证MA1),COLORFFFFFF; 

    大盘MA10:IF(STRCMP(MARKETLABEL, #39;SH #39;)=0,上证MA2,深证MA2),COLOR00FFFF; 

    大盘MA20:IF(STRCMP(MARKETLABEL, #39;SH #39;)=0,上证MA3,深证MA3),COLOR3333FF; 

    大盘MA30:IF(STRCMP(MARKETLABEL, #39;SH #39;)=0,上证MA4,深证MA4),COLOR5399FF; 

    大盘MA60:IF(STRCMP(MARKETLABEL, #39;SH #39;)=0,上证MA5,深证MA5),COLOR9900CC; 

    大盘MA120:IF(STRCMP(MARKETLABEL, #39;SH #39;)=0,上证MA6,深证MA6),COLOR39FF00; 

    DRAWTEXTABS(5,30, #39;目前指数: #39;+INDEXC+ #39;点 #39;),COLORFFFFFF; 

    DRAWTEXTABS(5,50, #39;昨日收盘: #39;+REF(INDEXC,1)+ #39;点 #39;),COLORFFFFFF; 

    DRAWTEXTABS(5,70, #39;今日开盘: #39;+INDEXO+ #39;点 #39;),COLORFFFFFF; 

    DRAWTEXTABS(5,90, #39;今日最高: #39;+INDEXH+ #39;点 #39;),COLORFFFFFF; 

    DRAWTEXTABS(5,110, #39;今日最低: #39;+INDEXL+ #39;点 #39;),COLORFFFFFF; 

    DRAWTEXTABS(5,130, #39;指数涨幅: #39;+((INDEXC-REF(INDEXC,1))/INDEXC)*100+ #39;% #39;),COLORFFFFFF; 

    DRAWTEXTABS(5,150, #39;上涨家数: #39;+INDEXADV+ #39;家 #39;),COLORFF00FF; 

    DRAWTEXTABS(5,170, #39;走平家数: #39;+INDEXDEC+ #39;家 #39;),COLOR00FFFF; 

    DRAWTEXTABS(5,190, #39;下跌家数: #39;+INDEXDEC+ #39;家 #39;),COLOR39FF00; 

    上证DIFF:=STKINDI( #39;1A0001 #39;, #39;MACD.DIFF #39;); 

    深证DIFF:=STKINDI( #39;399001 #39;, #39;MACD.DIFF #39;); 

    上证DEA:=STKINDI( #39;1A0001 #39;, #39;MACD.DEA #39;); 

    深证DEA:=STKINDI( #39;399001 #39;, #39;MACD.DEA #39;); 

    上证MACD:=STKINDI( #39;1A0001 #39;, #39;MACD.MACD #39;); 

    深证MACD:=STKINDI( #39;399001 #39;, #39;MACD.MACD #39;); 

    大盘DIFF:=IF(STRCMP(MARKETLABEL, #39;SH #39;)=0,上证DIFF,深证DIFF); 

    大盘DEA:=IF(STRCMP(MARKETLABEL, #39;SH #39;)=0,上证DEA,深证DEA); 

    大盘MACD:=IF(STRCMP(MARKETLABEL, #39;SH #39;)=0,上证MACD,深证MACD); 

    DRAWTEXTABS(165,30, #39;大盘DIFF: #39;+大盘DIFF),COLORFFFFFF; 

    DRAWTEXTABS(165,50, #39;大盘DEA: #39;+大盘DEA),COLOR00FFFF; 

    DRAWTEXTABS(165,70, #39;大盘MACD: #39;+大盘MACD),COLORFF00FF; 

    上证K:=STKINDI( #39;1A0001 #39;, #39;KDJ.K #39;); 

    深证K:=STKINDI( #39;399001 #39;, #39;KDJ.K #39;); 

    上证D:=STKINDI( #39;1A0001 #39;, #39;KDJ.D #39;); 

    深证D:=STKINDI( #39;399001 #39;, #39;KDJ.D #39;); 

    上证J:=STKINDI( #39;1A0001 #39;, #39;KDJ.J #39;); 

    深证J:=STKINDI( #39;399001 #39;, #39;KDJ.J #39;); 

    大盘K:=IF(STRCMP(MARKETLABEL, #39;SH #39;)=0,上证K,深证K); 

    大盘D:=IF(STRCMP(MARKETLABEL, #39;SH #39;)=0,上证D,深证D); 

    大盘J:=IF(STRCMP(MARKETLABEL, #39;SH #39;)=0,上证J,深证J); 

    DRAWTEXTABS(165,90, #39;大盘K: #39;+大盘K),COLORFFFFFF; 

    DRAWTEXTABS(165,110, #39;大盘D: #39;+大盘D),COLOR00FFFF; 

    DRAWTEXTABS(165,130, #39;大盘J: #39;+大盘J),COLORFF00FF; 

    DRAWTEXTABS(310,30, #39;大盘5天: #39;+大盘MA5),COLORFFFFFF,LINETHICK2; 

    DRAWTEXTABS(310,50, #39;大盘10天均线: #39;+大盘MA10),COLOR00FFFF,LINETHICK2; 

    DRAWTEXTABS(310,70, #39;大盘20天均线: #39;+大盘MA20),COLORFF00FF,LINETHICK2; 

    DRAWTEXTABS(310,90, #39;大盘30天均线: #39;+大盘MA30),COLOR39FF00,LINETHICK2; 

    DRAWTEXTABS(310,110, #39;大盘60天均线: #39;+大盘MA60),COLORFF3366,LINETHICK2; 

    DRAWTEXTABS(310,130, #39;大盘120天均线: #39;+大盘MA120),COLORFFCC00,LINETHICK2; 

    上证BIAS1:=STKINDI( #39;1A0001 #39;, #39;BIAS.BIAS1 #39;); 

    深证BIAS1:=STKINDI( #39;399001 #39;, #39;BIAS.BIAS1 #39;); 

    上证BIAS2:=STKINDI( #39;1A0001 #39;, #39;BIAS.BIAS2 #39;); 

    深证BIAS2:=STKINDI( #39;399001 #39;, #39;BIAS.BIAS2 #39;); 

    上证BIAS3:=STKINDI( #39;1A0001 #39;, #39;BIAS.BIAS3 #39;); 

    深证BIAS3:=STKINDI( #39;399001 #39;, #39;BIAS.BIAS3 #39;); 

    大盘BIAS1:=IF(STRCMP(MARKETLABEL, #39;SH #39;)=0,上证BIAS1,深证BIAS1); 

    大盘BIAS2:=IF(STRCMP(MARKETLABEL, #39;SH #39;)=0,上证BIAS2,深证BIAS2); 

    大盘BIAS3:=IF(STRCMP(MARKETLABEL, #39;SH #39;)=0,上证BIAS3,深证BIAS3); 

    DRAWTEXTABS(165,150, #39;大盘BIAS1: #39;+大盘BIAS1),COLORFFFFFF; 

    DRAWTEXTABS(165,170, #39;大盘BIAS2: #39;+大盘BIAS2),COLOR00FFFF; 

    DRAWTEXTABS(165,190, #39;大盘BIAS3: #39;+大盘BIAS3),COLORFF00FF; 

    m5:cost(5); 

    m10:cost(10); 

    m20:cost(20); 

    m30:cost(30); 

    m40:cost(40); 

    m50:cost(50); 

    m60:cost(60); 

    m70:cost(70); 

    m80:cost(80); 

    m90:cost(90); 

    cyc5:ema(AMOUNT/(100*),5),colorwhite; 

    cyc51:=ema(cyc5,2); 

    cyc52:=ema(cyc51,2); 

    cyc53:=ema(cyc52,2); 

    cyc54:=ema(cyc53,2); 

    cyc55:=ema(cyc54,2); 

    cyc56:ema(cyc55,2),coloryellow; 

    PARTLINE(cyc51,cyc51ref(cyc51,1),rgb(255,0,0),cyc51ref(cyc51,1),rgb(0,255,0),1,rgb(0,0,255)),DOTLINE; 

    PARTLINE(cyc52,cyc52ref(cyc52,1),rgb(255,0,0),cyc52ref(cyc52,1),rgb(0,255,0),1,rgb(0,0,255)),DOTLINE; 

    PARTLINE(cyc53,cyc53ref(cyc53,1),rgb(255,0,0),cyc53ref(cyc53,1),rgb(0,255,0),1,rgb(0,0,255)),DOTLINE; 

    PARTLINE(cyc54,cyc54ref(cyc54,1),rgb(255,0,0),cyc54ref(cyc54,1),rgb(0,255,0),1,rgb(0,0,255)),DOTLINE; 

    PARTLINE(cyc55,cyc55ref(cyc55,1),rgb(255,0,0),cyc55ref(cyc55,1),rgb(0,255,0),1,rgb(0,0,255)),DOTLINE; 


    image.png

    公式解读:

    引用 :

    九毛八公式指标,一个优质的公式指标平台!
    九毛八公式指标 » 筹码集中度副图指标公式 筹码集中度主图公式 加入收藏