软件名称:[B]MACD背离神器[/B]
软件类型:国产软件
运行环境:Win9X/Win2000/WinXP/Win2003/Win7/
软件语言:简体中文
授权方式:免费版
软件大小:4.00 KB
官方主页:Home Page
更新时间:2016-09-01 00:31:57
软件简介:
狙击手老师的MACD顶底背离神器,配合K线精准判断趋势
SJ:=DATE<1170810;
DIFF : EMA(CLOSE,12) - EMA(CLOSE,26);
DEA : EMA(DIFF,9);
MACD : 2*(DIFF-DEA), COLORSTICK;
JC := DEA-DIFF;
绿柱面积:=IF(MACD<0,SUM(MACD,BARSLAST(JC<0)),0);
红柱面积:=IF(MACD>0,SUM(MACD,BARSLAST(JC>0)),0);
本次最低价:=LLV(L,BARSLAST(JC<0));
本次最高价:=HHV(H,BARSLAST(JC>0));
X1:=IF (MACD<0,BARSLAST(CROSS(DIFF,DEA)),0);
前次绿柱面积:=REF(绿柱面积,X1+1);
前次最低价:=REF(本次最低价,X1+1);
Y1:=IF((绿柱面积<0 AND ABS(绿柱面积)<ABS(前次绿柱面积)
AND 本次最低价<前次最低价 ),1,0);
RS1:= MACD<0 AND REF(MACD,1)<0 AND C<前次最低价
AND ABS(绿柱面积)<ABS(前次绿柱面积) AND ABS(MACD)<ABS(REF(MACD,1));
底背驰:= IF (CROSS(DIFF,DEA),REF(Y1,1),0);
DRAWTEXT(底背驰,DIFF,'底背'),COLOR00FFFF;
STICKLINE(底背驰,0,-0.001,4,0),COLOR0000FF;
DRAWICON(底背驰,0,23),coloryellow;
X2:=IF (MACD>0,BARSLAST(CROSS(DEA,DIFF)),0);
前次红柱面积:=REF(红柱面积,X2+1);
前次最高价:=REF(本次最高价,X2+1);
Y2:=IF((红柱面积>0 AND 红柱面积<前次红柱面积 AND 本次最高价>前次最高价 ),1,0);
RS2:= MACD>0 AND REF(MACD,1)>0 AND C>前次最高价 AND ABS(红柱面积)<ABS(前次红柱面积) AND ABS(MACD)<ABS(REF(MACD,1));
顶背驰:= IF (CROSS(DEA,DIFF),REF(Y2,1),0);
DRAWICON(顶背驰,0,19),COLOR00FF00;
STICKLINE(顶背驰,0,0.001,4,0),COLOR00FF00;
DRAWTEXT(顶背驰,DIFF,'顶背'),colorred;
买:IF(底背驰,0.1,0),COLOR0000FF;
卖:IF(顶背驰,0.1,0),COLOR00FF00;
AA:=(MACD>0 AND MACD>REF(MACD,1));
BB:=(MACD>0 AND MACD<REF(MACD,1));
AB:=(MACD<0 AND MACD>REF(MACD,1));
BC:=(MACD<0 AND MACD<REF(MACD,1));
STICKLINE(AA,0,MACD,4,0),colorred;
STICKLINE(AB,0,MACD,4,0),colorcyan;
STICKLINE(BB,0,MACD,4,0),colorred;
STICKLINE(BC,0,MACD,4,0),colorcyan;
[url=http://www.70822.com/soft/sort013/sort036/down-102162.html]MACD背离神器[/url]