分析家公式网,提供指标公式,股票软件 用户登录  |  用户 注册

软件名称:[B]MACD顶背离+金叉死叉[/B]
软件类型:国产软件
运行环境:Win9X/Win2000/WinXP/Win2003/Win7/
软件语言:简体中文
授权方式:免费版
软件大小:7.00 KB
官方主页:Home Page
更新时间:2018-02-09 03:15:53
软件简介:

DIFF:EMA(C,SHORT)-EMA(C,LONG),colorwhite;

DEA:EMA(DIFF,8),COLOrffaa00;

//www.70822.com

ZERO:0,colorred;

MACD:=2*(DIFF-DEA);

DIFF上穿0轴:CROSS(DIFF,0),nodraw;

STICKLINE(MACD>=0,MACD,0,2,1),COLOR0000FF;

STICKLINE(MACD<0,MACD,0,2,1),colorgreen;

STICKLINE(MACD<REF(MACD,1)AND MACD>0,0,MACD,3,0 ),COLOR00aaff;

STICKLINE(DIFF上穿0轴,MACD,0,3,2),coloryellow;//COLORF00FF0;

DRAWICON(DIFF上穿0轴,0,'BUY') ;

DRAWTEXT(DIFF上穿0轴,0,'-进'),colorcyan;

X1:=IF(diff<0,diff,0),COLOR0000FF,LINETHICK2;

X2:=IF(diff<0,0,diff),colormagenta,LINETHICK1;

X3:=IF(diff<dea,diff,dea),COLOR00ff00,linethick1;

X4:=IF(diff>dea,dea,dea),linethick1,COLORffbb11;

MACD金叉:=CROSS(DIFF,DEA);

低位金叉:CROSS(DIFF,DEA) AND DIFF<-0.01,nodraw;

非低位金叉:MACD金叉 AND 低位金叉<1,nodraw;

STICKLINE(低位金叉,DEA*0.86,DEA*0.66,6,0),coloryellow;

DRAWTEXT(低位金叉,dea-1,' 低位金叉'),coloryellow;

//{www.70822.com 股旁网_同花顺股票指标公式}

JCCOUNT:=COUNT(CROSS(DIFF,DEA),BARSLAST(DEA>=0));

二次金叉:=CROSS(DIFF,DEA) AND DEA<0 AND COUNT(JCCOUNT=2,21)=1;

STICKLINE(二次金叉,DEA*1.3,DEA*0.76,6,0),ColorFF00FF;

DRAWICON(二次金叉,dea*1.1,'BUY') ;

DRAWTEXT(二次金叉,DEA*0.96,' 二次金叉'),ColorFF00FF;

A1:=BARSLAST(REF(CROSS(DIFF,DEA),1));

底背离:=REF(CLOSE,A1+1)>CLOSE AND DIFF>REF(DIFF,A1+1) AND CROSS(DIFF,DEA);

STICKLINE(底背离,DEA*1.09,DEA*0.86,6,0),Color00FF00;

DRAWLINE(A1=0,DEA,底背离,DEA,0),colorred,linethick1;

DRAWTEXT(底背离,DEA*2,' 底背离'),Color6600FF;

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,linethick1;

DRAWTEXT(顶背离,DEA*1.2,' 顶背离'),Color00FF00;

// 0轴上方强金叉

AA:=CROSS(DIFF,DEA) AND DEA>0;

T:=BARSLAST(CROSS(DEA,DIFF));

CC:=REF(BARSLAST(CROSS(DIFF,0)),T+1)<DAYS AND COUNT(DIFF>=DEA,T)=1;

MACD强金叉:AA AND CC,nodraw;

DRAWTEXT(MACD强金叉,DEA-1.2,' 强金叉'),coloryellow;

DRAWICON(MACD强金叉,dea*1.1,'BUY') ;

MACD死叉:=CROSS(DEA,DIFF);

DRAWICON(MACD死叉,dea*1.1,'SELL') ;

MACD强金叉前溯:=COUNT(MACD强金叉,PASTDAYS);

MACD强金叉期:MACD强金叉前溯+MACD强金叉,nodraw;

MACD金叉期:COUNT(MACD金叉,PASTDAYS),nodraw;

MACD死叉期:COUNT(MACD死叉,PASTDAYS),nodraw;

MACD低位金叉前溯:=COUNT(低位金叉,PASTDAYS),nodraw;

MACD低位金叉期:MACD低位金叉期+低位金叉,nodraw;

MACD非低位金叉前溯:=COUNT(非低位金叉,PASTDAYS),nodraw;

MACD非低位金叉期:MACD非低位金叉前溯+非低位金叉,nodraw;

DRAWTEXT(MACD金叉 AND (1-低位金叉) AND (1-二次金叉) AND (1-MACD强金叉),dea*1.1,' 金叉'),colormagenta;

 

[url=http://www.70822.com/soft/sort013/sort036/down-121303.html]MACD顶背离+金叉死叉[/url]

关于本站 | 网站帮助 | 广告合作 | 声明 | 友情连接 | 网站地图 |
分析家公式网声明:本站所有股票公式软件资料均网上公开收集,如侵权请联系删帖。站内所有广告,均与本站无关!
Copyright © 2003-2024 70822.Com. All Rights Reserved .
页面执行时间:62.01172 毫秒