以下是通达信板块分析A指标公式源码和使用说明

使用说明:

  1. A指标的计算方法是将板块内每个个股的涨跌幅加总,然后再除以成分股的总数,得到一个综合的指标数值。该指标数值可以用来判断整个板块的走势。
  2. A指标的数值越高,表示整个板块的涨幅越大,反之则表示整个板块的跌幅较大。
  3. A指标可用于对比不同板块之间的走势,通过比较不同板块的A指标数值,可以判断哪些板块表现较好或较差。
  4. 当A指标数值大幅上升时,可能意味着整个板块处于一个上升趋势,投资者可考虑适时买入相关板块的股票。
  5. 当A指标数值大幅下降时,可能表示整个板块处于下跌趋势,投资者可考虑适时卖出相关板块的股票或采取避险措施。
  6. 注意,A指标是一种综合性指标,仅凭该指标不能完全确定买卖点,应综合考虑其他技术指标和基本面因素进行投资决策。

通达信板块分析A指标公式源码:

    VAR1:=("880400$C");{医药}
    VAR2:=("880471$C");{银行}
    VAR3:=("880367$C");{纺织服饰}
    VAR4:=("880476$C");{建筑}
    VAR5:=("880437$C");{通用机械}
    VAR6:=("880482$C");{房地产}
    VAR7:=("880360$C");{农林牧渔}
    VAR8:=("880494$C");{互联网*}
    VAR9:=("880310$C");{石油}
    VAR10:=("880492$C");{元器件*}
    VAR11:=("880301$C");{煤炭}
    VAR12:=("999999$C");{上证*}
    VAR13:=("880324$C");{有色}
    VAR14:=("880406$C");{商业连锁}
    VAR15:=("880318$C");{钢铁}
    VAR16:=("880305$C");{电力}
    VAR17:=("880387$C");{电器}
    VAR18:=("880418$C");{传媒}
    VAR19:=("880387$C");{家电}
    VAR20:=("880335$C");{日用化工}
    VAR21:=("880424$C");{旅游}
    VAR22:=("880350$C");{造纸}
    VAR23:=("880454$C");{水务}
    VAR24:=("880472$C");{证券}
    VAR25:=("880430$C");{航空}
    VAR26:=("880447$C");{工程机械}
    VAR27:=("880330$C");{化纤}
    VAR28:=("880446$C");{电气设备}
    VAR29:=("880490$C");{通信设备}
    VAR30:=("880489$C");{电脑设备}
    VAR31:=("880452$C");{电信运营}
    VAR32:=("880493$C");{软件服务}
    VAR33:=("880432$C");{运输服务}
    VAR34:=("880464$C");{仓储物流}
    VAR35:=("880398$C");{医疗保健}
    VAR36:=("880440$C");{工业机械}
    VAR37:=("880431$C");{船舶}
    VAR38:=("880456$C");{环境保护}
    VAR39:=("880344$C");{建材}
    VAR40:=("880474$C");{多元金融}
    VAR41:=("880423$C");{酒店餐饮}
    VAR42:=("880453$C");{公共交通}
    VAR43:=("880390$C");{汽车类}
    VAR44:=("880418$C");{传媒娱乐}
    VAR45:=("880448$C");{电器仪表}
    VAR46:=("880465$C");{交通设施}
    VAR47:=("880351$C");{矿物制品}
    VAR48:=("880372$C");{食品饮料}
    VAR49:=("880473$C");{保险}
    VAR50:=("880455$C");{供气供热}
    VAR51:=("880497$C");{综合类}
    VAR52:=("880380$C");{酿酒}
    VAR53:=("880399$C");{家居用品}
    VAR54:=("880422$C");{文教休闲}
    VAR55:=("880421$C");{广告包装}
    VAR56:=("880335$C");{化工}
    医药A:SUM((VAR1/REF(VAR1,1)-1)*100,0)*2+100;
    银行A:SUM((VAR2/REF(VAR2,1)-1)*100,0)*2+100;
    纺织服饰A:SUM((VAR3/REF(VAR3,1)-1)*100,0)*2+100;
    建筑A:SUM((VAR4/REF(VAR4,1)-1)*100,0)*2+100;
    通用机械A:SUM((VAR5/REF(VAR5,1)-1)*100,0)*2+100;
    地产A:SUM((VAR6/REF(VAR6,1)-1)*100,0)*2+100;
    农林牧渔A:SUM((VAR7/REF(VAR7,1)-1)*100,0)*2+100;
    互联网A:SUM((VAR8/REF(VAR8,1)-1)*100,0)*2+100;
    石油A:SUM((VAR9/REF(VAR9,1)-1)*100,0)*2+100;
    元器件A:SUM((VAR10/REF(VAR10,1)-1)*100,0)*2+100;
    煤炭A:SUM((VAR11/REF(VAR11,1)-1)*100,0)*2+100;
    上证A:SUM((VAR12/REF(VAR12,1)-1)*100,0)*2+100,COLORRED,LINETHICK3;
    有色A:SUM((VAR13/REF(VAR13,1)-1)*100,0)*2+100;
    商业连锁A:SUM((VAR14/REF(VAR14,1)-1)*100,0)*2+100;
    钢铁A:SUM((VAR15/REF(VAR15,1)-1)*100,0)*2+100;
    电力A:SUM((VAR16/REF(VAR16,1)-1)*100,0)*2+100;
    电器A:SUM((VAR17/REF(VAR17,1)-1)*100,0)*2+100;
    传媒A:SUM((VAR18/REF(VAR18,1)-1)*100,0)*2+100;
    家电A:SUM((VAR19/REF(VAR19,1)-1)*100,0)*2+100;
    日用化工A:SUM((VAR20/REF(VAR20,1)-1)*100,0)*2+100;
    旅游A:SUM((VAR21/REF(VAR21,1)-1)*100,0)*2+100;
    造纸A:SUM((VAR22/REF(VAR22,1)-1)*100,0)*2+100;
    水务A:SUM((VAR23/REF(VAR23,1)-1)*100,0)*2+100;
    证券A:SUM((VAR24/REF(VAR24,1)-1)*100,0)*2+100;
    航空A:SUM((VAR25/REF(VAR25,1)-1)*100,0)*2+100;
    工程机械A:SUM((VAR26/REF(VAR26,1)-1)*100,0)*2+100;
    化纤A:SUM((VAR27/REF(VAR27,1)-1)*100,0)*2+100;
    电气设备A:SUM((VAR28/REF(VAR28,1)-1)*100,0)*2+100;
    通信设备A:SUM((VAR29/REF(VAR29,1)-1)*100,0)*2+100;
    电脑设备A:SUM((VAR30/REF(VAR30,1)-1)*100,0)*2+100;
    电信运营A:SUM((VAR31/REF(VAR31,1)-1)*100,0)*2+100;
    软件服务A:SUM((VAR32/REF(VAR32,1)-1)*100,0)*2+100;
    运输服务A:SUM((VAR33/REF(VAR33,1)-1)*100,0)*2+100;
    仓储物流A:SUM((VAR34/REF(VAR34,1)-1)*100,0)*2+100;
    医疗保健A:SUM((VAR35/REF(VAR35,1)-1)*100,0)*2+100;
    工业机械A:SUM((VAR36/REF(VAR36,1)-1)*100,0)*2+100;
    船舶A:SUM((VAR37/REF(VAR37,1)-1)*100,0)*2+100;
    环境保护A:SUM((VAR38/REF(VAR38,1)-1)*100,0)*2+100;
    建材A:SUM((VAR39/REF(VAR39,1)-1)*100,0)*2+100;
    多元金融A:SUM((VAR40/REF(VAR40,1)-1)*100,0)*2+100;
    酒店餐饮A:SUM((VAR41/REF(VAR41,1)-1)*100,0)*2+100;
    公共交通A:SUM((VAR42/REF(VAR42,1)-1)*100,0)*2+100;
    汽车类A:SUM((VAR43/REF(VAR43,1)-1)*100,0)*2+100;
    传媒娱乐A:SUM((VAR44/REF(VAR44,1)-1)*100,0)*2+100;
    电器仪表A:SUM((VAR45/REF(VAR45,1)-1)*100,0)*2+100;
    交通设施A:SUM((VAR46/REF(VAR46,1)-1)*100,0)*2+100;
    矿物制品A:SUM((VAR47/REF(VAR47,1)-1)*100,0)*2+100;
    食品饮料A:SUM((VAR48/REF(VAR48,1)-1)*100,0)*2+100;
    保险A:SUM((VAR49/REF(VAR49,1)-1)*100,0)*2+100;
    供气供热A:SUM((VAR50/REF(VAR50,1)-1)*100,0)*2+100;
    综合类A:SUM((VAR51/REF(VAR51,1)-1)*100,0)*2+100;
    酿酒A:SUM((VAR52/REF(VAR52,1)-1)*100,0)*2+100;
    家居用品A:SUM((VAR53/REF(VAR53,1)-1)*100,0)*2+100;
    文教休闲A:SUM((VAR54/REF(VAR54,1)-1)*100,0)*2+100;
    广告包装A:SUM((VAR55/REF(VAR55,1)-1)*100,0)*2+100;
    化工A:SUM((VAR56/REF(VAR56,1)-1)*100,0)*2+100;
    当前线:SUM((C/REF(C,1)-1)*100,0)*2+100,COLORCYAN,LINETHICK2;
    Q1:=IF(BARSLAST(CURRBARSCOUNT=2),10,0);
    DRAWTEXT((Q1>=10ANDREF(Q1,1)<=0),医药A,'医药');
    {DRAWTEXT((Q1>=10ANDREF(Q1,1)<=0),银行A,'银行');}
    {DRAWTEXT((Q1>=10ANDREF(Q1,1)<=0),纺织服饰A,'纺织服饰A');}
    {DRAWTEXT((Q1>=10ANDREF(Q1,1)<=0),建筑A,'建筑');}
    {DRAWTEXT((Q1>=10ANDREF(Q1,1)<=0),通用机械A,'通用机械');}
    DRAWTEXT((Q1>=10ANDREF(Q1,1)<=0),地产A,'地产');
    {DRAWTEXT((Q1>=10ANDREF(Q1,1)<=0),农林牧渔A,'农林牧渔');}
    {DRAWTEXT((Q1>=10ANDREF(Q1,1)<=0),互联网A,'互联网');}
    DRAWTEXT((Q1>=10ANDREF(Q1,1)<=0),石油A,'石油');
    DRAWTEXT((Q1>=10ANDREF(Q1,1)<=0),元器件A,'元器件');
    DRAWTEXT((Q1>=10ANDREF(Q1,1)<=0),煤炭A,'煤炭');
    DRAWTEXT((Q1>=10ANDREF(Q1,1)<=0),有色A,'有色');
    {DRAWTEXT((Q1>=10ANDREF(Q1,1)<=0),商业连锁A,'商业连锁');}
    DRAWTEXT((Q1>=10ANDREF(Q1,1)<=0),钢铁A,'钢铁');
    {DRAWTEXT((Q1>=10ANDREF(Q1,1)<=0),电力A,'电力');}
    {DRAWTEXT((Q1>=10ANDREF(Q1,1)<=0),电器A,'电器');}
    {DRAWTEXT((Q1>=10ANDREF(Q1,1)<=0),传媒A,'传媒');}
    DRAWTEXT((Q1>=10ANDREF(Q1,1)<=0),家电A,'家电');
    {DRAWTEXT((Q1>=10ANDREF(Q1,1)<=0),日用化工A,'日用化工');}
    DRAWTEXT((Q1>=10ANDREF(Q1,1)<=0),旅游A,'旅游');
    {DRAWTEXT((Q1>=10ANDREF(Q1,1)<=0),造纸A,'造纸');}
    {DRAWTEXT((Q1>=10ANDREF(Q1,1)<=0),水务A,'水务');}
    DRAWTEXT((Q1>=10ANDREF(Q1,1)<=0),证券A,'证券');
    DRAWTEXT((Q1>=10ANDREF(Q1,1)<=0),航空A,'航空');
    {DRAWTEXT((Q1>=10ANDREF(Q1,1)<=0),工程机械A,'工程机械');}
    {DRAWTEXT((Q1>=10ANDREF(Q1,1)<=0),化纤A,'化纤');}
    {DRAWTEXT((Q1>=10ANDREF(Q1,1)<=0),电气设备A,'电气设备');}
    DRAWTEXT((Q1>=10ANDREF(Q1,1)<=0),通信设备A,'通信设备');
    {DRAWTEXT((Q1>=10ANDREF(Q1,1)<=0),电脑设备A,'电脑设备');}
    {DRAWTEXT((Q1>=10ANDREF(Q1,1)<=0),电信运营A,'电信运营');}
    {DRAWTEXT((Q1>=10ANDREF(Q1,1)<=0),软件服务A,'软件服务');}
    {DRAWTEXT((Q1>=10ANDREF(Q1,1)<=0),运输服务A,'运输服务');}
    {DRAWTEXT((Q1>=10ANDREF(Q1,1)<=0),仓储物流A,'仓储物流');}
    DRAWTEXT((Q1>=10ANDREF(Q1,1)<=0),医疗保健A,'医疗保健');
    {DRAWTEXT((Q1>=10ANDREF(Q1,1)<=0),工业机械A,'工业机械');}
    DRAWTEXT((Q1>=10ANDREF(Q1,1)<=0),船舶A,'船舶');
    DRAWTEXT((Q1>=10ANDREF(Q1,1)<=0),环境保护A,'环境保护');
    {DRAWTEXT((Q1>=10ANDREF(Q1,1)<=0),建材A,'建材');}
    {DRAWTEXT((Q1>=10ANDREF(Q1,1)<=0),多元金融A,'多元金融');}
    {DRAWTEXT((Q1>=10ANDREF(Q1,1)<=0),酒店餐饮A,'酒店餐饮');}
    {DRAWTEXT((Q1>=10ANDREF(Q1,1)<=0),公共交通A,'公共交通');]
    DRAWTEXT((Q1>=10ANDREF(Q1,1)<=0),汽车类A,'汽车类');
    {DRAWTEXT((Q1>=10ANDREF(Q1,1)<=0),传媒娱乐A,'传媒娱乐');}
    {DRAWTEXT((Q1>=10ANDREF(Q1,1)<=0),电器仪表A,'电器仪表');}
    {DRAWTEXT((Q1>=10ANDREF(Q1,1)<=0),交通设施A,'交通设施');}
    {DRAWTEXT((Q1>=10ANDREF(Q1,1)<=0),矿物制品A,'矿物制品');}
    {DRAWTEXT((Q1>=10ANDREF(Q1,1)<=0),食品饮料A,'食品饮料');}
    DRAWTEXT((Q1>=10ANDREF(Q1,1)<=0),保险A,'保险');
    {DRAWTEXT((Q1>=10ANDREF(Q1,1)<=0),供气供热A,'供气供热');}
    {DRAWTEXT((Q1>=10ANDREF(Q1,1)<=0),综合类A,'综合类');}
    DRAWTEXT((Q1>=10ANDREF(Q1,1)<=0),酿酒A,'酿酒');
    {DRAWTEXT((Q1>=10ANDREF(Q1,1)<=0),家居用品A,'家居用品');}
    {DRAWTEXT((Q1>=10ANDREF(Q1,1)<=0),文教休闲A,'文教休闲');}
    {DRAWTEXT((Q1>=10ANDREF(Q1,1)<=0),广告包装A,'广告包装');}
    {DRAWTEXT((Q1>=10ANDREF(Q1,1)<=0),化工A,'化工');};
    创业板:=INBLOCK('创业板');
    中小企业:=INBLOCK('中小板');
    上证A股:=INBLOCK('上证A股');
    深证A股:=INBLOCK('深证A股');
    INDEH:=IF(中小企业=1,"399005$H",IF(创业板=1,"399006$H",IF(上证A股=1,"999999$H","399001$H"))),NODRAW;
    INDEO:=IF(中小企业=1,"399005$O",IF(创业板=1,"399006$O",IF(上证A股=1,"999999$O","399001$O"))),NODRAW;
    INDEL:=IF(中小企业=1,"399005$L",IF(创业板=1,"399006$L",IF(上证A股=1,"999999$L","399001$L"))),NODRAW;
    INDEC:=IF(中小企业=1,"399005$C",IF(创业板=1,"399006$C",IF(上证A股=1,"999999$C","399001$C"))),NODRAW;
    板块:=IF(中小企业=1,'中小板指数',IF(创业板=1,'创业板指数',IF(上证A股=1,'上证指数','深证指数')));
    指数涨幅:=(INDEC-REF(INDEC,1))*100/REF(INDEC,1);
    A:=stRCAT(板块,STRCAT(':',CON2STR(INDEC,2)));
    B:=STRCAT(STRCAT('指数涨跌:',CON2STR(指数涨幅,2)),'%');
    DRAWTEXT_FIX(ISLASTBAR,0,0,0,A),COLOR0055FF;
    DRAWTEXT_FIX(ISLASTBAR,0.1,0,0,B),COLOR0055FF;
    沪A涨家数:="999999$ADVANCE",COLORRED,NODRAW;
    沪A跌家数:="999999$DECLINE",COLORGREEN,NODRAW;
    深A涨家数:="399001$ADVANCE",COLORRED,NODRAW;
    深A跌家数:="399001$DECLINE",COLORGREEN,NODRAW;
    创业涨家数:="399006$ADVANCE",COLORRED,NODRAW;
    创业跌家数:="399006$DECLINE",COLORGREEN,NODRAW;
    上涨总家数:=沪A涨家数+深A涨家数,COLORRED,NODRAW;
    下跌总家数:=沪A跌家数+深A跌家数,COLORGREEN,NODRAW;
    BBB1:=STRCAT('沪A涨家数:',CON2STR(沪A涨家数,0));
    DRAWTEXT_FIX(ISLASTBAR,0,0.06,0,BBB1),COLORRED;
    BBB2:=STRCAT('沪A跌家数:',CON2STR(沪A跌家数,0));
    DRAWTEXT_FIX(ISLASTBAR,0,0.12,0,BBB2),COLORGREEN;
    BBB3:=STRCAT('深A涨家数:',CON2STR(深A涨家数,0));
    DRAWTEXT_FIX(ISLASTBAR,0.1,0.06,0,BBB3),COLORRED;
    BBB4:=STRCAT('深A跌家数:',CON2STR(深A跌家数,0));
    DRAWTEXT_FIX(ISLASTBAR,0.1,0.12,0,BBB4),COLORGREEN;
    BBB7:=STRCAT('创业涨家数:',CON2STR(创业涨家数,0));
    DRAWTEXT_FIX(ISLASTBAR,0.3,0.06,0,BBB7),COLORRED;
    BBB8:=STRCAT('创业跌家数:',CON2STR(创业跌家数,0));
    DRAWTEXT_FIX(ISLASTBAR,0.3,0.12,0,BBB8),COLORGREEN;
    上涨总家数比:=上涨总家数/(上涨总家数+下跌总家数)*100,COLORRED,NODRAW;
    下跌总家数比:=下跌总家数/(上涨总家数+下跌总家数)*100,COLORGREEN,NODRAW;
    沪A上涨家数比:=沪A涨家数/(沪A涨家数+沪A跌家数)*100,COLORRED,NODRAW;
    沪A下跌家数比:=沪A跌家数/(沪A涨家数+沪A跌家数)*100,COLORGREEN,NODRAW;
    深A上涨家数比:=深A涨家数/(深A涨家数+深A跌家数)*100,COLORRED,NODRAW;
    深A下跌家数比:=深A跌家数/(深A涨家数+深A跌家数)*100,COLORGREEN,NODRAW;
    创业上涨家数比:=创业涨家数/(创业涨家数+创业跌家数)*100,COLORRED,NODRAW;
    创业下跌家数比:=创业跌家数/(创业涨家数+创业跌家数)*100,COLORGREEN,NODRAW;
    AAA1:=STRCAT(STRCAT('上涨总家数比',CON2STR(上涨总家数比,0)),'%');
    DRAWTEXT_FIX(ISLASTBAR,0.4,0.06,0,AAA1),COLORRED;
    AAA2:=STRCAT(STRCAT('下跌总家数比',CON2STR(下跌总家数比,0)),'%');
    DRAWTEXT_FIX(ISLASTBAR,0.4,0.12,0,AAA2),COLORGREEN;
    AAA3:=STRCAT(STRCAT('沪A上涨家数比',CON2STR(沪A上涨家数比,0)),'%');
    DRAWTEXT_FIX(ISLASTBAR,0.5,0.06,0,AAA3),COLORRED;
    AAA4:=STRCAT(STRCAT('沪A下跌家数比',CON2STR(沪A下跌家数比,0)),'%');
    DRAWTEXT_FIX(ISLASTBAR,0.5,0.12,0,AAA4),COLORGREEN;
    AAA5:=STRCAT(STRCAT('深A上涨家数比',CON2STR(深A上涨家数比,0)),'%');
    DRAWTEXT_FIX(ISLASTBAR,0.6,0.06,0,AAA5),COLORRED;
    AAA6:=STRCAT(STRCAT('深A下跌家数比',CON2STR(深A下跌家数比,0)),'%');
    DRAWTEXT_FIX(ISLASTBAR,0.6,0.12,0,AAA6),COLORGREEN;
    AAA9:=STRCAT(STRCAT('创业上涨家数比',CON2STR(创业上涨家数比,0)),'%');
    DRAWTEXT_FIX(ISLASTBAR,0.8,0.06,0,AAA9),COLORRED;
    AAA10:=STRCAT(STRCAT('创业下跌家数比',CON2STR(创业下跌家数比,0)),'%');
    DRAWTEXT_FIX(ISLASTBAR,0.8,0.12,0,AAA10),COLORGREEN;
    CCC:=HY_INDEXC;
    OOO:=HY_INDEXO;
    LLL:=HY_INDEXL;
    HHH:=HY_INDEXH;
    DRAWKLINE(HHH,OOO,LLL,CCC);
    MA5:MA(CCC,5);
    MA10:MA(CCC,10);
    MA20:MA(CCC,20);
    MA60:MA(CCC,60);
    上涨:=VARCAT('行业上涨:',VAR2STR(HY_INDEXADV,0));
    下跌:=VARCAT('行业下跌:',VAR2STR(HY_INDEXDEC,0));
    DRAWTEXT_FIX(ISLASTBAR,0.7,0,0,上涨),COLORMAGENTA;
    DRAWTEXT_FIX(ISLASTBAR,0.8,0,0,下跌),COLORYELLOW;
    ZF:=(C-REF(C,1))/REF(C,1)*100;
    行业指数:=(CCC-REF(CCC,1))*100/REF(CCC,1);
    DD:=STRCAT('行业指数:',CON2STR(CCC,2));
    E:=STRCAT(STRCAT('行业涨跌:',CON2STR(行业指数,2)),'%');
    DRAWTEXT_FIX(ISLASTBAR,0.2,0,0,DD),COLORYELLOW;
    DRAWTEXT_FIX(ISLASTBAR,0.3,0,0,E),COLORYELLOW;
    DRAWTEXT_FIX(ISLASTBAR,0.4,0,0,HYBLOCK),COLORYELLOW;{所属行业}
    DRAWTEXT_FIX(ISLASTBARAND指数涨幅<=行业指数,0.5,0,0,'板块强'),COLORRED;
    DRAWTEXT_FIX(ISLASTBARAND指数涨幅>行业指数,0.5,0,0,'板块弱'),COLORCYAN;
    DRAWTEXT_FIX(ISLASTBARANDZF>=行业指数,0.6,0,0,'个股强'),COLORRED;
    DRAWTEXT_FIX(ISLASTBARANDZF<行业指数,0.6,0,0,'个股弱'),COLORCYAN;
    DRAWTEXT_FIX(1,0.0,0.43,0,'【说明:早盘如果持有的股票:板弱、股弱。遇到急拉,坚决高抛低吸。】'),COLOR0080FF;
    DRAWTEXT_FIX(1,0.0,0.50,0,'【如果板强、股弱:等待股弱转股强。如果盘中一直处于板强、股弱:坚决做T】'),COLOR0080FF;
    DRAWTEXT_FIX(1,0.0,0.57,0,'【遇到板强、股强:持股不动。遇到板弱、股强:看个股量,如果放量强持股不动。如果急拉不放量,应高抛低吸】'),COLOR0080FF;
    DRAWTEXT_FIX(1,0.0,0.64,0,'【遇到上涨家数迅速增加:考虑补仓或者持股不动,反之减仓。】'),COLOR0080FF;
    个股强弱:=(CLOSE-MA(CLOSE,30))/MA(CLOSE,30)*100,COLORWHITE;
    行业强弱:=(HY_INDEXC-MA(HY_INDEXC,30))/MA(HY_INDEXC,30)*100,COLORYELLOW,LINETHICK2;
    大盘强弱:=(INDEXC-MA(INDEXC,30))/MA(INDEXC,30)*100,COLORRED,LINETHICK4;
    煤炭A:=("880301$C"-REF("880301$C",1))/REF("880301$C",1)*100;
    电力A:=("880305$C"-REF("880305$C",1))/REF("880305$C",1)*100;
    石油A:=("880310$C"-REF("880310$C",1))/REF("880310$C",1)*100;
    钢铁A:=("880318$C"-REF("880318$C",1))/REF("880318$C",1)*100;
    有色A:=("880324$C"-REF("880324$C",1))/REF("880324$C",1)*100;
    化纤A:=("880330$C"-REF("880330$C",1))/REF("880330$C",1)*100;
    化工A:=("880335$C"-REF("880335$C",1))/REF("880335$C",1)*100;
    建材A:=("880344$C"-REF("880344$C",1))/REF("880344$C",1)*100;
    造纸A:=("880350$C"-REF("880350$C",1))/REF("880350$C",1)*100;
    矿物制品A:=("880351$C"-REF("880351$C",1))/REF("880351$C",1)*100;
    日用化工A:=("880355$C"-REF("880355$C",1))/REF("880355$C",1)*100;
    农林牧渔A:=("880360$C"-REF("880360$C",1))/REF("880360$C",1)*100;
    纺织服饰A:=("880367$C"-REF("880367$C",1))/REF("880367$C",1)*100;
    食品饮料A:=("880372$C"-REF("880372$C",1))/REF("880372$C",1)*100;
    酿酒A:=("880380$C"-REF("880380$C",1))/REF("880380$C",1)*100;
    家用电器A:=("880387$C"-REF("880387$C",1))/REF("880387$C",1)*100;
    汽车类A:=("880390$C"-REF("880390$C",1))/REF("880390$C",1)*100;
    医疗保健A:=("880398$C"-REF("880398$C",1))/REF("880398$C",1)*100;
    家居用品A:=("880399$C"-REF("880399$C",1))/REF("880399$C",1)*100;
    医药A:=("880400$C"-REF("880400$C",1))/REF("880400$C",1)*100;
    商业连锁A:=("880406$C"-REF("880406$C",1))/REF("880406$C",1)*100;
    商贸代理A:=("880414$C"-REF("880414$C",1))/REF("880414$C",1)*100;
    传媒娱乐A:=("880418$C"-REF("880418$C",1))/REF("880418$C",1)*100;
    广告包装A:=("880421$C"-REF("880421$C",1))/REF("880421$C",1)*100;
    文教休闲A:=("880422$C"-REF("880422$C",1))/REF("880422$C",1)*100;
    酒店餐饮A:=("880423$C"-REF("880423$C",1))/REF("880423$C",1)*100;
    旅游A:=("880424$C"-REF("880424$C",1))/REF("880424$C",1)*100;
    航空航天A:=("880430$C"-REF("880430$C",1))/REF("880430$C",1)*100;
    船舶A:=("880431$C"-REF("880431$C",1))/REF("880431$C",1)*100;
    运输设备A:=("880432$C"-REF("880432$C",1))/REF("880432$C",1)*100;
    通用机械A:=("880437$C"-REF("880437$C",1))/REF("880437$C",1)*100;
    工业机械A:=("880440$C"-REF("880440$C",1))/REF("880440$C",1)*100;
    电气设备A:=("880446$C"-REF("880446$C",1))/REF("880446$C",1)*100;
    工程机械A:=("880447$C"-REF("880447$C",1))/REF("880447$C",1)*100;
    电器仪表A:=("880448$C"-REF("880448$C",1))/REF("880448$C",1)*100;
    电信运营A:=("880452$C"-REF("880452$C",1))/REF("880452$C",1)*100;
    公共交通A:=("880453$C"-REF("880453$C",1))/REF("880453$C",1)*100;
    水务A:=("880454$C"-REF("880454$C",1))/REF("880454$C",1)*100;
    供气供热A:=("880455$C"-REF("880455$C",1))/REF("880455$C",1)*100;
    环境保护A:=("880456$C"-REF("880456$C",1))/REF("880456$C",1)*100;
    运输服务A:=("880459$C"-REF("880459$C",1))/REF("880459$C",1)*100;
    仓储物流A:=("880464$C"-REF("880464$C",1))/REF("880464$C",1)*100;
    交通设施A:=("880465$C"-REF("880465$C",1))/REF("880465$C",1)*100;
    银行类A:=("880471$C"-REF("880471$C",1))/REF("880471$C",1)*100;
    证券类A:=("880472$C"-REF("880472$C",1))/REF("880472$C",1)*100;
    保险类A:=("880473$C"-REF("880473$C",1))/REF("880473$C",1)*100;
    多元金融A:=("880474$C"-REF("880474$C",1))/REF("880474$C",1)*100;
    建筑A:=("880476$C"-REF("880476$C",1))/REF("880476$C",1)*100;
    房地产A:=("880482$C"-REF("880482$C",1))/REF("880482$C",1)*100;
    电脑设备A:=("880489$C"-REF("880489$C",1))/REF("880489$C",1)*100;
    通信设备A:=("880490$C"-REF("880490$C",1))/REF("880490$C",1)*100;
    半导体A:=("880491$C"-REF("880491$C",1))/REF("880491$C",1)*100;
    元器件A:=("880492$C"-REF("880492$C",1))/REF("880492$C",1)*100;
    软件服务A:=("880493$C"-REF("880493$C",1))/REF("880493$C",1)*100;
    互联网A:=("880494$C"-REF("880494$C",1))/REF("880494$C",1)*100;
    综合类A:=("880497$C"-REF("880497$C",1))/REF("880497$C",1)*100;
    最大值1A:=MAX(煤炭A,MAX(电力A,MAX(石油A,MAX(钢铁A,MAX(有色A,MAX(化纤A,MAX(化工A,MAX(建材A,MAX(造纸A,MAX(矿物制品A,日用化工A))))))))));
    最大值2A:=MAX(农林牧渔A,MAX(纺织服饰A,MAX(食品饮料A,MAX(酿酒A,MAX(家用电器A,MAX(汽车类A,MAX(医疗保健A,MAX(家居用品A,MAX(医药A,MAX(商业连锁A,商贸代理A))))))))));
    最大值3A:=MAX(传媒娱乐A,MAX(广告包装A,MAX(文教休闲A,MAX(酒店餐饮A,MAX(旅游A,MAX(航空航天A,MAX(船舶A,MAX(运输设备A,MAX(通用机械A,MAX(工业机械A,电气设备A))))))))));
    最大值4A:=MAX(工程机械A,MAX(电器仪表A,MAX(电信运营A,MAX(公共交通A,MAX(水务A,MAX(供气供热A,MAX(环境保护A,MAX(运输服务A,MAX(仓储物流A,MAX(交通设施A,银行类A))))))))));
    最大值5A:=MAX(证券类A,MAX(保险类A,MAX(多元金融A,MAX(建筑A,MAX(房地产A,MAX(电脑设备A,MAX(通信设备A,MAX(半导体A,MAX(元器件A,MAX(软件服务A,MAX(互联网A,综合类A)))))))))));
    ZZDZ:=CONST(MAX(最大值1A,MAX(最大值2A,MAX(最大值3A,MAX(最大值4A,最大值5A)))));
    DRAWTEXT_FIX(ISLASTBAR,0.9,0,0,'████████████████'),COLORRED;
    XSWZ1:=CONST(IF(ZZDZ-煤炭A=0ORZZDZ-电力A=0ORZZDZ-石油A=0ORZZDZ-钢铁A=0ORZZDZ-有色A=0ORZZDZ-化纤A=0ORZZDZ-化工A=0ORZZDZ-建材A=0ORZZDZ-造纸A=0ORZZDZ-旅游A=0ORZZDZ-船舶A=0ORZZDZ-水务A=0ORZZDZ-建筑A=0ORZZDZ-医药A=0,614,IF(ZZDZ-汽车类A=0ORZZDZ-银行类A=0ORZZDZ-证券类A=0ORZZDZ-保险类A=0ORZZDZ-房地产A=0ORZZDZ-半导体A=0ORZZDZ-元器件A=0ORZZDZ-互联网A=0ORZZDZ-综合类A=0,627,643)));
    DRAWTEXT_FIX(ISLASTBAR,0.9,0,0,IF(ZZDZ-煤炭A=0,'【今强势板块】:煤炭行业',IF(ZZDZ-电力A=0,'【今强势板块】:电力行业',IF(ZZDZ-石油A=0,'【今强势板块】:石油行业',IF(ZZDZ-钢铁A=0,'【今强势板块】:钢铁行业',IF(ZZDZ-有色A=0,'【今强势板块】:有色行业',IF(ZZDZ-化纤A=0,'【今强势板块】:化纤行业',IF(ZZDZ-化工A=0,'【今强势板块】:化工行业',IF(ZZDZ-建材A=0,'【今强势板块】:建材行业',IF(ZZDZ-造纸A=0,'【今强势板块】:造纸行业',IF(ZZDZ-矿物制品A=0,'【今强势板块】:矿物制品',IF(ZZDZ-日用化工A=0,'【今强势板块】:日用化工',
    IF(ZZDZ-农林牧渔A=0,'【今强势板块】:农林牧渔',IF(ZZDZ-纺织服饰A=0,'【今强势板块】:纺织服饰',IF(ZZDZ-食品饮料A=0,'【今强势板块】:食品饮料',IF(ZZDZ-酿酒A=0,'【今强势板块】:酿酒行业',IF(ZZDZ-家用电器A=0,'【今强势板块】:家用电器',IF(ZZDZ-汽车类A=0,'【今强势板块】:汽车行业',IF(ZZDZ-医疗保健A=0,'【今强势板块】:医疗保健',IF(ZZDZ-家居用品A=0,'【今强势板块】:家居用品',IF(ZZDZ-医药A=0,'【今强势板块】:医药行业',IF(ZZDZ-商业连锁A=0,'【今强势板块】:商业连锁',IF(ZZDZ-商贸代理A=0,'【今强势板块】:商贸代理',DRAWNULL))))))))))))))))))))))),COLORWHITE;
    DRAWTEXT_FIX(ISLASTBAR,0.9,0,0,IF(ZZDZ-传媒娱乐A=0,'【今强势板块】:传媒娱乐',IF(ZZDZ-广告包装A=0,'【今强势板块】:广告包装',IF(ZZDZ-文教休闲A=0,'【今强势板块】:文教休闲',IF(ZZDZ-酒店餐饮A=0,'【今强势板块】:酒店餐饮',IF(ZZDZ-旅游A=0,'【今强势板块】:旅游行业',IF(ZZDZ-航空航天A=0,'【今强势板块】:航空航天',IF(ZZDZ-船舶A=0,'【今强势板块】:船舶行业',IF(ZZDZ-运输设备A=0,'【今强势板块】:运输设备',IF(ZZDZ-通用机械A=0,'【今强势板块】:通用机械',IF(ZZDZ-工业机械A=0,'【今强势板块】:工业机械',IF(ZZDZ-电气设备A=0,'【今强势板块】:电气设备',
    IF(ZZDZ-工程机械A=0,'【今强势板块】:工程机械',IF(ZZDZ-电器仪表A=0,'【今强势板块】:电器仪表',IF(ZZDZ-电信运营A=0,'【今强势板块】:电信运营',IF(ZZDZ-公共交通A=0,'【今强势板块】:公共交通',IF(ZZDZ-水务A=0,'【今强势板块】:水务行业',IF(ZZDZ-供气供热A=0,'【今强势板块】:供气供热',IF(ZZDZ-环境保护A=0,'【今强势板块】:环境保护',IF(ZZDZ-运输服务A=0,'【今强势板块】:运输服务',IF(ZZDZ-仓储物流A=0,'【今强势板块】:仓储物流',IF(ZZDZ-交通设施A=0,'【今强势板块】:交通设施',
    IF(ZZDZ-银行类A=0,'【今强势板块】:银行板块',IF(ZZDZ-证券类A=0,'【今强势板块】:证券板块',IF(ZZDZ-保险类A=0,'【今强势板块】:保险板块',IF(ZZDZ-多元金融A=0,'【今强势板块】:多元金融',IF(ZZDZ-建筑A=0,'【今强势板块】:建筑行业',IF(ZZDZ-房地产A=0,'【今强势板块】:房产板块',IF(ZZDZ-电脑设备A=0,'【今强势板块】:电脑设备',IF(ZZDZ-通信设备A=0,'【今强势板块】:通信设备',IF(ZZDZ-半导体A=0,'【今强势板块】:半导体类',IF(ZZDZ-元器件A=0,'【今强势板块】:元器件类',IF(ZZDZ-软件服务A=0,'【今强势板块】:软件服务',IF(ZZDZ-互联网A=0,'【今强势板块】:互联网类',IF(ZZDZ-综合类A=0,'【今强势板块】:综合板块',DRAWNULL))))))))))))))))))))))))))))))))))),COLORWHITE;
    DRAWTEXT_FIX(ISLASTBAR,0.6,0.2,0,'股东统计分析:'),COLORGREEN;
    DRAWTEXT_FIX(ISLASTBAR,0.7,0.2,0,'1、前十大股东持股合计:'),COLORYELLOW;
    环比增减1:=(FINONE(245,0,0)-FINONE(245,0,1))/FINONE(245,0,1)*100;
    HG111:=IF(环比增减1>0,VARCAT(VARCAT('增加',VAR2STR(环比增减1,2)),'% '),IF(环比增减1<0,VARCAT(VARCAT('减少',VAR2STR(-环比增减1,2)),'% '),''));
    HGH111:=STRCAT(STRCAT('占总股本',STRCAT(CON2STR(FINVALUE(245)/FINVALUE(238)*100,2),'% ')),STRCAT('占流通盘',STRCAT(CON2STR(FINVALUE(245)/FINVALUE(239)*100,2),'% ')));
    SDGDCGLXFX:=IF(FINONE(245,0,0)<FINONE(245,0,1)ANDFINONE(245,0,1)<FINONE(245,0,2)ANDFINONE(245,0,2)<FINONE(245,0,3),'连续三季度减少',IF(FINVALUE(245)>FINONE(245,0,1)ANDFINONE(245,0,1)>FINONE(245,0,2)ANDFINONE(245,0,2)>FINONE(245,0,3),'连续三季度增加',''));
    DRAWTEXT_FIX(ISLASTBAR,0.7,0.294,0,HGH111),COLORYELLOW;
    DRAWTEXT_FIX(ISLASTBAR,0.7,0.381,0,STRCAT('较上期',STRCAT(HG111,SDGDCGLXFX))),COLORYELLOW;
    GDrslXZJFX:=IF(FINONE(242,0,0)<FINONE(242,0,1)ANDFINONE(242,0,1)<FINONE(242,0,2)ANDFINONE(242,0,2)<FINONE(242,0,3),'连续三季度减少',IF(FINVALUE(242)>FINONE(242,0,1)ANDFINONE(242,0,1)>FINONE(242,0,2)ANDFINONE(242,0,2)>FINONE(242,0,3),'连续三季度增加',''));
    DRAWTEXT_FIX(ISLASTBARAND((FINVALUE(242)-FINONE(242,0,1))/FINONE(242,0,1))<=0,0.7,0.468,0,STRCAT('2、本期股东人数较上期减:',STRCAT(CON2STR((FINVALUE(242)-FINONE(242,0,1))/FINONE(242,0,1)*100,2),STRCAT('%,',GDRSLXZJFX)))),COLORFFAAFF;
    DRAWTEXT_FIX(ISLASTBARAND((FINVALUE(242)-FINONE(242,0,1))/FINONE(242,0,1))>0,0.7,0.468,0,STRCAT('2、本期股东人数较上期增:',STRCAT(CON2STR((FINVALUE(242)-FINONE(242,0,1))/FINONE(242,0,1)*100,2),STRCAT('%,',GDRSLXZJFX)))),COLORFFAA00;
    HGH222:=STRCAT(STRCAT('占总股本',STRCAT(CON2STR(FINVALUE(247)/FINVALUE(238)*100,2),'% ')),STRCAT('占流通盘',STRCAT(CON2STR(FINVALUE(247)/FINVALUE(239)*100,2),'% ')));
    JGCGLXZJFX:=IF(FINONE(247,0,0)<FINONE(247,0,1)ANDFINONE(247,0,1)<FINONE(247,0,2)ANDFINONE(247,0,2)<FINONE(247,0,3),'连续三季度减少',IF(FINVALUE(247)>FINONE(247,0,1)ANDFINONE(247,0,1)>FINONE(247,0,2)ANDFINONE(247,0,2)>FINONE(247,0,3),'连续三季度增加',''));
    DRAWTEXT_FIX(ISLASTBAR,0.7,0.555,0,STRCAT('3、共',STRCAT(CON2STR(FINVALUE(246),0),STRCAT('家机构,共持有',STRCAT(CON2STR(FINVALUE(247)/10000,2),'万股'))))),COLORGREEN;
    DRAWTEXT_FIX(ISLASTBAR,0.7,0.642,0,HGH222),COLORGREEN;
    DRAWTEXT_FIX(ISLASTBAR,0.7,0.729,0,STRCAT('增幅',STRCAT(CON2STR((FINONE(247,0,0)-FINONE(247,0,1))/FINONE(247,0,1)*100,2),STRCAT('%',JGCGLXZJFX)))),COLORGREEN;
    环比增减3:=(FINONE(284,0,0)-FINONE(284,0,1))/FINONE(284,0,1)*100;
    HG333:=IF(环比增减3>0,VARCAT(VARCAT('增加',VAR2STR(环比增减3,2)),'% '),IF(环比增减3<0,VARCAT(VARCAT('减少',VAR2STR(-环比增减3,2)),'% '),''));
    GJDCGLXFX:=IF(FINONE(284,0,0)<FINONE(284,0,1)ANDFINONE(284,0,1)<FINONE(284,0,2)ANDFINONE(284,0,2)<FINONE(284,0,3),'连续三季度减少',IF(FINVALUE(284)>FINONE(284,0,1)ANDFINONE(284,0,1)>FINONE(284,0,2)ANDFINONE(284,0,2)>FINONE(284,0,3),'连续三季度增加',''));
    DRAWTEXT_FIX(ISLASTBAR,0.7,0.816,0,STRCAT('4、国家队持',STRCAT(CON2STR(FINVALUE(284),2),STRCAT('万股,占总股本',STRCAT(CON2STR(FINVALUE(284)*10000/FINVALUE(238)*100,2),'% '))))),COLORWHITE;
    DRAWTEXT_FIX(ISLASTBAR,0.7,0.903,0,STRCAT('较上期',STRCAT(HG333,GJDCGLXFX))),COLORWHITE;
    LC:=REF(CLOSE,1);
    RSI:=SMA(MAX(CLOSE-LC,0),6,1)/SMA(ABS(CLOSE-LC),6,1)*100;
    顶部雷达:CROSS(80,RSI)*30,LINETHICK2,colorgreen;
    DRAWTEXT(CROSS(80,RSI),30,'见顶'),colorgreen;
    Varb:=SMA(MAX(CLOSE-LC,0),7,1)/SMA(ABS(CLOSE-LC),7,1)*100;
    Varc:=SMA(MAX(CLOSE-LC,0),13,1)/SMA(ABS(CLOSE-LC),13,1)*100;
    Vard:=BARSCOUNT(CLOSE);
    底部雷达:(Varb<20ANDVarc<25ANDVard>50)*30,linethick2,colorff9933;
    DRAWTEXT(CROSS(100,底部雷达),20,'底'),linethick1,COLORF00FF0;
    主力:EMA((CLOSE-MA(CLOSE,7))/MA(CLOSE,7)*480,2),linethick2,COLORRED;
    散户:EMA((CLOSE-MA(CLOSE,11))/MA(CLOSE,11)*480,7),linethick2,COLORWHITE;
    DRAWTEXT(CROSS(主力,散户)AND主力<-10,-20,'升'),color00ccff;
    DRAWICON(CROSS(主力,散户)AND主力<-10AND散户>REF(散户,1)ORCROSS(主力,散户)AND散户<-35,-15,1);
    DRAWTEXT(CROSS(18,RSI)AND散户<-20AND底部雷达,25,'底'),linethick1,COLORF00FF0;
    MAV:=(2*C+H+L)/4;
    Var1:=LLV(LOW,4);
    Var2:=HHV(HIGH,7);
    SK:=EMA((MAV-Var1)/(Var2-Var1)*100,13);
    SD:=EMA(0.667*REF(SK,1)+0.333*SK,2);
    持仓:STICKLINE(SK>SD,6,0,1,0),linethick3,COLORYELLOW;
    空仓:STICKLINE(SK<SD,6,0,1,0),linethick3,color009900;
    正负量比:12*(winner(c)-winner(o)),linethick2,colorstick;
    时空分裂点:STICKLINE(100*v/capital>=3and100*v/capital<7,100*v/capital,15,7,0),linethick2,COLORff3399;
    STICKLINE(100*v/capital>=7,100*v/capital,6,2,0),linethick2,COLORRED;

通达信板块分析A指标公式截图

声明:本站所有文章,如无特殊说明或标注,均为本站原创发布。任何个人或组织,在未征得本站同意时,禁止复制、盗用、采集、发布本站内容到任何网站、书籍等各类媒体平台。如若本站内容侵犯了原著者的合法权益,可联系我们进行处理。