short:=12;
long:=26;
mid:=9;
dif1:=ema(close,short)-ema(close,long);
dea1:=ema(dif1,mid);
macd1:=(dif1-dea1)*2;
mh:=macd1;{}
hhm:=const(hhv(macd1,240));
mm:=0.3*hhm;{}
dif:dif1,colorgreen,linethick2;
dea:dea1,colorwhite,linethick2;
dif升:if(dif>=ref(dif,1),dif,drawnull),colormagenta,linethick2;
dea升:if(dea>=ref(dea,1),dea,drawnull),colorlired,linethick2;
macd:macd1,colorstick,coloryellow,linethick2;
金叉:=cross(dif,dea);
轴上金叉:=金叉 and dea>0;
轴上周期:=barslast(cross(0,dea));
轴上金叉数:=count(轴上金叉,轴上周期);
二次金叉:=轴上金叉 and 轴上金叉数=2;
tdxstep288:drawicon(二次金叉,0.8*dea,1);
tdxstep289:drawicon(二次金叉,0.7*dea,1);
a1:=barslast(ref(cross(dif,dea) and dif<0,1));
hc:=hhv(close,6);
b1:=ref(hc,a1+1)>hc and ref(dif,a1+1)<dif and cross(dif,dea) and dif<0 and a1>=12;
k:=kdj.k(9,3,3);
d:=kdj.d(9,3,3);
r1:=rsi.rsi1(6,12,24);
r2:=rsi.rsi2(6,12,24);
a2:=barslast(ref(cross(k,d),1));
b2:=ref(close,a2+1)>close and ref(k,a2+1)<k and cross(k,d) and a2>=9;
a3:=barslast(ref(cross(r1,r2),1));
b3:=ref(close,a3+1)>close and ref(r1,a3+1)<r1 and cross(r1,r2) and a3>=6;
c1:=barslast(ref(cross(dea,dif) and dif>0,1));
lc:=llv(close,6);{}
d1:=ref(lc,c1+1)<lc and ref(dif,c1+1)>dif and cross(dea,dif) and dif>0 and c1>=12;
c2:=barslast(ref(cross(d,k),1));
d2:=ref(close,c2+1)<close and ref(k,c2+1)>k and cross(d,k) and c2>=9;
c3:=barslast(ref(cross(r2,r1),1));
d3:=ref(close,c3+1)<close and ref(r1,c3+1)>r1 and cross(r2,r1) and c3>=6;
m底背:if(b1>0,1,0),nodraw,colorred;
k底背:if(b2>0,1,0),nodraw,colormagenta;
r底背:if(b3>0,1,0),nodraw,coloryellow;
m顶背:if(d1>0,1,0),nodraw,colorred;
k顶背:if(d2>0,1,0),nodraw,colormagenta;
r顶背:if(d3>0,1,0),nodraw,coloryellow;
tdxstep290:stickline(m底背,-mm,0,3,0),colorred;
tdxstep291:stickline(k底背,-mm,0,3,0),colormagenta;
tdxstep292:stickline(r底背,-mm,0,3,0),coloryellow;
tdxstep293:stickline(m顶背,mm,0,3,0),colorred;
tdxstep294:stickline(k顶背,mm,0,3,0),colormagenta;
tdxstep295:stickline(r顶背,mm,0,3,0),coloryellow;
tdxstep296:stickline(macd<ref(macd,1) and macd>0,0,macd,1,0),color00ccff,linethick2;
tdxstep297:stickline(macd>=ref(macd,1) and macd>0,0,macd,1,0),colorred,linethick2;
tdxstep298:stickline(macd>ref(macd,1) and macd<0,0,macd,1,0),colorff5599,linethick2;
tdxstep299:stickline(macd<=ref(macd,1) and macd<0,0,macd,1,0),colorffff55,linethick2;
{drawtext(m底背,0.12,' m底背'),colorred;
drawtext(k底背,0.12,' k底背'),colormagenta;
drawtext(r底背,0.12,' r底背'),coloryellow;
drawtext(m顶背,0.12,' m顶背'),colorred;
drawtext(k顶背,0.12,' k顶背'),colormagenta;
drawtext(r顶背,0.12,' r顶背'),coloryellow;}
j:kdj.j,nodraw;
rsi:r1,nodraw,colormagenta,linethick2;
cci:cci,nodraw;
tj:=macd>0;t:=macd<0;
a:=llv(macd,50)=macd;
drawicon(a and filterx(a,20), macd,1);
{macd缩小再放大
ta:=macd.macd;
tb:=ref(ta,2)>max(0 ,ref(ta,1));
tc:=ref(ta,1)>-0.005 and ta>max(0,ref(ta,1));
drawicon(tb and tc,macd,7);}
{时间序列}
drawtext(barslast(tj)=1,macd,'1'),colorgreen;
drawtext(barslast(tj)=2,macd,'2'),colorgreen;
drawtext(barslast(tj)=3,macd,'3'),colorgreen;
drawtext(barslast(tj)=5,macd,'5'),colorgreen;
drawtext(barslast(tj)=8,macd,'8'),colorgreen;
drawtext(barslast(tj)=13,macd,'13'),colorgreen;
drawtext(barslast(tj)=21,macd,'21'),colorgreen;
drawtext(barslast(tj)=34,macd,'34'),colorgreen;
drawtext(barslast(tj)=55,macd,'55'),colorgreen;
drawtext(barslast(t)=1,macd,'1'),coloryellow;
drawtext(barslast(t)=2,macd,'2'),coloryellow;
drawtext(barslast(t)=3,macd,'3'),coloryellow;
drawtext(barslast(t)=5,macd,'5'),coloryellow;
drawtext(barslast(t)=8,macd,'8'),coloryellow;
drawtext(barslast(t)=13,macd,'13'),coloryellow;
drawtext(barslast(t)=21,macd,'21'),coloryellow;
drawtext(barslast(t)=34,macd,'34'),coloryellow;
drawtext(barslast(t)=55,macd,'55'),coloryellow;
上一指标公式:周异动选股器转载和谐完全加密指标公式下载 通达信异动选股
☉ 好公式网发布的指标公式主要用于软件技术面分析,仅供参考,勿用于实际操作,据此操作风险自负!
☉ 解压密码:www.goodgongshi.com 就是好公式网域名,希望大家看清楚,切勿输错。
☉ tnc和tni格式指标公式,仅可以用通达信软件引入使用,例如可以用通达信软件引入使用指标公式;
☉ tne格式指标公式,仅可以用通达信软件公式编辑器5.0版导入,高版本兼容低版本;
☉ fnc格式指标公式,可以用大智慧软件新一代高速行情分析系统股票软件使用,少部分可以用分析家软件引入使用;
☉ alg格式指标公式,仅仅可以用飞狐交易师软件引入使用;exp格式指标公式,仅可以用大智慧经典版软件引入使用;
☉ hxf格式指标公式,仅可以用同花顺软件引入使用。
☉ 如果您发现下载软件链接错误,请联系管理员报告错误。
☉ 好公式网欢迎各位网友帮忙宣传转发本站网址,有您的支持,我们会做得更好!
☉ 本文龙轩MACD序列v6版转载和谐完全加密指标公式下载 通达信加密指标仅供学习研究。