diff:ema(close,10)-ema(close,26);
dea:ema(diff,9);
macd:2*(diff-dea),nodraw;
连续走强:every(macd>ref(macd,1) and macd>0,2),nodraw;
强势回调:every(macd<ref(macd,1) and macd>0,2),nodraw;
连续走弱:every(macd<ref(macd,1) and macd<0,2),nodraw;
连续反弹:every(macd>ref(macd,1) and macd<0,2),nodraw;
tdxstep198:stickline(连续反弹,macd,macd+0.1,1,0),colorred;
tdxstep199:drawtext(连续反弹,macd+0.15,55),colorred;
tdxstep200:stickline(macd>=0,macd,0,4,1),colorf00ff0;
tdxstep201:stickline(macd<0,macd,0,4,1),colorwhite;
tdxstep202:stickline(macd<ref(macd,1) and macd>0,0,macd,3,0),color00aaff;
tdxstep203:stickline(macd<ref(macd,1) and macd>0,0,macd,2.3,0),color00bbff;
tdxstep204:stickline(macd<ref(macd,1) and macd>0,0,macd,1.2,0),color00ccff;
tdxstep205:stickline(macd<ref(macd,1) and macd>0,0,macd,1.65,0),color00ddff;
tdxstep206:stickline(macd<ref(macd,1) and macd>0,0,macd,1.1,0),color00eeff;
tdxstep207:stickline(macd<ref(macd,1) and macd>0,0,macd,0.55,0),coloryellow;
tdxstep208:stickline(macd>=ref(macd,1) and macd>0,0,macd,3,0),color0000aa;
tdxstep209:stickline(macd>=ref(macd,1) and macd>0,0,macd,2.3,0),color0011bb;
tdxstep210:stickline(macd>=ref(macd,1) and macd>0,0,macd,1.2,0),color0022cc;
tdxstep211:stickline(macd>=ref(macd,1) and macd>0,0,macd,1.65,0),color0033dd;
tdxstep212:stickline(macd>=ref(macd,1) and macd>0,0,macd,1.1,0),color0044ee;
tdxstep213:stickline(macd>=ref(macd,1) and macd>0,0,macd,0.55,0),color0055ff;
tdxstep214:stickline(macd>ref(macd,1) and macd<0,0,macd,3,0),coloraa00bb;
tdxstep215:stickline(macd>ref(macd,1) and macd<0,0,macd,2.3,0),colorbb11bb;
tdxstep216:stickline(macd>ref(macd,1) and macd<0,0,macd,1.2,0),colorcc22bb;
tdxstep217:stickline(macd>ref(macd,1) and macd<0,0,macd,1.65,0),colordd33bb;
tdxstep218:stickline(macd>ref(macd,1) and macd<0,0,macd,1.1,0),coloree44bb;
tdxstep219:stickline(macd>ref(macd,1) and macd<0,0,macd,0.55,0),colorff55bb;
tdxstep220:stickline(macd<=ref(macd,1) and macd<0,0,macd,3,0),colorffaa00;
tdxstep221:stickline(macd<=ref(macd,1) and macd<0,0,macd,2.3,0),colorffbb11;
tdxstep222:stickline(macd<=ref(macd,1) and macd<0,0,macd,1.2,0),colorffcc22;
tdxstep223:stickline(macd<=ref(macd,1) and macd<0,0,macd,1.65,0),colorffdd33;
tdxstep224:stickline(macd<=ref(macd,1) and macd<0,0,macd,1.1,0),colorffee44;
tdxstep225:stickline(macd<=ref(macd,1) and macd<0,0,macd,0.55,0),colorffff55;
tdxstep226:if(diff<0,diff,0),colorred,linethick2;
tdxstep227:if(diff<0,0,diff),coloryellow,linethick2;
tdxstep228:if(diff<dea,diff,dea),colorgreen;
tdxstep229:if(diff>dea,dea,dea),colorblue,linethick2;
买点出击:=cross(diff,dea) and diff<(-0.1);
tdxstep230:stickline(买点出击,0,(-0.1),3,0),coloryellow;
tdxstep231:drawtext(买点出击,(-0.1),56),coloryellow;
jccount:=count(cross(diff,dea),barslast(dea>=0));
二次出击:=cross(diff,dea) and dea<0 and count(jccount=2,21)=1;
tdxstep232:stickline(二次出击,0,(-0.1),2,0),colormagenta;
tdxstep233:drawicon(二次出击,dea*1.04,13);
tdxstep234:drawtext(二次出击,(-0.18),57),colormagenta;
aa1:=barslast(ref(cross(diff,dea),1));
底背离:=ref(close,aa1+1)>close and diff>ref(diff,aa1+1) and cross(diff,dea);
tdxstep235:stickline(底背离,0,0.15,2,0),colormagenta;
tdxstep236:drawtext(底背离,dea,58),colorred;
aa2:=barslast(ref(cross(dea,diff),1));
顶背离:=ref(close,aa2+1)<close and ref(diff,aa2+1)>diff and cross(dea,diff);
tdxstep237:drawtext(顶背离,dea,59),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;
tdxstep238:drawtext(a10,diff*0.95,60),coloryellow;
aa3:=kd.k#week(9,3,3);
aa4:=kd.d#week(9,3,3);
tdxstep239:drawband(aa3/100,rgb(250,0,250),aa4/100,rgb(0,250,250));
周金叉:cross(aa3,aa4)*0.2;
月kdk:=kd.k#month(4,3,3);
月kdd:=kd.d#month(4,3,3);
月金叉:cross(月kdk,月kdd)*0.4,colorwhite,linethick2;
tdxstep240:drawband(月kdk/50,rgb(250,200,0),月kdd/50,rgb(80,150,250));
{-----------------------------------}
上一指标公式:终极黑马主图牛窝逃顶。精准抄底抓牛股指标公式详解 通达信黑马精准
下一指标公式:主升主图加密无时间限制 指标公式详解 通达信通达信时间
☉ 好公式网发布的指标公式主要用于软件技术面分析,仅供参考,勿用于实际操作,据此操作风险自负!
☉ 解压密码:www.goodgongshi.com 就是好公式网域名,希望大家看清楚,切勿输错。
☉ tnc和tni格式指标公式,仅可以用通达信软件引入使用,例如可以用通达信软件引入使用指标公式;
☉ tne格式指标公式,仅可以用通达信软件公式编辑器5.0版导入,高版本兼容低版本;
☉ fnc格式指标公式,可以用大智慧软件新一代高速行情分析系统股票软件使用,少部分可以用分析家软件引入使用;
☉ alg格式指标公式,仅仅可以用飞狐交易师软件引入使用;exp格式指标公式,仅可以用大智慧经典版软件引入使用;
☉ hxf格式指标公式,仅可以用同花顺软件引入使用。
☉ 如果您发现下载软件链接错误,请联系管理员报告错误。
☉ 好公式网欢迎各位网友帮忙宣传转发本站网址,有您的支持,我们会做得更好!
☉ 本文三周期KDJ指标公式详解 通达信周期仅供学习研究。