{macd+kdj在主图显示}
{以下显示叠加指针的数值}
k:"kdj.k",nodraw,colorwhite;
d:"kdj.d",nodraw,coloryellow;
r1:"rsi.rsi1",nodraw,colorc080ff;
r2:"rsi.rsi2",nodraw,colorff8080;
r3:"rsi.rsi3",nodraw,color87f8f4;
f:"macd.dif",nodraw,color72c072;
a:"macd.dea",nodraw,colore98210;
m:"macd.macd",nodraw,colorwhite;
{以下计算叠加比和叠加平移量}
{1、叠加字段高度}
q:=130;
kh:=hhv(h,q);
kl:=llv(l,q);
dh:=hhv(max(k,d),q);
dl:=llv(min(k,d),q);
mh:=hhv(max(f,a),q);
ml:=llv(max(f,a),q);
rh:=hhv(max(max(r1,r2),r3),q);
rl:=llv(min(min(r1,r2),r3),q);
{2、叠加比}
bd:=(kh-kl)/(dh-dl)/3;
bm:=(kh-kl)/(mh-ml)/3;
br:=(kh-kl)/(rh-rl)/3;
{3、叠加平移量}
wk:=(kh-kl)/3;
wd:=(kh+kl-(dh+dl)*bd)/2-const(wk);
wm:=(kh+kl-(mh+ml)*bm)/2;
wr:=(kh+kl-(rh+rl)*br)/2+const(wk);
{以下画叠加线}
ployline(1,k*const(bd)+const(wd)),colorwhite;
ployline(1,d*const(bd)+const(wd))coloryellow;
{ployline(1,r1*const(br)+const(wr)),colorc080ff;
ployline(1,r2*const(br)+const(wr)),colorff8080;
ployline(1,r3*const(br)+const(wr)),color87f8f4;}
ployline(1,f*const(bm)+const(wm)),color72c072;
ployline(1,a*const(bm)+const(wm)),colore98210;
stickline(m>0,m*const(bm)+const(wm),const(wm),0,-1),colormagenta;
stickline(m<0,m*const(bm)+const(wm),const(wm),0,-1),colorgreen;
{以下画叠加指针的横坐标线}
ployline(1,const(wm)),colorwhite;
{ployline(1,20*const(br)+const(wr)),colorgreen,pointdot;
ployline(1,80*const(br)+const(wr)),colorred,pointdot;
ployline(1,50*const(br)+const(wr)),coloryellow,pointdot;}
ployline(1,20*const(bd)+const(wd)),colorgreen,pointdot;
ployline(1,80*const(bd)+const(wd)),colorred,pointdot;
ployline(1,50*const(bd)+const(wd)),coloryellow,pointdot;
{以下显示叠加指针的横坐标值}
{drawtext(currbarscount=1,(80*const(br)+const(wr))*1.015,'80')colorwhite;
drawtext(currbarscount=1,(80*const(br)+const(wr))*0.99,'rsi')colorwhite;
drawtext(currbarscount=1,(50*const(br)+const(wr))*1.015,'50')colorwhite;
drawtext(currbarscount=1,(50*const(br)+const(wr))*0.99,'rsi')colorwhite;
drawtext(currbarscount=1,(20*const(br)+const(wr))*1.015,'20')colorwhite;}
drawtext(currbarscount=1,(20*const(bd)+const(wd))*1.015,'20')colorwhite;
drawtext(currbarscount=1,(20*const(bd)+const(wd))*0.99,'kdj')colorwhite;
drawtext(currbarscount=1,(50*const(bd)+const(wd))*1.015,'50')colorwhite;
drawtext(currbarscount=1,(50*const(bd)+const(wd))*0.99,'kdj')colorwhite;
drawtext(currbarscount=1,(80*const(bd)+const(wd))*1.015,'80')colorwhite;
drawtext(currbarscount=1,(80*const(bd)+const(wd))*0.99,'kdj')colorwhite;
drawtext(currbarscount=1,const(wm)*1.015,'0')colorwhite;
drawtext(currbarscount=1,const(wm)*0.99,'macd')colorwhite;
{a:=backset(islastbar,barslast(cross(k,d))+1);};
上一指标公式:dea的各阶导数背离TDX附图说明指标下载 通达信背离附图
下一指标公式:鹰眼判断TDX主图指标下载 通达信鹰眼判断
☉ 好公式网发布的指标公式主要用于软件技术面分析,仅供参考,勿用于实际操作,据此操作风险自负!
☉ 解压密码:www.goodgongshi.com 就是好公式网域名,希望大家看清楚,切勿输错。
☉ tnc和tni格式指标公式,仅可以用通达信软件引入使用,例如可以用通达信软件引入使用指标公式;
☉ tne格式指标公式,仅可以用通达信软件公式编辑器5.0版导入,高版本兼容低版本;
☉ fnc格式指标公式,可以用大智慧软件新一代高速行情分析系统股票软件使用,少部分可以用分析家软件引入使用;
☉ alg格式指标公式,仅仅可以用飞狐交易师软件引入使用;exp格式指标公式,仅可以用大智慧经典版软件引入使用;
☉ hxf格式指标公式,仅可以用同花顺软件引入使用。
☉ 如果您发现下载软件链接错误,请联系管理员报告错误。
☉ 好公式网欢迎各位网友帮忙宣传转发本站网址,有您的支持,我们会做得更好!
☉ 本文将MACD\KDJ在主图显示TDX版送给需要的人指标下载 通达信送给显示仅供学习研究。