程序化指标公式
问答中心

通达信顶低副图指标公式

通达信指标 2019-12-15阅读量:2819

安装后如下图,友情提示(指标只是辅助,不作建议) 所有程序均为免费分享。

不会安装点击 安装指南 步骤操作。



DF:=3;
N1:=12;
RSV0:=(C-LLV(L,N1))/(HHV(H,N1)-LLV(L,N1))*100;
RSV1:=EMA((C-LLV(L,12))/(HHV(H,12)-LLV(L,12))*100,2);
RSV2:=EMA(SMA((C-LLV(L,19))/(HHV(H,19)-LLV(L,19))*100,8,1),3);
K:=SMA(RSV0,3,1);
D:=SMA(K,3,1);
KK:=SMA(RSV0,3,1);
DD:=SMA(K,3,1);
N:=KK+DD;
关注区:STICKLINE(N<50,N,50,1,0),COLORRED;
风险区:STICKLINE(N>160,N,160,1,0),COLORGREEN;
{需要编写选股关注微信公众号:程序化指标}
操盘线:N,COLORMAGENTA,LINETHICK1;
买:DRAWICON(CROSS(N,50),50,34);
卖:DRAWICON(CROSS(160,N),160,35);
{CCI}
INDEX:=CCI(14);
CCI:=CROSS(INDEX,-100);
STICKLINE(CCI AND N<50,60,90,1,0),COLORYELLOW;
STICKLINE(CCI AND N<50 AND N>REF(N,1),60,70,3,0),COLORMAGENTA;
STICKLINE(CCI AND N<50 AND CROSS(RSV1,RSV2),80,90,3,0),COLORRED;
STICKLINE(CCI AND N>50,65,85,2,0),COLORBLUE;
{前瞻}
A18:=EMA(C,2);
A19:=EMA((((SLOPE(C,21))*20)+C),42);
A20:=HHV((MA(H,13)),13);
A21:=LLV((MA(H,13)),1);
A22:=EMA(C,4);
A23:=(A18>=A19 AND A21=A20 AND A18>A22 AND C>A21 AND REF(A21,1)<REF(A20,1));
A24:=BARSLAST(A23)+1;
A25:=(LLV(L,A24))*1.3;
A26:=(LLV(L,20))*1.418;
A27:=(A18>=A19 AND A21=A20 AND C/REF(C,1)>=1.07 AND A24<=30 AND C<=A25 AND C<=A26);
A28:=A27 AND FILTER(A27,A24);
A30:=(A18>=A19 AND A21=A20 AND C/REF(C,1)>=1.035 AND A24<=30 AND C<=A25 AND C<=A26);
A31:=A30 AND FILTER(A30,20);
前瞻《加号》:(A28 OR A31),NODRAW;
DRAWICON(前瞻《加号》,45,23);
LS:=C/REF(C,1)>1.01 AND C=H AND BETWEEN(FORCAST(V,4),0.2*FORCAST(V,12),2.1*FORCAST(V,12));
拉升《钱袋》:FILTER(LS,1),NODRAW;
DRAWICON(拉升《钱袋》,55,9);

短DIFF1:=EMA(CLOSE,3)-EMA(CLOSE,6);
短DEA1:=EMA(短DIFF1,4);
短低位金叉:=CROSS(短DIFF1,短DEA1) AND 短DIFF1<-0.1;
短JCCOUNT:=COUNT(CROSS(短DIFF1,短DEA1),BARSLAST(短DEA1>=0));
短二次金叉:=CROSS(短DIFF1,短DEA1) AND 短DEA1<0 AND COUNT(短JCCOUNT=2,21)=1;
短A111:=BARSLAST(REF(CROSS(短DIFF1,短DEA1),1));
短底背离:=REF(CLOSE,短A111+1)>CLOSE AND 短DIFF1>REF(短DIFF1,短A111+1) AND CROSS(短DIFF1,短DEA1);
DRAWICON(短低位金叉 AND 短二次金叉 AND 短底背离,100,26);

中DIFF1:=EMA(CLOSE,6)-EMA(CLOSE,13);
中DEA1:=EMA(中DIFF1,5);
中低位金叉:=CROSS(中DIFF1,中DEA1) AND 中DIFF1<-0.1;
中JCCOUNT:=COUNT(CROSS(中DIFF1,中DEA1),BARSLAST(中DEA1>=0));
中二次金叉:=CROSS(中DIFF1,中DEA1) AND 中DEA1<0 AND COUNT(中JCCOUNT=2,21)=1;
中A111:=BARSLAST(REF(CROSS(中DIFF1,中DEA1),1));
中底背离:=REF(CLOSE,中A111+1)>CLOSE AND 中DIFF1>REF(中DIFF1,中A111+1) AND CROSS(中DIFF1,中DEA1);
DRAWICON(中低位金叉 AND 中二次金叉 AND 中底背离,120,25);

长DIFF1:=EMA(C,12)-EMA(C,26);
长DEA1:=EMA(长DIFF1,9);
长低位金叉:=CROSS(长DIFF1,长DEA1) AND 长DIFF1<-0.1;
长JCCOUNT:=COUNT(CROSS(长DIFF1,长DEA1),BARSLAST(长DEA1>=0));
长二次金叉:=CROSS(长DIFF1,长DEA1) AND 长DEA1<0 AND COUNT(长JCCOUNT=2,21)=1;
长A111:=BARSLAST(REF(CROSS(长DIFF1,长DEA1),1));
长底背离:=REF(CLOSE,长A111+1)>CLOSE AND 长DIFF1>REF(长DIFF1,长A111+1) AND CROSS(长DIFF1,长DEA1);
DRAWICON(长低位金叉 AND 长二次金叉 AND 长底背离,140,24);

版权声明

所有指标均为免费分享。

文章内容来自互联网,本网站无任何收费项目也不推荐股票
广告投放请自行识别风险。

分享:

扫一扫在手机阅读、分享本文

程序化指标公众号

左边广告一

关闭

右边广告二

关闭