以下是通达信数字显示涨跌停K线天数新界面(主图)
通达信数字显示涨跌停K线天数新界面(主图)
{数字显示涨跌停K线天数}
A1:=REF(C,1);
涨停:=IF((C-A1)*100/A1>=(10-0.01*100/A1),1,0);
跌停:=IF((A1-C)*100/A1>=(10-0.01*100/A1),1,0);
涨停次数:=COUNT(涨停,BARSSINCE(涨停)+1);
跌停次数:=COUNT(跌停,BARSSINCE(跌停)+1);
DRAWNUMBER(涨停,HIGH*1.04,涨停次数),COLORYELLOW;
DRAWNUMBER(跌停,HIGH*1.04,跌停次数),COLORCYAN;
DRAWNUMBER_FIX(CURRBARSCOUNT=1,0.52,0.04,0,涨停次数),COLORYELLOW;
DRAWNUMBER_FIX(CURRBARSCOUNT=1,0.62,0.04,0,跌停次数),COLORCYAN;
DRAWTEXT_FIX(CURRBARSCOUNT=1,0.45,0.04,0,’上市以来共涨停:’),COLORYELLOW;
DRAWTEXT_FIX(CURRBARSCOUNT=1,0.55,0.04,0,’上市以来共跌停:’),COLORCYAN;
涨停K线:=IF((C-A1)*100/A1>=(10-0.01*100/A1),1,0);
跌停K线:=IF((A1-C)*100/A1>=(10-0.01*100/A1),1,0);
STICKLINE(涨停K线,OPEN,CLOSE,2.5,0),COLORYELLOW;
STICKLINE(跌停K线,OPEN,CLOSE,2.5,0),COLORBLUE;
声明:本站所有文章,如无特殊说明或标注,均为本站原创发布。任何个人或组织,在未征得本站同意时,禁止复制、盗用、采集、发布本站内容到任何网站、书籍等各类媒体平台。如若本站内容侵犯了原著者的合法权益,可联系我们进行处理。
评论(0)