当前位置:分析家公式网 → 股票公式 → 同花顺公式 → 一键转帖:MACD背离面积,升级版MACD,添加背离和面积
软件名称:[B]MACD背离面积,升级版MACD,添加背离和面积[/B]
软件类型:国产软件
运行环境:Win10/Win9X/Win8/Win2000/WinXP/Win2003/Win7/
软件语言:简体中文
授权方式:免费版
软件大小:0 Bytes
官方主页:Home Page
更新时间:2021-02-01 00:10:37
软件简介:
升级版MACD,添加背离和面积
可以看到macd的面积,对与缠论的学习很有帮助,也有背离等提示
DIFF:EMA(CLOSE,12)-EMA(CLOSE,26);
DEA:EMA(DIFF,9);
MACD:(DIFF-DEA)*2,COLORSTICK;
//MACDHS:=IF(MACD>0 AND MACD>REF(MACD,1),MACD,0);
//MACDHX:=IF(MACD>0 AND MACD<REF(MACD,1),MACD,0);
//MACDLX:=IF(MACD<0 AND MACD<REF(MACD,1),MACD,0);
//MACDLS:=IF(MACD<0 AND MACD>REF(MACD,1),MACD,0);
sr:=IF(MACD>0,SUM(MACD,BARSLAST(MACD<0)),0),PRECIS2,COLOR0000FF;
sg:=IF(MACD<0,SUM(MACD,BARSLAST(MACD>0)),0),PRECIS2,COLOR006000;
DRAWTEXT(REF(MACD,1)>0 AND MACD<=0 ,HHV(MACD,4),TOSTRING(REF(sr,1),2)),colorred;
DRAWTEXT(REF(MACD,1)<0 AND MACD>=0 ,LLV(MACD,4),TOSTRING(REF(ABS(sg),1),2)),colorgreen;
DRAWTEXT(ISNULL(REFX(&CLOSE,1))=1 AND MACD<0,LLV(MACD,4),TOSTRING(ABS(sg),2)),colorgreen;
DRAWTEXT(ISNULL(REFX(&CLOSE,1))=1 AND MACD>0,HHV(MACD,4),TOSTRING(ABS(sr),2)),colorred;
//低位金叉:=CROSS(DIFF,DEA) AND DIFF<-0.1;
//DRAWTEXT(低位金叉,ABS(dea),'低位金叉'),colorwhite;
//JCCOUNT:=COUNT(CROSS(DIFF,DEA),BARSLAST(DEA>=0));
//二次金叉:=CROSS(DIFF,DEA) AND DEA<0 AND COUNT(JCCOUNT=2,21)=1;
//STICKLINE(二次金叉,0,0.06,6,0),COLORFF00FF;
//DRAWICON(二次金叉,DEA*0.9,1) ;
//DRAWTEXT(二次金叉,ABS(dea)*1.3,' 二次金叉'),coloryellow;
A1:=BARSLAST(CROSS(diff,dea));
A2:=BARSLAST(CROSS(dea,diff));
a3:=BARSLAST(CROSS(diff,dea),1);
a4:=BARSLAST(CROSS(dea,diff),1);
底背离:= LLV(CLOSE,a2)<REF(LLV(CLOSE,a4-a3),a3) AND LLV(diff,a2)>REF(LLV(diff,a4-a3),a3) AND CROSS(diff,dea);
DRAWLINE(REF(CROSS(diff,dea),1),DEA,底背离,DEA,0),colorliblue,LINETHICK2;
DRAWTEXT(底背离,DEA,'底背离'),colorliblue;
顶背离:= HHV(CLOSE,a1)>REF(HHV(CLOSE,a3-a4),a4) AND HHV(diff,a1)<REF(HHV(diff,a3-a4),a4) AND CROSS(dea,diff);
DRAWLINE(REF(CROSS(dea,diff),1),DEA,顶背离,DEA,0),colorgray,LINETHICK2;
DRAWTEXT(顶背离,DEA,'顶背离'),colorgray;
//DRAWTEXT(低位金叉 AND 二次金叉 AND 底背离,ABS(dea)*1.5,'三全项'),colorred,LINETHICK2;
[url=http://www.70822.com/soft/sort013/sort036/down-153847.html]MACD背离面积,升级版MACD,添加背离和面积[/url]