通达信大盘涨跌人气副图指标 自动显示历史涨跌家数 源码附图
{自动显示大盘历史涨停跌停股票数量。}
涨停数:="880006$C",COLORMAGENTA,STICK,LINETHICK1;
STICKLINE("880006$C">=("880005$C"+"880005$O")*0.01 AND "880006$C"<("880005$C"+"880005$O")*0.025,0,涨停数,0.5,0),COLORMAGENTA;
STICKLINE("880006$C">=("880005$C"+"880005$O")*0.025,0,涨停数,0.5,0),COLORRED;
STICKLINE("880006$C"<("880005$C"+"880005$O")*0.01,0,涨停数,0.5,0),COLORWHITE;
STICKLINE("880006$C"<=20,0,涨停数,0.5,0),COLORGREEN;
最高连板:INSUM('周线牛股','连板股',1,2),NODRAW;
跌停数:=-"880006$O",COLORGREEN,NODRAW;
STICKLINE(IF(跌停数>=-110,跌停数,0),0,IF(跌停数>=-110,跌停数,0),0.5,0),COLORWHITE;
DRAWNUMBER(涨停数>=0,涨停数+10,涨停数),COLORWHITE;
DRAWNUMBER(1,IF(跌停数>=-110,跌停数,-50),跌停数),COLORWHITE;
DRAWNUMBER(IF(跌停数<-110,1,0),IF(跌停数<-110,-50,0),跌停数),COLORRED;
昨首板:=BLOCKSETNUM('昨日首板'),NODRAW;
昨板:BLOCKSETNUM('昨涨停'),COLORMAGENTA,NODRAW;
今板:BLOCKSETNUM('今涨停'),COLORYELLOW,NODRAW;
昨优:BLOCKSETNUM('昨优一'),COLORYELLOW,NODRAW;
今优:BLOCKSETNUM('今优一'),COLORMAGENTA,NODRAW;
昨连:BLOCKSETNUM('昨二连'),COLORYELLOW,NODRAW;
今连:BLOCKSETNUM('今二连'),COLORMAGENTA,NODRAW;
昨三:BLOCKSETNUM('昨三连'),COLORYELLOW,NODRAW;
今三:BLOCKSETNUM('今三连'),COLORYELLOW,NODRAW;
昨妖:BLOCKSETNUM('昨妖股'),COLORMAGENTA,NODRAW;
今妖:BLOCKSETNUM('今妖股'),COLORRED,NODRAW;
昨跌:-BLOCKSETNUM('昨跌停'),COLORGREEN,NODRAW;
今跌:-BLOCKSETNUM('当天跌停'),COLORGREEN,NODRAW;
昨炸:BLOCKSETNUM('昨炸板'),COLORYELLOW,NODRAW;
今炸:BLOCKSETNUM('今炸板'),COLORMAGENTA,NODRAW;
0,DOTLINE,COLORWHITE;
-100,DOTLINE,COLORGRAY;
来函数检测结果如下:
该公式没有未来函数
解密、编写股票、期货策略请联系QQ或微信同号:88652583
相关股票指标公式
原理解析:
{自动显示大盘历史涨停跌停股票数量。}
涨停数赋值:"880006$C",画洋红色,STICK,LINETHICK1
STICKLINE("880006$C">=("880005$C"+"880005$O")*0.01 AND "880006$C"<("880005$C"+"880005$O")*0.025,0,涨停数,0.5,0),画洋红色
STICKLINE("880006$C">=("880005$C"+"880005$O")*0.025,0,涨停数,0.5,0),画红色
STICKLINE("880006$C"<("880005$C"+"880005$O")*0.01,0,涨停数,0.5,0),画白色
当满足条件"880006$C"<=20时,在0和涨停数之间画柱状线
输出最高连板:INSUM('周线牛股','连板股',1,2),NODRAW
跌停数赋值:-"880006$O",画绿色,NODRAW
如果跌停数>=-110返回跌停数否则返回0
DRAWNUMBER(涨停数>=0,涨停数+10,涨停数),画白色
如果跌停数>=-110返回跌停数否则返回-50
如果跌停数<-110返回1否则返回0
昨首板赋值:BLOCKSETNUM('昨日首板'),NODRAW
输出昨板:BLOCKSETNUM('昨涨停'),画洋红色,NODRAW
输出今板:BLOCKSETNUM('今涨停'),画黄色,NODRAW
输出昨优:BLOCKSETNUM('昨优一'),画黄色,NODRAW
输出今优:BLOCKSETNUM('今优一'),画洋红色,NODRAW
输出昨连:BLOCKSETNUM('昨二连'),画黄色,NODRAW
输出今连:BLOCKSETNUM('今二连'),画洋红色,NODRAW
输出昨三:BLOCKSETNUM('昨三连'),画黄色,NODRAW
输出今三:BLOCKSETNUM('今三连'),画黄色,NODRAW
输出昨妖:BLOCKSETNUM('昨妖股'),画洋红色,NODRAW
输出今妖:BLOCKSETNUM('今妖股'),画红色,NODRAW
输出昨跌:-BLOCKSETNUM('昨跌停'),画绿色,NODRAW
输出今跌:-BLOCKSETNUM('当天跌停'),画绿色,NODRAW
输出昨炸:BLOCKSETNUM('昨炸板'),画黄色,NODRAW
输出今炸:BLOCKSETNUM('今炸板'),画洋红色,NODRAW
0,DOTLINE,画白色
-100,DOTLINE,COLORGRAY