联系方式 Contact

云指标公式网

淘宝:zb-mart.taobao.com

电话:18020657357

微信:18020657357

Q Q:396950280

点击这里给我发消息

网址:www.yzhibiao.com

搜索 Search

实用macd

2015-2-27 14:11:11点击:

云指标公式网特别推荐

DIF:EMA(CLOSE,12)-EMA(CLOSE,26);
DEA:EMA(DIF,9),COLORYELLOW;
MACD:=(DIF-DEA)*2,COLORWHITE;
_MACD红柱_:IF(MACD>REF(MACD,1),MACD,DRAWNULL),
STICK,COLORRED,LINETHICK1;
_MACD绿柱_:IF(MACD<REF(MACD,1),MACD,DRAWNULL),
STICK,COLORGREEN,LINETHICK1;


低位金叉:=CROSS(DIF,DEA) AND DIF<-0.1;
JCCOUNT:=COUNT(CROSS(DIF,DEA),BARSLAST(DEA>=0));
二次金叉:=CROSS(DIF,DEA) AND DEA<0 AND COUNT(JCCOUNT=2,21)=1;

A1:=BARSLAST(REF(CROSS(DIF,DEA),1));
底背离:=REF(CLOSE,A1+1)>CLOSE AND DIF>REF(DIF,A1+1) AND CROSS(DIF,DEA);
底背:DRAWLINE(A1=0,DEA,底背离,DEA,0),COLORRED,LINETHICK4;
{DRAWTEXT(底背离,0,' 底背离'),COLORFF00FF;}
A2:=BARSLAST(REF(CROSS(DEA,DIF),1));
顶背离:=REF(CLOSE,A2+1)<CLOSE AND REF(DIF,A2+1)>DIF AND CROSS(DEA,DIF);
顶背:DRAWLINE(A2=0,DEA,顶背离,DEA,0),COLORGREEN,LINETHICK4; 
DRAWTEXT(低位金叉 AND 二次金叉 AND 底背离,0,'三全项'),COLOR0000FF,LINETHICK2;