月下横笛不同级别macd同图指标
月下横笛不同级别macd同图
{n:1,50,5(倍数可调)}
diff2:=ema(close,12) - ema(close,26);
dea2:=ema(diff2,9);
diff5:=ema(close,12*n) - ema(close,26*n);
dea5:=ema(diff5,9*n);
macd5:=2*(diff5-dea5);
diff:=ema(close,12) - ema(close,26),colormagenta,linethick1;
dea:=ema(diff,9),color00ffff,linethick1;
macd:=2*(diff-dea);
stickline(macd5>0 and macd5>ref(macd5,1),macd5,0,4,0),colorff6666;
stickline(macd5>0 and macd5<ref(macd5,1),macd5,0,4,0),colorliblue;
stickline(macd5<0 and macd5<ref(macd5,1),macd5,0,4,0),color888888;
stickline(macd5<0 and macd5>ref(macd5,1),macd5,0,4,0),colorligray;
drawband(dea5,rgb(0,0,250),diff5,rgb(0,150,00));
drawband(dea,rgb(250,250,0),diff,rgb(0,180,00));
stickline(macd>0 ,macd,0,0,0),colormagenta;
stickline(macd>0 and macd<ref(macd,1),macd,0,0,1),colorcyan;
stickline(macd<0 and macd<ref(macd,1),macd,0,0,0),colorcyan;
stickline(macd<0 and macd>ref(macd,1),macd,0,0,0),colormagenta;
drawband(dea2,rgb(250,250,250),diff2,rgb(250,0,0));
diff1:=diff,colormagenta,linethick1;
dea1:=dea,coloryellow,linethick1;
a1:=barslast(ref(cross(diff,dea),1));
a22:=barslast(ref(cross(dea,diff),1));
b1:=ref(c,a1+1)>c and ref(diff,a1+1)<diff and cross(diff,dea);
c1:=barslast(ref(cross(dea,diff),1));
d1:=ref(c,c1+1)<c and ref(diff,c1+1)>diff and cross(dea,diff);
底背离:=ref(close,a1+1)>close and diff>ref(diff,a1+1) and cross(diff,dea);
顶背离:=ref(close,a22+1)<close and ref(diff,a22+1)>diff and cross(dea,diff);
{drawtext(顶背离,dea*1.05,' 顶离'),colorwhite;
drawtext(底背离,dea*0.95,' 底背'),colorred;}
a51:=barslast(ref(cross(diff5,dea5),1));
a522:=barslast(ref(cross(dea5,diff5),1));
b51:=ref(c,a51+1)>c and ref(diff5,a51+1)<diff5 and cross(diff5,dea5);
c51:=barslast(ref(cross(dea,diff),1));
d51:=ref(c,c51+1)<c and ref(diff5,c51+1)>diff5 and cross(dea5,diff5);
底离:=ref(close,a51+1)>close and diff>ref(diff,a51+1) and cross(diff,dea);
顶离:=ref(close,a522+1)<close and ref(diff5,a522+1)>diff5 and cross(dea5,diff5);
drawtext(底离,dea5*1.02,' 5底背'),colorff00ff;
drawtext(顶离,dea5*0.98,' 5顶离'),color00ff00;
jccount:=count(cross(diff1,dea1),barslast(dea1>=0));
二次金叉:=cross(diff1,dea1) and dea1<0 and count(jccount=2,55)=1;
低位金叉:=cross(diff1,dea1) and diff1<-0.1;
drawtext(低位金叉 and 二次金叉 and 底背离,+0.04,'全3项'),color00ffff,linethick1;
jccount1:=count(cross(diff5,dea5),barslast(dea5>=0));
二次金叉5:=cross(diff5,dea5) and dea5<0 and count(jccount1=2,55)=1;
低位金叉5:=cross(diff5,dea5) and diff5<-0.1;
drawtext(低位金叉5 and 二次金叉5 and 底背离,+0.02,'5分钟三项'),color00ffff,linethick1;
diff日:ema(close,12/n) - ema(close,26/n),coloryellow,linethick1;
dea日:ema(diff日,9/n),coloryellow,linethick1;
if(dea日>=ref(dea日,1),dea日,drawnull),colorred,linethick2;
if(dea日>=ref(dea日,1),dea日,drawnull)pointdot,color3366ff,linethick4;
r1a:=低位金叉5 and 二次金叉5 and 底离;
drawicon(r1a,dea5,25);
r1b:= 顶离 and dea5>0;
drawicon(r1b,dea5,24);
r2a:= 底背离;
drawicon(r2a,diff,1);
r2b:= 顶背离 and dea>0;
drawicon(r2b,diff,2);
上一指标公式:在穿头破脚后阴线买入指标下载
下一指标公式:黑马启爆选股下载
☉ 好公式网发布的指标公式主要用于软件技术面分析,仅供参考,勿用于实际操作,据此操作风险自负!
☉ 解压密码:www.goodgongshi.com 就是好公式网域名,希望大家看清楚,切勿输错。
☉ tnc和tni格式指标公式,仅可以用通达信软件引入使用,例如可以用通达信软件引入使用指标公式;
☉ tne格式指标公式,仅可以用通达信软件公式编辑器5.0版导入,高版本兼容低版本;
☉ fnc格式指标公式,可以用大智慧软件新一代高速行情分析系统股票软件使用,少部分可以用分析家软件引入使用;
☉ alg格式指标公式,仅仅可以用飞狐交易师软件引入使用;exp格式指标公式,仅可以用大智慧经典版软件引入使用;
☉ hxf格式指标公式,仅可以用同花顺软件引入使用。
☉ 如果您发现下载软件链接错误,请联系管理员报告错误。
☉ 好公式网欢迎各位网友帮忙宣传转发本站网址,有您的支持,我们会做得更好!
☉ 本文月下横笛不同级别MACD同图指标下载仅供学习研究。