通达信标准MACD顶背离主图指标公式

DIFF:=EMA(CLOSE,12)-EMA(CLOSE,26);
DEA:=EMA(DIFF,9);
MACD1:=(DIFF-DEA)*2;
JT1:=(BARSLAST(CROSS(DIFF,DEA)));
JT2:=(SUMBARS(CROSS(DIFF,DEA),2)-1);
ST1:=(BARSLAST(CROSS(DEA,DIFF)));
ST2:=(SUMBARS(CROSS(DEA,DIFF),2)-1);
JZX11:=HHV(DIFF,JT1)<>HHV(DIFF,JT2) AND HHV(MACD1,JT1)<>HHV(MACD1,JT2);
JZX22:=HHV(H,JT1)=HHV(H,JT2);
JZX33:=JT1<(JT2-ST2);
XG:=DIFF>0 AND CROSS(DEA,DIFF) AND JZX11 AND JZX22 AND JZX33;
DRAWTEXT(XG,H,'顶背')COLORYELLOW;

通达信标准MACD顶背离主图指标公式

 

大智慧策略终端/职业股民首选分析软件:支持ACE数据,支持L2行情全推数据,支持股票池,超赢数据,价格低廉,支持月季费年费。:

下载地址:https://share.weiyun.com/LPoU0GHu