终极买卖通达信公式 副图 源码附图

R4:=(2*C+H+L)/4;
R5:=LLV(L,94);  
R6:=HHV(H,89);
快:=EMA((C-R5)/(R6-R5)*100,8);
慢:=EMA(0.667*REF(快,1)+0.333*快,10);
 
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;
 
 
短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);
 
 


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

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

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

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