通达信金兰MACD背离指标公式

ZT:=(C/REF(C,1)>1.095 OR C/REF(C,1)>2.095) AND C=H;
DIFF:EMA(CLOSE,12) - EMA(CLOSE,25);
DEA:EMA(DIFF,9);
macd:2*(DIFF-DEA), COLORSTICK;
J1:=0.7*(26-12)/2*EMA((C-REF(C,1)),12);
J2:EMA(EMA(J1,3),3);
J3:EMA(J1,3);
A2:=BArslAST(REF(crOSS(J2,J3),1));
顶背离:=REF(CLOSE,A2+1)<CLOSE AND REF(J2,A2+1)>J3 AND CROSS(J2,J3) AND COUNT(ZT,30)>1;
DRAWTEXT(顶背离,DIFF,' 顶背游'),COLORGREEN;
A3:=BARSLAST(REF(CROSS(DEA,DIFF),1));
顶背离J:=REF(CLOSE,A3+1)<CLOSE AND REF(DIFF,A3+1)>DIFF AND CROSS(DEA,DIFF) AND COUNT(ZT,30)>1 ;
DRAWTEXT(顶背离J,DIFF,' 顶背金'),COLORGREEN;
MD:=MacD>0;
UP5:=UPNDAY(MACD,4) AND COUNT(MD,4)=4;
TD:=COUNT(REF(UP5,1),2) AND CROSS(J2,J3) AND COUNT(MACD<REF(MACD,1),2) AND COUNT(ZT,30)>1;
DRAWTEXT(TD,J2,'减仓'),COLORGREEN;




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

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

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

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