{云制macd顶底背离}
var1:=barslast(ref(cross(ema(c,13) - ema(c,34),ema(ema(c,13) - ema(c,34) ,12)),1));
var2:=barslast(ref(cross(ema(ema(c,13) - ema(c,34) ,12),ema(c,13) - ema(c,34) ),1));
var3:=llv(l,var2 + 3);
var4:=hhv(h,var1 +3);
diff:ema(c,13) - ema(c,34) ;
dea:ema(ema(c,13) - ema(c,34),12) ;
macd:1.5 * (ema(c,13) - ema(c,34) - ema(ema(c,13) - ema(c,34) ,12) ),nodraw ;
stickline((macd > 0),0,macd,2.5,0),color0000cc;
stickline((macd > 0),0,macd*0.9,2.5 ,0),color0000ee;
stickline((macd > 0),0,macd*0.8,2.5 ,0),color0011ff;
stickline((macd > 0),0,macd*0.7,2.5 ,0),color0033ff;
stickline((macd > 0),0,macd*0.6,2.5 ,0),color0055ff;
stickline((macd > 0),0,macd*0.5,2.5 ,0),color0077ff;
stickline((macd > 0),0,macd*0.4,2.5 ,0),color0099ff;
stickline((macd > 0),0,macd*0.3,2.5 ,0),color00bbff;
stickline((macd > 0),0,macd*0.2,2.5 ,0),color00ddff;
stickline((macd > 0),0,macd*0.1,2.5 ,0),color00ffff;
stickline((macd < 0),0,macd,2.5 ,0),colorcc0033;
stickline((macd < 0),0,macd*0.9,2.5 ,0),coloree0033;
stickline((macd < 0),0,macd*0.8,2.5 ,0),colorff1133;
stickline((macd < 0),0,macd*0.7,2.5 ,0),colorff3333;
stickline((macd < 0),0,macd*0.6,2.5 ,0),colorff5533;
stickline((macd < 0),0,macd*0.5,2.5 ,0),colorff7733;
stickline((macd < 0),0,macd*0.4,2.5 ,0),colorff9933;
stickline((macd < 0),0,macd*0.3,2.5 ,0),colorffbb33;
stickline((macd < 0),0,macd*0.2,2.5 ,0),colorffdd33;
stickline((macd < 0),0,macd*0.1,2.5 ,0),colorffff33;
if(ema(c,13) - ema(c,34) >= ema(ema(c,13) - ema(c,34) ,12),ema(c,13) - ema(c,34) ,drawnull),colorred;
if((ema(c,13) - ema(c,34) - ema(ema(c,13) - ema(c,34) ,12) ) * 1000/ema(c,15) > 0 and (ema(c,13) - ema(c,34) - ema(ema(c,13) - ema(c,34) ,12) ) * 1000/ema(c,15) < 1.85,ema(c,13) - ema(c,34),drawnull),colorgreen;
if(ema(c,13) - ema(c,34) < ema(ema(c,13) - ema(c,34) ,12) or ema(c,13) - ema(c,34) > ema(ema(c,13) - ema(c,34) ,12) and ref(ema(c,13) - ema(c,34) ,1) < ref(ema(ema(c,13) - ema(c,34) ,12) ,1),ema(c,13) - ema(c,34) ,drawnull),colorff0000;
macd底背离:ref(var3,var1 + 1) > var3 and ref(ema(c,13) - ema(c,34) ,var1 + 1) < ema(c,13) - ema(c,34) and cross(ema(c,13) - ema(c,34),ema(ema(c,13) - ema(c,34) ,12) ),nodraw,colorred;
drawtext(ref(var3,var1 + 1) > var3 and ref(ema(c,13) - ema(c,34) ,var1 + 1) < ema(c,13) - ema(c,34) and cross(ema(c,13) - ema(c,34) ,ema(ema(c,13) - ema(c,34) ,12) ),ema(ema(c,13) - ema(c,34) ,12)-0.04,'底'),color00ffff;
drawtext(ref(var3,var1 + 1) > var3 and ref(ema(c,13) - ema(c,34) ,var1 + 1) < ema(c,13) - ema(c,34) and cross(ema(c,13) - ema(c,34) ,ema(ema(c,13) - ema(c,34) ,12) ),ema(ema(c,13) - ema(c,34) ,12)-0.08,'背'),color00ffff;
macd顶背离:ref(var4,var2 + 1) < var4 and ref(ema(c,13) - ema(c,34) ,var2 + 1) > ema(c,13) - ema(c,34) and cross(ema(ema(c,13) - ema(c,34) ,12) ,ema(c,13) - ema(c,34) ),nodraw,colorgreen;
drawtext(ref(var4,var2 + 1) < var4 and ref(ema(c,13) - ema(c,34) ,var2 + 1) > ema(c,13) - ema(c,34) and cross(ema(ema(c,13) - ema(c,34) ,12) ,ema(c,13) - ema(c,34) ),ema(ema(c,13) - ema(c,34) ,12)+0.08,'顶'),colorffff00;
drawtext(ref(var4,var2 + 1) < var4 and ref(ema(c,13) - ema(c,34) ,var2 + 1) > ema(c,13) - ema(c,34) and cross(ema(ema(c,13) - ema(c,34) ,12) ,ema(c,13) - ema(c,34) ),ema(ema(c,13) - ema(c,34) ,12)+0.04,'背'),colorffff00;
drawicon(cross(ema(c,13) - ema(c,34) >= ema(ema(c,13) - ema(c,34) ,12),0.5),ema(ema(c,13) - ema(c,34) ,12) ,5);
drawicon(cross(ema(ema(c,13) - ema(c,34) ,12) >=ema(c,13) - ema(c,34) ,0.5),ema(ema(c,13) - ema(c,34) ,12) ,6);
上一指标公式:一旦掌握无所遁形 副图 通达信源码无所
下一指标公式:登峰造极 通达信登峰造极
☉ 好公式网发布的指标公式主要用于软件技术面分析,仅供参考,勿用于实际操作,据此操作风险自负!
☉ 解压密码:www.goodgongshi.com 就是好公式网域名,希望大家看清楚,切勿输错。
☉ tnc和tni格式指标公式,仅可以用通达信软件引入使用,例如可以用通达信软件引入使用指标公式;
☉ tne格式指标公式,仅可以用通达信软件公式编辑器5.0版导入,高版本兼容低版本;
☉ fnc格式指标公式,可以用大智慧软件新一代高速行情分析系统股票软件使用,少部分可以用分析家软件引入使用;
☉ alg格式指标公式,仅仅可以用飞狐交易师软件引入使用;exp格式指标公式,仅可以用大智慧经典版软件引入使用;
☉ hxf格式指标公式,仅可以用同花顺软件引入使用。
☉ 如果您发现下载软件链接错误,请联系管理员报告错误。
☉ 好公式网欢迎各位网友帮忙宣传转发本站网址,有您的支持,我们会做得更好!
☉ 本文MACD顶底背离2 通达信底背离仅供学习研究。