当前位置:分析家公式网 → 股票公式 → 同花顺公式 → 一键转帖:黄AMACD面积背离
软件名称:[B]黄AMACD面积背离[/B]
软件类型:国产软件
运行环境:Win9X/Win2000/WinXP/Win2003/Win7/
软件语言:简体中文
授权方式:免费版
软件大小:6.00 KB
官方主页:Home Page
更新时间:2019-03-13 00:13:20
软件简介:
DIFF : EMA(CLOSE,SHORT) - EMA(CLOSE,LONG);
DEA : EMA(DIFF,M);
MACD := 2*(DIFF-DEA);
JC := DEA-DIFF;
Zero : 0;
DRAWBAND(DIFF,RGB(200,50,55),DEA,RGB(50,100,10));
八十日漂红: COUNT(MACD>0,80),NODRAW;
连红: BARSLASTCOUNT(MACD>0),NODRAW;
连增:BARSLASTCOUNT(MACD>REF(MACD,1)),colorred,NODRAW;
连减:BARSLASTCOUNT(MACD<REF(MACD,1)),colorgreen,NODRAW;
绿柱面积:=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(底背驰,0.3,'底积背'),COLOR00FFFF;
//STICKLINE(底背驰,0,0.3,4,0),COLOR0000FF;
STICKLINE(底背驰,0,-0.3,4,0),coloryellow;
DRAWTEXT(底背驰,-0.3,'底积背'),coloryellow;
DRAWICON(底背驰,0,1),coloryellow;
遵:IF(DIFF>=DEA,DIFF,DRAWNULL),colorred;
守:IF(DEA>=DIFF,DEA,DRAWNULL),COLORFF9900;
纪:IF(DIFF>=DEA,DEA,DRAWNULL),COLOR00FFFF;
律:IF(DEA>=DIFF,DIFF,DRAWNULL),COLOR00FF00;
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,2),COLOR00FF00;
//www.70822.com
//STICKLINE(顶背驰,0,-0.3,4,0),COLOR00FF00;
//DRAWTEXT(顶背驰,-0.3,'顶积背'),coloryellow;
DRAWTEXT(顶背驰,0.3,'顶积背'),COLOR00FFFF;
STICKLINE(顶背驰,0,0.3,4,0),coloryellow;
STICKLINE(MACD>0 AND MACD>=REF(MACD,1),0,MACD,2,0),colorred;
STICKLINE(MACD>0 AND MACD<REF(MACD,1),0,MACD,2,0),coloryellow;
//STICKLINE(MACD<0 AND MACD>=REF(MACD,1),0,MACD,2,0),color007130;
STICKLINE(MACD<0 AND MACD>=REF(MACD,1),0,MACD,2,0),colorwhite;
STICKLINE(MACD<0 AND MACD<REF(MACD,1),0,MACD,2,0),colorgreen;
Y22:=IF((绿柱面积<0 AND ABS(绿柱面积)<ABS(前次绿柱面积)),1,0);
XG1:=DRAWTEXT(底背驰,-0.3,'底积背');
XG2:=IF (CROSS(DIFF,DEA),REF(Y22,1),0);
STICKLINE(XG2,0,-0.3,3,0),coloryellow;
DRAWTEXT(XG2,-0.2,'买'),colorred;
红面积:SUM(MACD,BARSLAST(MACD<0))*(MACD>0),COLOR0000FF,NODRAW;
绿面积:SUM(MACD,BARSLAST(MACD>0))*(MACD<0),COLORFFFF00,NODRAW;
AA:=ROUND(REF(绿面积,1)*100);
BB:=ROUND(REF(红面积,1)*100);
//DRAWNUMBER(CROSS(0,MACD),HHV(REF(MACD,1),5)+0.03,ABS(BB)),colormagenta;
DRAWNUMBER(CROSS(MACD,0),LLV(REF(MACD,1),5)-0.03,ABS(AA)),colorgreen;
[url=http://www.70822.com/soft/sort013/sort036/down-134542.html]黄AMACD面积背离[/url]