有用的涨停指标

R:=REF(C,1);


STH:=IF(FRACPART(R*1.051*100)>=0.5,0.01,0)+INTPART(R*1.051*100)/100;

STL:=IF(FRACPART(R*0.949*100)>=0.5,0.01,0)+INTPART(R*0.949*100)/100;

S:=NOT(H>STH OR L<STL);

NOS:=H>STH OR L<STL;

gws:=FRACPART(R*IF(NOS,10,5));

qz:=INTPART(R*IF(NOS,10,5))/100;

涨停价0:=R+qz+if(gws>0.5,0.01,0);

跌停价0:=R-qz-if(gws>0.5,0.01,0);

涨停价:INTPART(涨停价0)+INTPART(FRACPART(涨停价0)*100)/100+ROUND(FRACPART(FRACPART(涨停价0)*100))/100,COLORRED,LINETHICK;

跌停价:INTPART(跌停价0)+INTPART(FRACPART(跌停价0)*100)/100+ROUND(FRACPART(FRACPART(跌停价0)*100))/100,COLORGREEN,LINETHICK;

涨停0:=(C/R>=1.099 OR C/R*S>=1.049) AND C=H,LINETHICK1,COLORFF0080;

跌停0:=(C/R<=0.901 OR C/R*S<=0.951 AND C/R*S>0) AND C=L,LINETHICK1,ColorB4B400;

涨停1:=C>=涨停价-(MINDIFF) AND C<=涨停价+(MINDIFF) AND C=H,LINETHICK2;

跌停1:=C>=跌停价-(MINDIFF) AND C<=跌停价+(MINDIFF) AND C=L,LINETHICK2;

涨停:涨停0 OR 涨停1,LINETHICK2,COLORFF0080;

跌停:跌停0 OR 跌停1,LINETHICK2,ColorB4B400;


STICKLINE(ISLASTBAR,REF(CLOSE,1)*1.1,REF(CLOSE,1)*1.1,CLOSE,1,0),coloryellow;
STICKLINE(ISLASTBAR,REF(CLOSE,1)*0.9,REF(CLOSE,1)*0.9,C,1,0),colorcyan;

DRAWTEXT(ISLASTBAR,REF(CLOSE,1)*1.1,REF(CLOSE,1)*1.1,CLOSE,'价'),colorred,LINETHICK2;
DRAWTEXT(ISLASTBAR,REF(CLOSE,1)*0.9,REF(CLOSE,1)*0.9,C,'价'),colorgreen,LINETHICK2;




来函数检测结果如下:
该公式没有未来函数

解密、定制、编写股票指标请联系QQ或微信同号:88652583
相关股票指标公式

联系我们  |  股票指标网  |  指标网   |  指标公式  |   加入收藏   |  设为主页

@2005-2023 粤ICP备2023063687号-2 股票指标网别名指标网仅为互联网文章,所有股票指标公式及文章仅供学习研究,并不构成投资建议,请勿以此为依据进行股票交易,由此引起的投资亏损与本站无关。股票指标网均来源互联网收集整理,如不慎侵犯了你的权益,请联系我们告知,我们将做删除处理
QQ:88652583 微信 88652583
sitemap站点地图