difif1:=(ema(close,12) - ema(close,26))*100/ema(close,26);
deaea1:=ema(difif1,9);
macd1:=2*(difif1-deaea1),stick;
macd2:=ema(macd1,3);
stickline(macd1>macd2 and macd1>0,0,macd1,3,0),colorred;
stickline(macd1>macd2 and macd1<0,0,macd1,3,0),colorgreen;
stickline(macd1<macd2,0,macd1,3,0),colorcbcbc0;
stickline(macd1>=0 or macd1<=0,0,0,50,1),colorwhite;
difif1,color33ff33,linethick2;
deaea1,coloryellow,linethick2;
macd:macd1,nodraw,colormagenta;
强:if(difif1>=deaea1,difif1,drawnull),colorred,linethick2;
弱:=if(deaea1>=difif1,deaea1,drawnull),colorff9900,linethick2;
drawicon(cross(difif1,deaea1),difif1+0.1,1);
drawicon(cross(deaea1,difif1),0.4,2);
a1:=barslast(ref(cross("macd.dif","macd.dea"),1));
b1:=ref(c,a1+1)>c and ref("macd.dif",a1+1)<"macd.dif" and cross("macd.dif","macd.dea");
drawtext(b1>0,-0.8,'macd底背'),colorff00ff;
a2:=barslast(ref(cross("kdj.k","kdj.d"),1));
b2:=ref(c,a2+1)>c and ref("kdj.k",a2+1)<"kdj.k" and cross("kdj.k","kdj.d");
drawtext(b2,-0.6,'kdj底离'),coloryellow;
a3:=barslast(ref(cross("rsi.rsi1","rsi.rsi2"),1));
b3:=ref(c,a3+1)>c and ref("rsi.rsi1",a3+1)<"rsi.rsi1" and cross("rsi.rsi1","rsi.rsi2");
drawtext(b3>0,-0.3,'rsi底离'),colorcyan;
c1:=barslast(ref(cross("macd.dea","macd.dif"),1));
d1:=ref(c,c1+1)<c and ref("macd.dif",c1+1)>"macd.dif" and cross("macd.dea","macd.dif");
drawtext(d1>0,0.4,'macd顶离'),colorblue;
c2:=barslast(ref(cross("kdj.d","kdj.k"),1));
d2:=ref(c,c2+1)<c and ref("kdj.k",c2+1)>"kdj.k" and cross("kdj.d","kdj.k");
drawtext(d2>0,0.6,'kdj顶离'),colorligray;
c3:=barslast(ref(cross("rsi.rsi2","rsi.rsi1"),1));
d3:=ref(c,c3+1)<c and ref("rsi.rsi1",c3+1)>"rsi.rsi1" and cross("rsi.rsi2","rsi.rsi1");
drawtext(d3>0,0.8,'rsi顶离'),colorgreen;
dd:=c=hhv(c,180);
ee:=deaea1< ref(deaea1,1) and ref(deaea1< ref(deaea1,1),1)=1;
cc:=c> ref(c,1) and ref(c> ref(c,1),1)=1;
上升背离:(cc and ee)*deaea1,color00ffff;
顶背离:(dd and ee and deaea1< hhv(deaea1,180))*deaea1,stick,linethick3,colorgreen;
ff:=c=llv(c,180);
gg:= deaea1> ref(deaea1,1) and ref(deaea1> ref(deaea1,1),1)=1;
ll:=c< ref(c,1) and ref(c< ref(c,1),1)=1;
下降背离:(ll and gg)*deaea1,colormagenta;
底背离:(ff and gg and deaea1> llv(deaea1,180))*deaea1,stick,linethick3,colorred;
stickline(macd>0 and macd>=ref(macd,1),0,macd,2,0),color0000ff;
stickline(macd>0 and macd<ref(macd,1),0,macd,2,0),colorffff00;
stickline(macd<0 and macd>=ref(macd,1),0,macd,2,0),colorff00ff;
stickline(macd<0 and macd<ref(macd,1),0,macd,2,0),color00ff00;
a1:=100*(ema(c,12)-ema(c,26))/ema(c,26);
a2:=ema(a1,9);
macd:=(a1-a2)*2;
xg:macd>0 and macd>ref(macd,1);
"macd.macd">0;
stickline((macd2>=0),0,macd2,2,0),colorff00ff;
stickline(((macd2>=0) and (macd2 < ref(macd2,1))),0,macd2,2,1),colorgreen;
stickline((macd2<0),0,macd2,2,0),colorffff00;
stickline(((macd2<0) and (macd2 > ref(macd2,1))),0,macd2,2,0),coloryellow;
defut:=barslast(cross(macd2,0));
defdt:=barslast(cross(0,macd2));
deful:=if((macd2 >= 0),hhv(macd2,(defut + 1)),ref(hhv(macd2,(defut + 1)),(defdt + 1)));
defdl:=if((macd2 < 0),llv(macd2,(defdt + 1)),ref(llv(macd2,(defdt + 1)),(defut + 1)));
defu2l:=ref(deful,(defut + 1));
defd2l:=ref(defdl,(defdt + 1));
stickline(底背离,0,0.5,4,0),colorwhite;
dif2:ema(sum(macd2,2),3),linethick2,coloryellow;
入1:if(dif2>ref(dif2,1),dif2,drawnull),colorred,linethick2;
入2:if(dif2<ref(dif2,1),dif2,drawnull),colorgreen,linethick2;
dea2:ma(dif2,5),colorcyan;
dif3:=ema(close,12)-ema(close,26);
dea3:=ema(dif3,9);
macd3 := 2*(dif3-dea3);
rsv:=(close-llv(low,9))/(hhv(high,9)-llv(low,9))*100;
k:=sma(rsv,3,1);
d:=sma(k,3,1);
j:=3*k-2*d;
止跌:macd3>ref(macd3,1) and ref(macd3,2)>=ref(macd3,1) and j<50 and c>ref(c,1) and c>o and j>ref(j,1);
ma1:=ma(c,5);
ma2:=ma(c,10);
xg:cross(ma1,ma2);
上一指标公式:精准预测股价指标公式下载 同花顺股价预测
下一指标公式:K线黄金分割指标公式下载 同花顺黄金分割
☉ 好公式网发布的指标公式主要用于软件技术面分析,仅供参考,勿用于实际操作,据此操作风险自负!
☉ 解压密码:www.goodgongshi.com 就是好公式网域名,希望大家看清楚,切勿输错。
☉ tnc和tni格式指标公式,仅可以用通达信软件引入使用,例如可以用通达信软件引入使用指标公式;
☉ tne格式指标公式,仅可以用通达信软件公式编辑器5.0版导入,高版本兼容低版本;
☉ fnc格式指标公式,可以用大智慧软件新一代高速行情分析系统股票软件使用,少部分可以用分析家软件引入使用;
☉ alg格式指标公式,仅仅可以用飞狐交易师软件引入使用;exp格式指标公式,仅可以用大智慧经典版软件引入使用;
☉ hxf格式指标公式,仅可以用同花顺软件引入使用。
☉ 如果您发现下载软件链接错误,请联系管理员报告错误。
☉ 好公式网欢迎各位网友帮忙宣传转发本站网址,有您的支持,我们会做得更好!
☉ 本文MACD精确指标公式下载 同花顺指标MACD仅供学习研究。