diff : ema(close,short) - ema(close,long);
dea : ema(diff,m);
cd : 2*(diff-dea), colorstick,colormagenta;
a:=if(cross(0,dea),1,0);
aa1:=if(diff<0 and cross(diff,dea),1,0);
ss:=if(a,sum(aa1,0),0);
ssb:=hhv(ss,0);
sss:=sum(aa1,0);
二金:if(sss-ssb=2 and sss>ref(sss,1),0.4,0),colormagenta;
stickline(二金=dea,dea,diff,0,0),colormagenta;
aa:="macd.dif#week";
bb:="macd.dea#week";
aaa:="macd.dif#month";
bbb:="macd.dea#month";
周金:if(cross(aa,bb),0.2,0),stick,linethick2,color0099ff;
月金:if(cross(aaa,bbb),0.2,0),stick,linethick2,color0099ff;
drawtext(cross(aaa,bbb),0.2,'月'),color0099ff;
drawtext(cross(aa,bb),0.2,'周'),color0099ff;
a1:=barslast(ref(cross(diff,dea),1));
b1:=ref(c,a1+1)>c and ref(diff,a1+1)<diff and cross(diff,dea);
a2:=barslast(ref(cross("kdj.k"(9,3,3),"kdj.d"(9,3,3)),1));
b2:=ref(c,a2+1)>c and ref("kdj.k"(9,3,3),a2+1)<"kdj.k"(9,3,3) and cross("kdj.k"(9,3,3),"kdj.d"(9,3,3));
a3:=barslast(ref(cross("rsi.rsi1"(6,12,24),"rsi.rsi2"(6,12,24)),1));
b3:=ref(c,a3+1)>c and ref("rsi.rsi1"(6,12,24),a3+1)<"rsi.rsi1"(6,12,24) and cross("rsi.rsi1"(6,12,24),"rsi.rsi2"(6,12,24));
c1:=barslast(ref(cross(dea,diff),1));
d1:=ref(c,c1+1)<c and ref(diff,c1+1)>diff and cross(dea,diff);
c2:=barslast(ref(cross("kdj.d"(9,3,3),"kdj.k"(9,3,3)),1));
d2:=ref(c,c2+1)<c and ref("kdj.k"(9,3,3),c2+1)>"kdj.k"(9,3,3) and cross("kdj.d"(9,3,3),"kdj.k"(9,3,3));
c3:=barslast(ref(cross("rsi.rsi2"(6,12,24),"rsi.rsi1"(6,12,24)),1));
d3:=ref(c,c3+1)<c and ref("rsi.rsi1"(6,12,24),c3+1)>"rsi.rsi1"(6,12,24) and cross("rsi.rsi2"(6,12,24),"rsi.rsi1"(6,12,24));
m底:if(b1>0,-0.1,0),colorred,pointdot;
k底:if(b2>0,-0.1,0),colorff00ff,pointdot;
r底:if(b3>0,-0.1,0),coloryellow,pointdot;
m顶:if(d1>0,0.1,0),color00ff00,pointdot;
k顶:if(d2>0,0.1,0),colorffcc66,pointdot;
r顶:if(d3>0,0.1,0),colorwhite,pointdot;
stickline(b1>0,-0.1,0,2,0),colorred;
stickline(b2>0,-0.1,0,2,0),colorff00ff;
stickline(b3>0,-0.1,0,2,0),coloryellow;
stickline(d1>0,0.1,0,2,0),color00ff00;
stickline(d2>0,0.1,0,2,0),colorffcc66;
stickline(d3>0,0.1,0,2,0),colorwhite;
自用kdj
{n=2,120,20}
rsv:=(close-llv(low,9))/(hhv(high,9)-llv(low,9))*100;
k:sma(rsv,3,1),colorwhite;
d:sma(k,3,1),coloryellow;
j:3*k-2*d,colormagenta;
typ:=(high+low+close)/3;
j值关注:if(j<0,50,0),colorred,linethick2;
零轴:0,linethick1,colorwhite;
超买:100,linethick1,colorgreen;
cci14:=(typ-ma(typ,14))/(0.015*avedev(typ,14)),colorliblue;
cci14关注:if(cci14<-200,44,0),colorwhite,linethick2;
boll:=ma(close,n);
upper:=boll+2*std(close,n);
aa:="kdj.k#week";
bb:="kdj.d#week";
aaa:="kdj.k#month";
bbb:="kdj.d#month";
周金:if(cross(aa,bb),25,0),stick,linethick2,coloryellow;
月金:if(cross(aaa,bbb),25,0),stick,linethick2,color0099ff;
drawtext(cross(aaa,bbb),40,'月'),color0099ff;
drawtext(cross(aa,bb),30,'周'),coloryellow;
var1:=sum(if(close>ref(close,1),vol,if(close<ref(close,1),-vol,0)),0);
var2:=sumbars(vol,capital);
var3:=if(close>llv(close,var2),1,-1);
var4:=if(var1>llv(var1,var2),1,-1);
var5:=var3*var4;
var6:=if(var5=-1,1,0);
var7:="kd.k#week"<20;
周k低:if(var7 and var6 and close=llv(close,5),20,0),stick,linethick2,colorred;
drawtext(var7 and var6 and close=llv(close,5),80,'低'),colorred;
上一指标公式:财务K线综合主图无未来TDX说明指标下载 通达信财务未来
下一指标公式:神秘之二PP超大主力吃TDX副图指标下载 通达信源码主力
☉ 好公式网发布的指标公式主要用于软件技术面分析,仅供参考,勿用于实际操作,据此操作风险自负!
☉ 解压密码:www.goodgongshi.com 就是好公式网域名,希望大家看清楚,切勿输错。
☉ tnc和tni格式指标公式,仅可以用通达信软件引入使用,例如可以用通达信软件引入使用指标公式;
☉ tne格式指标公式,仅可以用通达信软件公式编辑器5.0版导入,高版本兼容低版本;
☉ fnc格式指标公式,可以用大智慧软件新一代高速行情分析系统股票软件使用,少部分可以用分析家软件引入使用;
☉ alg格式指标公式,仅仅可以用飞狐交易师软件引入使用;exp格式指标公式,仅可以用大智慧经典版软件引入使用;
☉ hxf格式指标公式,仅可以用同花顺软件引入使用。
☉ 如果您发现下载软件链接错误,请联系管理员报告错误。
☉ 好公式网欢迎各位网友帮忙宣传转发本站网址,有您的支持,我们会做得更好!
☉ 本文发个自用MACD和KDJ高手见笑TDX有图指标下载 通达信自用发个仅供学习研究。