大盘现价:INDEXC,COLORCYAN,NODRAW;
沪A涨家数:="999999$ADVANCE",COLORRED,NODRAW;
深A涨家数:="399107$ADVANCE",COLORRED,NODRAW;
创业板涨家数:="399006$ADVANCE",COLORRED,NODRAW;
中小板涨家数:="399005$ADVANCE",COLORRED,NODRAW;
沪A跌家数:="999999$DECLINE",COLORGREEN,NODRAW;
深A跌家数:="399107$DECLINE",COLORGREEN,NODRAW;
创业板跌家数:="399006$DECLINE",COLORRED,NODRAW;
中小板跌家数:="399005$DECLINE",COLORRED,NODRAW;
上涨总家数:=沪A涨家数+深A涨家数+创业板涨家数+中小板涨家数,COLORRED,NODRAW;
下跌总家数:=沪A跌家数+深A跌家数+创业板跌家数+中小板跌家数,COLORGREEN,NODRAW;
涨家数:=HY_INDEXADV,COLORMAGENTA,NODRAW;
跌家数:=HY_INDEXDEC,COLORCYAN,NODRAW;
行业情绪:涨家数*100/(涨家数+跌家数),COLORWHITE,NODRAW;
大盘情绪:上涨总家数*100/(上涨总家数+下跌总家数),COLORMAGENTA,NODRAW;
均线:=(INDEXH+INDEXL+INDEXC)/3,COLORRED,LINETHICK1;
关键点位:=(REF(INDEXH,1)+REF(INDEXL,1)+REF(INDEXC,1))/3,COLORGREEN,LINETHICK1;
一成仓:=均线<关键点位 AND 大盘情绪<50;
三成仓:=均线<关键点位 AND 大盘情绪>50;
五成仓:=均线>关键点位 AND 大盘情绪<70;
满仓:=均线>关键点位 AND 大盘情绪>70;
仓位%:IF(一成仓,10,IF(三成仓,30,IF(五成仓,50,IF(满仓,100,0)))),COLORYELLOW,NODRAW;
STICKLINE(INDEXC>INDEXO,关键点位,均线,2.5,1),COLORGRAY;
STICKLINE(INDEXC<INDEXO,关键点位,均线,2.5,0),COLORGRAY;
STICKLINE(INDEXC>INDEXO AND 关键点位<均线,关键点位,均线,2.5,0),COLORRED;
STICKLINE(INDEXC<INDEXO AND 关键点位<均线,关键点位,均线,2.5,0),COLORGREEN;
MA(INDEXC,20),POINTDOT;
联系客服