macd风云
input: n(12,1,100),n1(26,1,100),m(9,1,100);
drawtextabs(0,0,'macd风云'),color0000ff;
diff:ema(close,12)-ema(close,26);
dea:ema(diff,9);
macd:2*(diff-dea),linethick0;
连续走强:last(macd>ref(macd,1) and macd>0),linethick0,color0030ff,precis0;{天}
强势回调:last(macd<ref(macd,1) and macd>0),linethick0,color0030ff,precis0;{天}
连续走弱:last(macd<ref(macd,1) and macd<0),linethick0,color00ff30,precis0;{天};
连续反弹:last(macd>ref(macd,1) and macd<0),linethick0,color00ff30,precis0;{天};
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),colorblue,linethick1;
低位金叉:=cross(diff,dea) and diff<-0.1;
stickline(低位金叉,0,-0.10,6,0),coloryellow;
drawtext(低位金叉,-0.05,' ★-低位金叉'),coloryellow;
jccount:=count(cross(diff,dea),barslast(dea>=0));
二次金叉:=cross(diff,dea) and dea<0 and count(jccount=2,21)=1;
stickline(二次金叉,0,-0.10,6,0),colorff00ff;
drawicon(二次金叉,dea*1.04,13) ;
drawtext(二次金叉,-0.08,' ★-二次金叉'),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),colorred;
drawtext(底背离,dea,' ★-底背离'),colorred;
a2:=barslast(ref(cross(dea,diff),1));
顶背离:=ref(close,a2+1)<close and ref(diff,a2+1)>diff and cross(dea,diff);
drawtext(顶背离,dea,' ★-顶背离'),colorgreen;
a1:=diff<0 and dea<0;
a2:=a1>ref(a1,1);
a3:=barslast(a2);
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;
a10:=a5 and a7<a3 and a4 and a8>ref(a8,a7) and a9<ref(a9,a7) and macd>0;
drawtext(a10,diff*0.95,'★-金叉介入'),coloryellow;
上一指标公式:1年12倍公式(副图 源码,附图)公式下载 大智慧1年12倍
下一指标公式:涨停回马枪。公式下载 大智慧回马枪源码
☉ 好公式网发布的指标公式主要用于软件技术面分析,仅供参考,勿用于实际操作,据此操作风险自负!
☉ 解压密码:www.goodgongshi.com 就是好公式网域名,希望大家看清楚,切勿输错。
☉ tnc和tni格式指标公式,仅可以用通达信软件引入使用,例如可以用通达信软件引入使用指标公式;
☉ tne格式指标公式,仅可以用通达信软件公式编辑器5.0版导入,高版本兼容低版本;
☉ fnc格式指标公式,可以用大智慧软件新一代高速行情分析系统股票软件使用,少部分可以用分析家软件引入使用;
☉ alg格式指标公式,仅仅可以用飞狐交易师软件引入使用;exp格式指标公式,仅可以用大智慧经典版软件引入使用;
☉ hxf格式指标公式,仅可以用同花顺软件引入使用。
☉ 如果您发现下载软件链接错误,请联系管理员报告错误。
☉ 好公式网欢迎各位网友帮忙宣传转发本站网址,有您的支持,我们会做得更好!
☉ 本文macd风云(副图指标)公式下载 大智慧风云源码仅供学习研究。