macd王中王自用
全面挖掘macd的功能,可视化立体化,全息集大成指标。最好的顶背离与底背离的整合。
diff :ema(close,12) - ema(close,26);
dea :ema(diff,9);
macd :2*(diff-dea);
zero :0;
落差:=diff-ref(diff,1);
落差2:=macd-ref(macd,1);
斜率:=落差/ref(落差,1);
斜率2:=落差2/ref(落差2,1);
stickline(macd>0 and macd>=ref(macd,1),0,macd,8,0),color0000ff;
stickline(macd>0 and macd<ref(macd,1),0,macd,8,0),colorff0000;
stickline(macd<0 and macd>=ref(macd,1),0,macd,8,0),colorff00ff;
stickline(macd<0 and macd<ref(macd,1),0,macd,8,0),color00ff00;
//好公式网www.goodgongshi.com
gj:=max(c,o);
l4:=llv(gj,4);
gt:=dea>ref(dea,1) and ref(dea,1)<ref(dea,2);
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*1.09,'底背离'),color6600ff;
stickline(底背离,dea*1.09,dea*0.86,8,0),coloryellow;
h4:=hhv(gj,4);
gt2:=dea<ref(dea,1) and ref(dea,1)>ref(dea,2);
a2:=barslast(ref(gt2,1));
顶背离:= ref(h4,a2+1)<h4 and diff<ref(diff,a2+1) and gt2;
drawline(a2=0 ,dea,顶背离,ref(dea,gt2),0),colorgreen,linethick1;
drawtext(顶背离,ref(dea,gt2)*1.07,'顶背离'),colorgreen;
a0:=diff<0 and dea<0;
a11:=a0>ref(a0,1);
a3:=barslast(a11);
a4:=count(dea>0 and diff >0,a3)=0;
a5:=cross(diff ,dea);
a6:=barslast(a5);
a7:=ref(a6,a6+1)+a6;
a8:=(diff+dea)/2;
a9:=(high+low)/2;
//好公式网www.goodgongshi.com
a10:=a5 and a7<a3 and a4 and a8>ref(a8,a7) and a9<ref(a9,a7) and macd>0;
drawtext(a10,dea*1.05,'★'),coloryellow;
drawicon(cross(dea,diff) and dea>0,dea,2);
低位金叉:=cross(diff,dea) and diff<-0.1;
stickline(低位金叉,dea*0.86,dea*0.66,6,0),coloryellow;
drawtext(低位金叉,dea*0.86,' 低位金叉'),coloryellow;
突破零轴:=cross(diff,0) and dea <diff;
stickline(突破零轴,diff*0.86,diff*0.66,6,0),coloryellow;
drawtext(突破零轴,dea*0.86,' 突破零轴'),coloryellow;
跌破零轴:=cross(0,diff) and dea >diff;
stickline(跌破零轴,diff*0.86,diff*0.66,6,0),colorred;
drawtext(跌破零轴,dea*2.86,' 跌破零轴'),colorred;
jccount:=count(cross(diff,dea),barslast(dea>=0));
二次金叉:=cross(diff,dea) and dea<0 and count(jccount=2,21)=1;
stickline(二次金叉,dea*0.96,dea*0.76,6,0),colorff00ff;
drawicon(二次金叉,dea*1.1,'buy') ;
drawtext(二次金叉,dea*0.96,' 二次金叉'),colorff00ff;
drawicon(macd<0 and (macd>ref(macd,1)) or (macd>ref(macd,1) and ref(macd,1)<ref(macd,2) and diff>dea),macd*0.66,5);
drawicon(macd>ref(macd,1) and diff<dea and 斜率>0 and 斜率<0.7,diff*0.75,24);
///以下是跑路的信号;
drawicon(macd<ref(macd,1) and ref(macd,1)>ref(macd,2) and ref(macd,2)>ref(macd,3) and diff>dea and macd>0,macd,15);
drawicon(diff>dea and diff>ref(diff,1) and ref(diff,1)>ref(diff,2) and 斜率>0 and 斜率<0.7,diff,8);
drawicon(macd>0 and macd>ref(macd,1) and ref(macd,1)>ref(macd,2) and 斜率2>0 and 斜率2<0.4,macd,15);
上一指标公式:资金情况指标公式下载 同花顺资金
下一指标公式:运达密令指标公式下载 同花顺密令
☉ 好公式网发布的指标公式主要用于软件技术面分析,仅供参考,勿用于实际操作,据此操作风险自负!
☉ 解压密码:www.goodgongshi.com 就是好公式网域名,希望大家看清楚,切勿输错。
☉ tnc和tni格式指标公式,仅可以用通达信软件引入使用,例如可以用通达信软件引入使用指标公式;
☉ tne格式指标公式,仅可以用通达信软件公式编辑器5.0版导入,高版本兼容低版本;
☉ fnc格式指标公式,可以用大智慧软件新一代高速行情分析系统股票软件使用,少部分可以用分析家软件引入使用;
☉ alg格式指标公式,仅仅可以用飞狐交易师软件引入使用;exp格式指标公式,仅可以用大智慧经典版软件引入使用;
☉ hxf格式指标公式,仅可以用同花顺软件引入使用。
☉ 如果您发现下载软件链接错误,请联系管理员报告错误。
☉ 好公式网欢迎各位网友帮忙宣传转发本站网址,有您的支持,我们会做得更好!
☉ 本文MACD王中王自用指标公式下载 同花顺王中王MACD仅供学习研究。