您的位置:爱股网 > 查股公式 > 通达信金兰MACD背离指标公式源码[查股公式]
股票行情消息数据:

通达信金兰MACD背离指标公式源码[查股公式]

2023/3/27 13:23:36

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;

相关文章列表
天天查股公式列表

股票公式分类

天天查股:股票行情消息 实时DDX在线 资金流向 千股千评 业绩报告 十大股东 最新消息 超赢数据 大小非解禁 停牌复牌 股票分红数据 股票评级报告
广告客服:315126368   843010021
爱股网免费查股,本站内容与数据仅供参考,不构成投资建议,据此操作,风险自担,股市有风险,投资需谨慎。 沪ICP备15043930号-29