今天更新了指数副图五彩K线指标,副图里面各大指数的彩色K线仅代表指数当日不同的下跌幅度(洋红色:-0.4%、青色:-0.8%、绿色:-1.2%、黄色:-2.5%)。该指标看个股与大盘指数的剪刀叉走势一目了然。
个人觉得个股与大盘的走势强弱对比,看沪深300或深圳综指就行了,几大指数走势大部分时间趋势一致,只是下跌幅度(各指数包含的权重行业不同)不同,交易就是要简单,换不同的锚是为了研究更细致以便获得大局观(跟踪各大指数风格切换)。
以下是通达信公式源码,小白无脑复制即可:
AH:='399006$H';AO:='399006$O';AL:='399006$L';AC:='399006$C';创业板指:'399006$C',NODRAW;{399006为创业板指}
{AH:='399006$H';AO:='399006$O';AL:='399006$L';AC:='399006$C';创业板指:'399006$C',NODRAW;{399006为创业板指}
{AH:='999999$H';AO:='999999$O';AL:='999999$L';AC:='999999$C';上证指数:'999999$C,NODRAW;{999999为上证指数}
{AH:='399106$H';AO:='399106$O';AL:='399106$L';AC:='399106$C';深圳综指:'399106$C',NODRAW;{399106为深圳综指}
{AH:='399300$H';AO:='399300$O';AL:='399300$L';AC:='399300$C';沪深300:'399300$C',NODRAW;{399300为沪深300}
{AH:='399303$H';AO:='399303$O';AL:='399303$L';AC:='399303$C';国证2000:'399303$C',NODRAW;{399303为国证2000}
B1:=(AC-REF(AC,1))/REF(AC,1)*100;
DRAWKLINE(AH,AO,AL,AC);
STICKLINE(AC>0,AH,AL,0,0),COLORGRAY;
STICKLINE(AC>0,AO,AC,2,0),COLORGRAY;
STICKLINE(B1<-0.4,AO,AC,2,0),COLORMAGENTA;
STICKLINE(B1<-0.8,AO,AC,2,0),COLORCYAN;
STICKLINE(B1<-1.2,AO,AC,2,0),COLORGREEN;
STICKLINE(B1<-2.5,AO,AC,2,0),COLORYELLOW;
STICKLINE(B1<-0.4,AL,AH,0,0),COLORMAGENTA;
STICKLINE(B1<-0.8,AL,AH,0,0),COLORCYAN;
STICKLINE(B1<-1.2,AL,AH,0,0),COLORGREEN;
STICKLINE(B1<-2.5,AL,AH,0,0),COLORYELLOW;