在连续涨停板,或连续跌停板上,标注连板数字,
通达信公式为:
涨跌系数:=IF((INBLOCK('科创板') OR INBLOCK('创业板')),0.1988,IF(INBLOCK('ST板块'),0.04988,0.0988));
涨停:=(C>=ZTPRICE(REF(C,1),涨跌系数) AND C=H) OR (C>=ZTPRICE(REF(C,1),0.1)
AND C=H AND DATE<=1200823) AND PERIOD=5 AND NOT(INBLOCK('可转债'));
跌停:=(C<=DTPRICE(REF(C,1),涨跌系数) AND C=L) OR (C<=DTPRICE(REF(C,1),0.1)
AND C=L AND DATE<=1200823) AND PERIOD=5 AND NOT(INBLOCK('可转债'));
STICKLINE(涨停,C,O,2,0),COLORYELLOW;STICKLINE(跌停,C,O,2,0),COLORGREEN;
ZTS:=BARSLASTCOUNT(涨停);DTS:=BARSLASTCOUNT(跌停);
DRAWNUMBER(涨停,{(MAX(C,O)+MIN(C,O))/2*1.02}H*1.025,ZTS),COLORRED;
DRAWNUMBER(跌停,{(MAX(C,O)+MIN(C,O))/2}L,DTS),COLORGREEN;
图如:
{大型股票公式,股票编程,股票技术教程投稿平台-你就是股神,网址:694.cn 备注:如果正文内容没有显示完全的,说明在附件中,请点击‘立即下载’下载该附件!}