软件名称:[B]MACD金叉底背离[/B]
软件类型:国产软件
运行环境:Win9X/2000/XP/2003/
软件语言:简体中文
授权方式:解密版
软件大小:28.0 KB
官方主页:Home Page
更新时间:2008-11-03 05:19:59
软件简介:
MACD(含低位金叉,2次金叉,底背离)送给大家
MACD(含低位金叉,2次金叉,底背离)送给大家
{short=12,long=26,m=9.}
DIFF:=EMA(CLOSE,SHORT)-EMA(CLOSE,LONG);
DEA:=EMA(DIFF,M);
MACD:=2*(DIFF-DEA);
PARTLINE(DIFF>DEA AND DIFF<=0,DIFF),COLORMAGENTA,LINETHICK2;
PARTLINE(DIFF>DEA AND DIFF>0,DIFF),COLORRED,LINETHICK2;
PARTLINE(DIFF<=DEA,DIFF),COLORYELLOW,LINETHICK2;
PARTLINE(C>0,DEA),COLORGREEN;
STICKLINE(MACD>=0 AND MACD>=REF(MACD,1),0,MACD,1,0),COLORRED;
STICKLINE(MACD>=0 AND MACD<=REF(MACD,1),0,MACD,1,0),COLORGREEN;
STICKLINE(MACD<=0 AND MACD>=REF(MACD,1),0,MACD,1,0),COLORMAGENTA;
STICKLINE(MACD<=0 AND MACD<=REF(MACD,1),0,MACD,1,0),COLORCYAN;
STICKLINE(C,0.2,0.2,3,0),COLORWHITE;
STICKLINE(C,-0.2,-0.2,3,0),COLORWHITE;
STICKLINE(C,0.1,0.1,3,0),COLORYELLOW;
STICKLINE(C,-0.1,-0.1,3,0),COLORYELLOW;
DRAWICON(CROSS(DIFF,DEA),DEA,10);
DRAWICON(CROSS(DEA,DIFF),DEA,11);
多转空:=((((LLV(MACD,4)>0) AND (MACD<REF(MACD,1))) AND (REF(MACD,1)>REF(MACD,2))) AND (REF(MACD,2)>REF(MACD,3)));
空转多:=((((HHV(MACD,4)<0) AND (MACD>REF(MACD,1))) AND (REF(MACD,1)<REF(MACD,2))) AND (REF(MACD,2)<REF(MACD,3)));
DRAWICON(多转空,MACD,5),ALIGN0;
DRAWICON(空转多,MACD,4);
低位金叉:=CROSS(DIFF,DEA) AND DIFF<-0.1;
STICKLINE(低位金叉,0,0.3,8,0),COLORYELLOW;
DRAWICON(低位金叉,0.3,10);
JCCOUNT:=COUNT(CROSS(DIFF,DEA),BARSLAST(DEA>=0));
二次金叉:=CROSS(DIFF,DEA) AND DEA<0 AND COUNT(JCCOUNT=2,21)=1;
STICKLINE(二次金叉,0,0.2,8,0),COLORMAGENTA;
A1:=BARSLAST(REF(CROSS(DIFF,DEA),1));
底背离:=REF(CLOSE,A1+1)>CLOSE AND DIFF>REF(DIFF,A1+1) AND CROSS(DIFF,DEA);
STICKLINE(底背离,0,0.1,8,0),COLORRED;
DRAWLINE(A1=0,DEA,底背离,DEA,0),COLORRED;
A2:=BARSLAST(REF(CROSS(DEA,DIFF),1));
顶背离:=REF(CLOSE,A2+1)<CLOSE AND REF(DIFF,A2+1)>DIFF AND CROSS(DEA,DIFF);
DRAWLINE(A2=0,DEA,顶背离,DEA,0),COLORGREEN;
[url=http://www.70822.com/soft/sort013/sort02/down-4066.html]MACD金叉底背离[/url]