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, 上证指数 , 深证指数 )));
AA:=REF(INDEC,1);
指数涨幅:=IF(AA 0,(INDEC-AA)*100/AA,0);
A:=STRCAT(板块,STRCAT( : ,CON2STR(INDEC,2)));
B:=STRCAT( 指数涨跌: ,CON2STR(指数涨幅,2));
DRAWTEXT_FIX(ISLASTBAR,0,0.36,0,A),COLOR0055FF;
DRAWTEXT_FIX(ISLASTBAR,0.12,0.36,0,B),COLOR0055FF;
CCC:=HY_INDEXC;
OOO:=HY_INDEXO;
LLL:=HY_INDEXL;
HHH:=HY_INDEXH;
DRAWKLINE(HHH,OOO,LLL,CCC);
上涨:=VARCAT( 上涨: ,VAR2STR(HY_INDEXADV,0));
下跌:=VARCAT( 下跌: ,VAR2STR(HY_INDEXDEC,0));
DRAWTEXT_FIX(ISLASTBAR,0.22,0.36,0,上涨),COLORMAGENTA;
DRAWTEXT_FIX(ISLASTBAR,0.29,0.36,0,下跌),COLORYELLOW;
A1:=REF(CCC,1);
ZF:=(C-REF(C,1))/REF(C,1)*100;
行业指数:=IF(A1 0,(CCC-A1)*100/A1,0);
DD:=STRCAT( 行业指数: ,CON2STR(CCC,2));
E:=STRCAT( 行业涨跌: ,CON2STR(行业指数,2));
DRAWTEXT_FIX(ISLASTBAR,0.44,0.36,0,DD),COLORYELLOW;
DRAWTEXT_FIX(ISLASTBAR,0.57,0.36,0,E),COLORYELLOW;
{DRAWTEXT_FIX(ISLASTBAR,0.7,0.38,0,HYBLOCK),COLORYELLOW;}{所属行业}
DRAWTEXT_FIX(ISLASTBAR AND 指数涨幅 =行业指数,0.36,0.36,0, 板强 ),COLORRED;
DRAWTEXT_FIX(ISLASTBAR AND 指数涨幅 行业指数,0.36,0.36,0, 板弱 ),COLORCYAN;
DRAWTEXT_FIX(ISLASTBAR AND ZF =行业指数,0.40,0.36,0, 股强 ),COLORRED;
DRAWTEXT_FIX(ISLASTBAR AND ZF 行业指数,0.40,0.36,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;
[2]