股资源-股票学习站-学炒股-股票课程-炒股教程-分析选股指标-入门基础知识

 找回密码
 注册昵称

QQ登录

只需一步,快速开始

搜索
上一主题 下一主题

[通达信] 有用的涨停指标


    [-----复制链接-----]
楼主
 通达信源码安装路径:1,工具栏点击公式选项。2,弹出公式窗口点击新建。3,把源码复制到指标编辑器保存。4,回到K线图界面安装建立好的公式 || 2023-10-8 23:42:33

以下是有用的涨停指标

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|

GMT+8, 2024-11-17 02:32

快速回复 返回顶部 返回列表