diff:ema(close,12)-ema(close,27);
dea:ema(diff,9);
macd:=2*(diff-dea);
stickline(macd>=0,macd,0,4,1),colorf00ff0;
stickline(macd<0,macd,0,4,1),colorwhite;
stickline(macd<ref(macd,1)and macd>0,0,macd,4,0 ),color00aaff;
stickline(macd<ref(macd,1)and macd>0,0,macd,3.3,0 ),color00bbff;
stickline(macd<ref(macd,1)and macd>0,0,macd,2.2,0 ),color00ccff;
stickline(macd<ref(macd,1)and macd>0,0,macd,1.65,0 ),color00ddff;
stickline(macd<ref(macd,1)and macd>0,0,macd,1.1,0 ),color00eeff;
stickline(macd<ref(macd,1)and macd>0,0,macd,0.55,0 ),color00ffff;
stickline(macd>=ref(macd,1)and macd>0,0,macd,4 ,0 ),color0000aa;
stickline(macd>=ref(macd,1)and macd>0,0,macd,3.3 ,0 ),color0011bb;
stickline(macd>=ref(macd,1)and macd>0,0,macd,2.2,0 ),color0022cc;
stickline(macd>=ref(macd,1)and macd>0,0,macd,1.65 ,0 ),color0033dd;
stickline(macd>=ref(macd,1)and macd>0,0,macd,1.1 ,0 ),color0044ee;
stickline(macd>=ref(macd,1)and macd>0,0,macd,0.55 ,0 ),color0055ff;
stickline(macd>ref(macd,1)and macd<0,0,macd,4,0 ),coloraa00bb;
stickline(macd>ref(macd,1)and macd<0,0,macd,3.3 ,0 ),colorbb11bb;
stickline(macd>ref(macd,1)and macd<0,0,macd,2.2,0 ),colorcc22bb;
stickline(macd>ref(macd,1)and macd<0,0,macd,1.65,0 ),colordd33bb;
stickline(macd>ref(macd,1)and macd<0,0,macd,1.1,0 ),coloree44bb;
stickline(macd>ref(macd,1)and macd<0,0,macd,0.55 ,0 ),colorff55bb;
stickline(macd<=ref(macd,1)and macd<0,0,macd,4,0 ),colorffaa00;
stickline(macd<=ref(macd,1)and macd<0,0,macd,3.3 ,0 ),colorffbb11;
stickline(macd<=ref(macd,1)and macd<0,0,macd,2.2,0 ),colorffcc22;
stickline(macd<=ref(macd,1)and macd<0,0,macd,1.65 ,0 ),colorffdd33;
stickline(macd<=ref(macd,1)and macd<0,0,macd,1.1 ,0 ),colorffee44;
stickline(macd<=ref(macd,1)and macd<0,0,macd,0.55 ,0 ),colorffff55;
if(diff<0,diff,0),colorred,linethick1;
if(diff<0,0,diff),coloryellow,linethick1;
if(diff<dea,diff,dea),color00ff00,linethick1;
if(diff>dea,dea,dea),colorwhite,linethick1;
低位金叉:=cross(diff,dea) and diff<-0.1;
stickline(低位金叉,0,-0.18,6,0),coloryellow;
drawtext(低位金叉,-0.1, 低位金叉),coloryellow;
jccount:=count(cross(diff,dea),barslast(dea>=0));
二次金叉:=cross(diff,dea) and dea<0 and count(jccount=2,21)=1;
stickline(二次金叉,0,-0.18,6,0),colorff00ff;
drawicon(二次金叉,dea*1.04,13) ;
drawtext(二次金叉,-0.1, 二次金叉),colorff00ff;
a1:=barslast(ref(cross(diff,dea),1));
底背离:=ref(close,a1+1)>close and diff>ref(diff,a1+1) and cross(diff,dea);
stickline(底背离,0,0.13,6,0),color00ff00;
drawline(a1=0,dea,底背离,dea,0),colorred,linethick2;
drawtext(底背离,0.1, 底背离),color00ff00;
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,linethick2;
上一指标公式:三合一主力撤主力进资金进场资金撤走指标详解 通达信资金撤走
下一指标公式:超赢天下副图指标详解 通达信贴图天下
☉ 好公式网发布的指标公式主要用于软件技术面分析,仅供参考,勿用于实际操作,据此操作风险自负!
☉ 解压密码:www.goodgongshi.com 就是好公式网域名,希望大家看清楚,切勿输错。
☉ tnc和tni格式指标公式,仅可以用通达信软件引入使用,例如可以用通达信软件引入使用指标公式;
☉ tne格式指标公式,仅可以用通达信软件公式编辑器5.0版导入,高版本兼容低版本;
☉ fnc格式指标公式,可以用大智慧软件新一代高速行情分析系统股票软件使用,少部分可以用分析家软件引入使用;
☉ alg格式指标公式,仅仅可以用飞狐交易师软件引入使用;exp格式指标公式,仅可以用大智慧经典版软件引入使用;
☉ hxf格式指标公式,仅可以用同花顺软件引入使用。
☉ 如果您发现下载软件链接错误,请联系管理员报告错误。
☉ 好公式网欢迎各位网友帮忙宣传转发本站网址,有您的支持,我们会做得更好!
☉ 本文量势指标详解 通达信仅供学习研究。