软件名称:[B]MACD底背离买点[/B]
软件类型:国产软件
运行环境:Win9X/Win2000/WinXP/Win2003/Win7/
软件语言:简体中文
授权方式:免费版
软件大小:4.00 KB
官方主页:Home Page
更新时间:2016-05-18 01:49:10
软件简介:
DIFF : EMA(CLOSE,SHORT) - EMA(CLOSE,LONG),colorwhite;
DEA : EMA(DIFF,M),coloryellow;
MACD :=2*(DIFF-DEA);
Zero : 0;
STICKLINE(MACD>0,0,MACD,1,0),colorred;
STICKLINE(MACD<0,0,MACD,1,0),colorgreen;
//VARGu:= IF (REF(diff,2)>=REF(diff,1) AND diff>REF(diff,1) ,TRUE,IF( REF(diff,2)<=REF(diff,1) AND ( (REF(diff,1)-REF(diff,2))*2 /REF(diff,2) < (diff-REF(diff,1)) /REF(diff,1) ) ,TRUE,FALSE));
VARGu1:= IF( REF(diff,2)<=REF(diff,1) AND ( (REF(diff,1)-REF(diff,2))*1.5/REF(diff,2) < (diff-REF(diff,1)) /REF(diff,1) ) ,TRUE,FALSE);
VARGu2:= IF( REF(diff,2)>=REF(diff,1) AND diff>REF(diff,1) ,TRUE,FALSE);
//VARGu:= (REF(diff,2)>=REF(diff,1) AND diff>REF(diff,1));
VARGu:=CROSS(diff,dea) ;
//VARGu:=REF(MACD,2)>REF(MACD,1) AND MACD>=REF(MACD,1) ;
//VARGu:= IF(LLV(MIN(OPEN,CLOSE),5)=MIN(OPEN,CLOSE) ,TRUE,FALSE);
//VARGU:=VARGu2 OR VARGu1;
AA:=COUNT(VARGu,BARSLAST(DEA>=0));
A1:=BARSLAST(REF(VARGu,1));
三次金叉:IF(VARGu AND DEA<0 AND AA>=3 AND dea<0 AND A1>=5,1,0);
DRAWTEXT(三次金叉=1,0.2,''+AA+'次金叉'),coloryellow;
底背离:=MIN(REF(MIN(CLOSE,OPEN),A1+1),REF(MIN(CLOSE,OPEN),A1+2),REF(MIN(CLOSE,OPEN),A1+3),REF(MIN(CLOSE,OPEN),A1+4))>LLV(MIN(CLOSE,OPEN),3) AND LLV(DIFF,3)> MIN(REF(DIFF,A1+1), REF(DIFF,A1+2),REF(DIFF,A1+3),REF(DIFF,A1+4)) AND VARGu AND AA>=2 AND diff<0;
A3:=COUNT(底背离,BARSLAST(DEA>=0));
STICKLINE(底背离,0,HHV(MACD,500),6,0),colorred;
DRAWLINE(A1=0, MIN(REF(DIFF,A1+1), REF(DIFF,A1+2),REF(DIFF,A1+3),REF(DIFF,A1+4)),底背离,LLV(DIFF,3),0),colorred;
//DRAWTEXT(底背离,0.12,' '+a3+'次背离'),COLORFF00FF;
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;
建仓:IF(底背离,A3*HHV(MACD,5000),0),coloryellow;
[url=http://www.70822.com/soft/sort013/sort036/down-98289.html]MACD底背离买点[/url]